joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
test eax, eax
je 0x100010c3
lea edx, [ecx + eax*8 - 8]
push esi
mov dword [ebp - 4], edx
push edi
lea ebx, [ebx]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov edx, dword [0x1000ddd4]
add edx, dword [0x1000ddd8]
mov esi, 0x20
add edx, dword [0x1000ddd0]
add edx, dword [0x1000ddcc]
mov dword [ebp - 8], edx
shl edx, 5
dec esi
mov dword [ebp - 0xc], esi
mov esi, ecx
shr esi, 5
add esi, dword [0x1000ddd8]
mov edi, ecx
shl edi, 4
add edi, dword [0x1000ddd4]
xor esi, edi
lea edi, [edx + ecx]
xor esi, edi
sub eax, esi
mov esi, eax
shr esi, 5
add esi, dword [0x1000ddd0]
mov edi, eax
shl edi, 4
add edi, dword [0x1000ddcc]
xor esi, edi
lea edi, [edx + eax]
sub edx, dword [ebp - 8]
xor esi, edi
sub ecx, esi
mov esi, dword [ebp - 0xc]
test esi, esi
jne 0x10001048
mov esi, dword [0x1000ddd0]
mov edx, dword [ebp - 4]
xor esi, ecx
mov dword [edx], esi
mov ecx, dword [0x1000ddd0]
xor ecx, eax
mov eax, dword [ebp + 8]
dec eax
mov dword [edx + 4], ecx
sub edx, 8
mov dword [ebp + 8], eax
mov dword [ebp - 4], edx
test eax, eax
jne 0x10001020
pop edi
pop esi
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100010d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001160
push 0x128
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.10006ac0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10001159
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea edx, [esp + 0x34]
push 0x1000de20
push edx
call fcn.10008e28
add esp, 8
test eax, eax
je 0x10001154
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x10001130
jmp 0x10001159
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.100025f4
mov esp, ebp
pop ebp
ret
Function at 0x10001180
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x10c], ebx
call fcn.10006ac0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x108]
push 0x2e
push edx
call fcn.10002610
add esp, 8
cmp eax, ebx
je 0x10001280
mov ecx, str.y
mov edx, eax
sub edx, ecx
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
cmp al, bl
jne 0x100011f0
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001280
cmp esi, ebx
je 0x10001280
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
lea ecx, [ebp - 0x10c]
push ecx
push eax
push 0x10012f58
push esi
mov dword [0x10213358], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x10001251
mov dword [0x10213358], ebx
jmp 0x10001279
mov eax, dword [0x10213358]
shr eax, 3
cmp eax, ebx
je 0x1000126b
push eax
mov ecx, 0x10012f58
call fcn.10001000
add esp, 4
cmp dword [0x10012f74], 0x4d554948
jne 0x10001279
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100025f4
mov esp, ebp
pop ebp
ret

Function at 0x100012a0
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x10012f74], 0x4d554948
push esi
mov esi, eax
mov dword [ebp - 4], ebx
jne 0x10001327
cmp esi, ebx
je 0x10001327
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000131f
cmp esi, ebx
je 0x1000131f
mov ecx, dword [0x10012fd4]
mov edx, dword [0x10012fd0]
push ebx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [edx + 0x10012f58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001318
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001470
Capabilities:
Copy file
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x330], edi
cmp edi, 0xffffffff
je 0x100014c4
lea eax, [ebp - 0x32c]
push eax
push edi
mov dword [ebp - 0x32c], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
cmp eax, 1
je 0x100014d5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100025f4
mov esp, ebp
pop ebp
ret
push esi
jmp 0x100014e0
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100014f0
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001500
sub eax, esi
cmp edx, eax
jbe 0x10001596
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001516
sub eax, edx
push eax
lea ecx, [ebp - 0x20c]
push ebx
push ecx
call fcn.10008f51
add esp, 0xc
test eax, eax
jne 0x10001596
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x108]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10001540
lea eax, [ebp - 0x30c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001552
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001562
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x20c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, dword [ebp - 0x330]
lea ecx, [ebp - 0x32c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x100014e0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
call fcn.100010d0
test eax, eax
je 0x10001625
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x108]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100015d0
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100015e1
mov edx, dword [str.chg.txt]
mov ecx, dword [0x1000ba18]
push 0
push 0x80
push 2
push 0
push 3
mov dword [eax], edx
push 0xc0000000
lea edx, [ebp - 0x108]
push edx
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x10001625
test eax, eax
je 0x10001625
push eax
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop edi
call fcn.100025f4
mov esp, ebp
pop ebp
ret
Function at 0x10001890
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
mov dword [ebp - 0x408], 0
call fcn.10006ac0
push 0x10213360
push esi
lea ecx, [ebp - 0x404]
push str.__s_s.exe___rt
push ecx
call fcn.100026c6
add esp, 0x1c
lea edx, [ebp - 0x408]
push edx
push 2
push 0
push 0x1000de60
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001937
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001902
mov ecx, dword [ebp - 0x408]
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push 0
push 0x10213360
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100025f4
mov esp, ebp
pop ebp
ret

Function at 0x10001950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x400
lea eax, [ebp - 0x404]
push esi
push eax
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x410], 1
mov dword [ebp - 0x40c], 0x400
call fcn.10006ac0
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
push 1
push esi
push 0x1000de60
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100019ef
lea edx, [ebp - 0x40c]
push edx
mov edx, dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x410]
push ecx
push esi
push 0x10213360
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100019e2
lea esi, [eax + 1]
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100025f4
mov esp, ebp
pop ebp
ret
Function at 0x10001d60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x44
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.10006ac0
xor eax, eax
push 0x104
push eax
lea ecx, [ebp - 0x108]
push ecx
mov dword [ebp - 0x260], 0x44
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
call fcn.10006ac0
lea edx, [ebp - 0x108]
push 0x104
push edx
mov ebx, 0x1000dee0
call fcn.10001330
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10006ac0
add esp, 0x2c
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x20c]
push 0x5c
push edx
call fcn.10002610
add esp, 8
pop ebx
test eax, eax
jne 0x10001e25
lea eax, [ebp - 0x20c]
push 0x2f
push eax
call fcn.10002610
add esp, 8
test eax, eax
je 0x10001e3e
lea ecx, [ebp - 0x108]
mov edx, ecx
sub eax, edx
lea edx, [eax + 1]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x10001e32
jmp 0x10001e53
xor eax, eax
mov cl, byte [ebp + eax - 0x108]
mov byte [ebp + eax - 0x20c], cl
inc eax
test cl, cl
jne 0x10001e40
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10006ac0
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push str.__s_
push edx
call fcn.100026c6
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x260]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x108]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10001edb
push esi
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10001ecd
push eax
call esi
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x10001eda
push eax
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100025f4
mov esp, ebp
pop ebp
ret

Function at 0x100020a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push 0x4000
push esi
push 0x1000ee50
mov dword [ebp - 0xc], 3
mov dword [ebp - 8], 0x4000
mov dword [ebp - 4], esi
call fcn.10006ac0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x1000e060
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002119
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push 0x1000ee50
lea edx, [ebp - 0xc]
push edx
push esi
push 0x1000e0a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000210f
lea esi, [eax + 1]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002230
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
je 0x10002242
mov eax, 1
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
push eax
push eax
call dword [0x10213464]
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100025f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100025fe
repz ret
jmp fcn.10002bdc

Function at 0x1000900a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10004790
and dword [ebp - 0x14], 0
cmp dword [0x1000ed34], 0
mov dword [ebp - 0x18], eax
jne 0x100090bd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10009165
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10009165
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000ed34], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000ed38], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000ed3c], eax
call edi
push eax
call esi
mov dword [0x1000ed44], eax
test eax, eax
je 0x100090bd
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000ed40], eax
mov eax, dword [0x1000ed40]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10009116
cmp dword [0x1000ed44], ecx
je 0x10009116
push eax
call esi
push dword [0x1000ed44]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10009116
test ebx, ebx
je 0x10009116
call edi
test eax, eax
je 0x1000910d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000910d
test byte [ebp - 8], 1
jne 0x10009116
or dword [ebp + 0x10], 0x200000
jmp 0x10009149
mov eax, dword [0x1000ed38]
cmp eax, dword [ebp - 0x18]
je 0x10009149
push eax
call esi
test eax, eax
je 0x10009149
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10009149
mov eax, dword [0x1000ed3c]
cmp eax, dword [ebp - 0x18]
je 0x10009149
push eax
call esi
test eax, eax
je 0x10009149
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000ed34]
call esi
test eax, eax
je 0x10009165
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10009167
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100025f4
leave
ret
Function at 0x4033d8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406070
test esi, esi
jne 0x403410
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004061ac
jmp 0x40342e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040331c
mov edi, eax
test esi, esi
je 0x40342e
cmp dword [ebx], 0
je 0x40342e
dec esi
jmp 0x403417
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403460
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x514008], 0x8088405
inc edx
mov dword [ebx + 0x514008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403b74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x514024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c0c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403bec
xor eax, eax
push ebp
push 0x403be5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403c44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x514024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x514024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4043f4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004046a8
mov byte [esp], al
cmp byte [esp], 0
jne 0x40457d
test edi, edi
je 0x40457d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4044b4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40448f
cmp edi, 0xffffffff
je 0x404453
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404453
mov byte [esp], 0
jmp 0x40457d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40448f
test ebx, ebx
jne 0x404488
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004013f0
test eax, eax
jne 0x404488
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40457d
pause
dec ebp
test ebp, ebp
jg 0x404438
cmp edi, 0xffffffff
je 0x4044b4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4044b2
mov byte [esp], 0
jmp 0x40457d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404402
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004013f0
cmp ebx, eax
jne 0x4044b4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004045f0
mov edx, eax
mov ebx, dword [0x5248cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40451b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404519
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40451b
xor edi, edi
cmp byte [esp], 0
je 0x404544
mov ebx, dword [esi]
test bl, 1
jne 0x40455d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004013f0
cmp ebx, eax
jne 0x404521
mov byte [esp + 1], 1
jmp 0x40455d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004013f0
cmp ebx, eax
jne 0x404544
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4044ce
cmp byte [esp], 0
je 0x40457d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x404fa4
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x526aec
cmp dword [ebp + 0xc], 2
jl 0x404fb8
mov ebx, 0x526b1c
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x404ff0
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4012a8
mov dword [0x524014], eax
mov eax, 0x4012b0
mov dword [0x524018], eax
mov eax, ebx
call fcn.00404e90
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x405025
cmp al, 3
jge 0x405025
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x405036
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x405041
call dword [ecx + eax*4]
cmp dword [0x524038], 0
jne 0x405057
mov byte [0x524040], 1
fnstcw word [0x514024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004052d4
call fcn.00404f3c
ret 4

Function at 0x405244
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x524054], 0
je 0x4052a5
cmp word [0x524330], 0xd7b2
jne 0x40526d
cmp dword [0x524338], 0
jbe 0x40526d
mov eax, 0x52432c
call dword [0x524348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4052d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x514030], 0
jne 0x4052c1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x514034], 0
je 0x405496
mov edx, esi
mov eax, ebx
call dword [0x514034]
jmp 0x4054a5
mov eax, 8
call fcn.00403064
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x524055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405438
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406b80
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406bc2
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406be2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406270
add esp, 0x41c
pop esi
pop ebx
ret