joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478b30
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
mov edi, eax
movzx eax, word [esi]
cmp eax, 0x41
je 0x478b41
cmp eax, 0x61
jne 0x478b9b
cmp word [esi + 2], 0
jne 0x478b9b
mov eax, dword [esp + 0x10]
cmp word [eax], 0
jne 0x478b9b
cmp word [ebx], 0
jne 0x478b9b
cmp word [edi], 0
jne 0x478b9b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
test ebp, ebp
je 0x478b9b
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xea], 0
jne 0x478b82
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x478b9b
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x478b96
push 9
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, ebp
pop edi
pop ebp
ret
mov eax, dword [esp + 0x14]
test al, al
jne 0x478bcf
cmp word [esi], 0
jne 0x478bcf
mov edx, dword [esp + 0x10]
cmp word [edx], 0
jne 0x478bcf
cmp word [ebx], 0
jne 0x478bcf
cmp word [edi], 0
jne 0x478bcf
mov eax, dword [esp + 0xc]
call fcn.00479390
test eax, eax
jne 0x478bf4
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0
push eax
mov eax, dword [esp + 0x1c]
push ebx
mov ecx, edi
mov edi, dword [esp + 0x24]
push eax
mov edx, esi
call fcn.00479190
add esp, 0x18
jmp 0x478bc8
pop edi
pop ebp
jmp fcn.00478c60
Function at 0x478c60
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
test edi, edi
jne 0x478c6f
pop edi
add esp, 0x10
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebp
push esi
push 0
push edi
call ebx
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, dword [0x4cb628]
je 0x478c9a
mov esi, edi
call fcn.00479d20
test al, al
jne 0x478e32
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x478cb4
push eax
push 0x4a735c
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x478cc8
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, esi
jne 0x478cd6
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0x10
ret
cmp byte [0x4c962a], 0
jne 0x478cf0
push esi
call fcn.00478c00
add esp, 4
test eax, eax
jne 0x478e34
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test esi, esi
je 0x478d4d
push 0
push esi
call ebx
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x478d4d
cmp dword [0x4cb628], ebx
je 0x478d34
call fcn.00479d20
test al, al
jne 0x478d34
mov eax, dword [0x4cb628]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test ebp, ebp
je 0x478d4d
cmp ebx, ebp
je 0x478d4d
push 1
push ebp
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
mov ebx, dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x14], 0
jmp 0x478d60
push edi
call ebx
push 1
push 0xa
mov dword [0x4c58e0], 0
call fcn.00401360
add esp, 8
mov dword [0x4c58e0], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
cmp ebp, edi
jne 0x478d93
mov ebp, edi
jmp 0x478da4
cmp ebp, esi
je 0x478da8
push 4
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
cmp edi, eax
jne 0x478da8
test ebp, ebp
jne 0x478de9
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jl 0x478d60
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.0040fa50
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.0040fa50
push esi
call fcn.00478c00
add esp, 0x34
mov ebp, eax
cmp byte [esp + 0x12], 0
je 0x478e04
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4cb628]
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [esp + 0x13], 0
je 0x478e1d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test ebp, ebp
je 0x478e32
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop esi
mov eax, ebp
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
Function at 0x478f30
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x478f40
mov eax, esi
call fcn.00454e60
jmp 0x478f4d
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 4]
test eax, eax
js 0x478fa8
je 0x478fa8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.00401360
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x478fa5
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x478fa5
push 1
push 0x8000012f
call fcn.00401360
add esp, 8
push esi
call ebx
test eax, eax
jne 0x478f84
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x479190
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c68
call fcn.00499d50
mov eax, dword [esp + 0x11c70]
push ebx
push ebp
mov ebp, dword [esp + 0x11c74]
push esi
mov esi, ecx
movzx ecx, word [edx]
xor ebx, ebx
cmp ecx, 0x41
je 0x4791bc
cmp ecx, 0x61
jne 0x479211
cmp word [edx + 2], bx
jne 0x479211
cmp word [edi], bx
jne 0x479211
cmp word [eax], bx
jne 0x479211
cmp word [esi], bx
jne 0x479211
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x4791f2
cmp byte [ebp + 0xea], bl
jne 0x4791f2
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4791f2
xor esi, esi
cmp byte [esp + 0x11c84], bl
je 0x479205
cmp esi, ebx
je 0x479205
mov dword [ebp + 0xc4], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
cmp cx, bx
jne 0x479236
cmp word [edi], bx
jne 0x479236
cmp word [eax], bx
jne 0x479236
cmp word [esi], bx
jne 0x479236
mov eax, ebp
call fcn.00479390
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
push esi
push edi
push edx
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x102c], 0x4a2868
mov byte [esp + 0x1849], bl
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x1850], ebx
mov dword [esp + 0x1854], ebx
mov dword [esp + 0x1858], ebx
mov dword [esp + 0x185c], ebx
mov dword [esp + 0x1860], ebx
mov dword [esp + 0x186c], ebx
mov dword [esp + 0x1870], ebx
call fcn.00479e60
test eax, eax
je 0x479347
test byte [esp + 0x10], 2
mov al, byte [esp + 0x11c80]
mov ecx, dword [esp + 0x11c88]
mov edx, dword [esp + 0x11c8c]
mov byte [esp + 0x1839], al
mov dword [esp + 0x1848], ecx
mov dword [esp + 0x184c], edx
je 0x479353
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x47931f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x479347
cmp byte [ebp + 0xea], bl
jne 0x479318
mov eax, dword [esp + 0x102c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x479318
mov ecx, dword [esp + 0x102c]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x479347
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1860], eax
je 0x479338
lea esi, [esp + 0x10]
mov dword [esp + 0x1860], eax
call fcn.0047a2c0
push ebx
lea edx, [esp + 0x14]
push edx
call fcn.0047a380
test eax, eax
jne 0x479363
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
lea eax, [esp + 0x10]
push eax
push 0x479400
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1840]
cmp byte [esp + 0x11c84], bl
je 0x47937d
cmp eax, ebx
je 0x47937d
mov dword [ebp + 0xc4], eax
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
Function at 0x47a2c0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0x1850]
test ecx, ecx
je 0x47a37e
mov eax, dword [esi]
test eax, eax
je 0x47a37e
push edi
test al, 1
jne 0x47a2ea
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x47a306
push 0x7fff
lea edi, [esi + 0x1858]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x47a306
xor ecx, ecx
mov word [edi], cx
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x47a321
mov eax, dword [esi + 0x1850]
lea edx, [esi + 0x1854]
push edx
push eax
call edi
test byte [esi], 0x20
je 0x47a35f
mov edx, dword [esi + 0x1850]
lea ecx, [esp + 4]
push ecx
push edx
call edi
test eax, eax
je 0x47a35f
movzx eax, byte [esi + 0x1828]
mov ecx, dword [esp + 4]
push eax
lea eax, [esi + 0x11a58]
call fcn.00450840
add esp, 4
test eax, eax
jne 0x47a35f
xor ecx, ecx
mov word [esi + 0x11a58], cx
test byte [esi], 8
pop edi
je 0x47a37e
mov eax, dword [esi + 0x1850]
push 0x101
lea edx, [esi + 0x11856]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
pop ecx
ret

Function at 0x47abd0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c64
call fcn.00499d50
mov eax, dword [esp + 0x11c68]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x47ac7d
mov dword [esp + 0x1848], eax
lea eax, [esp + 8]
push eax
push 0x47b310
mov dword [esp + 0x10], ebx
mov dword [esp + 0x101c], 0x4a2868
mov byte [esp + 0x1839], bl
mov dword [esp + 0x183c], ebx
mov dword [esp + 0x1840], ebx
mov dword [esp + 0x1844], ebx
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x185c], ebx
mov dword [esp + 0x1860], ebx
mov byte [esp + 0x1854], cl
mov dword [esp + 0x1858], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1838], ebx
je 0x47ac7d
mov ecx, dword [0x4c590c]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x47ac7d
push 1
push eax
call fcn.00401360
add esp, 8
mov eax, 1
pop ebx
add esp, 0x11c64
ret 4
Function at 0x47ac90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x47acac
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4c590c]
push eax
push esi
mov ecx, edi
call fcn.0047b150
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x47ace3
test eax, eax
jne 0x47ace7
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.0047ada0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x47ad66
test esi, esi
je 0x47ad66
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.00401360
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x47ad45
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x47ad45
push 1
push 0x8000012f
call fcn.00401360
add esp, 8
push esi
call edi
test eax, eax
jne 0x47ad20
mov edx, dword [0x4c590c]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47ad5e
push 1
push eax
call fcn.00401360
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x47ad80
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.0047ada0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0047af20
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x47af20
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c68
call fcn.00499d50
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x47b0a0
xor cl, cl
mov eax, edi
call fcn.0047b0c0
test eax, eax
jne 0x47af55
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4c590c]
push eax
push ebp
mov ecx, edi
call fcn.0047b150
test eax, eax
je 0x47af78
xor eax, eax
mov dword [0x4cb620], eax
jmp 0x47af7d
mov eax, dword [0x4cb620]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1024], 0x4a2868
mov dword [esp + 0x1844], ebx
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x1864], ebx
mov dword [esp + 0x1868], ebx
cmp byte [esp + 0x11c7c], bl
je 0x47afc3
mov byte [esp + 0x1841], bl
cmp eax, ebx
je 0x47afcb
mov byte [esp + 0x1841], 1
mov ecx, dword [0x4cb61c]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x1854], eax
lea eax, [esp + 0x18]
push eax
push 0x47b220
mov dword [esp + 0x1858], ecx
mov dword [esp + 0x1860], edx
call esi
mov eax, dword [esp + 0x1848]
cmp eax, ebx
je 0x47b078
lea ecx, [esp + 0x10]
push ecx
push 0x479c70
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x47b035
mov edx, dword [esp + 0x1848]
call fcn.0047a860
mov dword [esp + 0x1848], esi
mov eax, dword [esp + 0x1848]
call fcn.00478c60
mov edx, dword [esp + 0x1848]
call fcn.0047a860
mov edx, dword [0x4c590c]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47b0a0
push 1
push eax
call fcn.00401360
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret 4
mov eax, dword [0x4cb620]
cmp eax, ebx
je 0x47b0a0
cmp eax, 1
setg al
mov dword [0x4cb620], ebx
cmp al, bl
je 0x47b0a0
mov edx, ebp
call fcn.0047a860
push ebx
mov ecx, edi
call fcn.0047af20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x11c68
ret 4
Function at 0x494ee6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c4d70]
jne 0x494ef0
repz ret
jmp fcn.0049977f

Function at 0x497b10
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c4d70]
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.00491fe2
and dword [ebp - 0x14], 0
cmp dword [0x4c7c5c], 0
mov dword [ebp - 0x18], eax
jne 0x497bc3
push 0x4a2004
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x497c6b
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4a1ff8
push ebx
call edi
test eax, eax
je 0x497c6b
mov esi, dword [fcn.0048e270]
push eax
call esi
push 0x4a1fe8
push ebx
mov dword [0x4c7c5c], eax
call edi
push eax
call esi
push 0x4a1fd4
push ebx
mov dword [0x4c7c60], eax
call edi
push eax
call esi
push 0x4a1fb8
push ebx
mov dword [0x4c7c64], eax
call edi
push eax
call esi
mov dword [0x4c7c6c], eax
test eax, eax
je 0x497bc3
push 0x4a1fa0
push ebx
call edi
push eax
call esi
mov dword [0x4c7c68], eax
mov eax, dword [0x4c7c68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0048e274]
cmp eax, ecx
je 0x497c1c
cmp dword [0x4c7c6c], ecx
je 0x497c1c
push eax
call esi
push dword [0x4c7c6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x497c1c
test ebx, ebx
je 0x497c1c
call edi
test eax, eax
je 0x497c13
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x497c13
test byte [ebp - 8], 1
jne 0x497c1c
or dword [ebp + 0x10], 0x200000
jmp 0x497c4f
mov eax, dword [0x4c7c60]
cmp eax, dword [ebp - 0x18]
je 0x497c4f
push eax
call esi
test eax, eax
je 0x497c4f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x497c4f
mov eax, dword [0x4c7c64]
cmp eax, dword [ebp - 0x18]
je 0x497c4f
push eax
call esi
test eax, eax
je 0x497c4f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c7c5c]
call esi
test eax, eax
je 0x497c6b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x497c6d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00494ee6
leave
ret
Function at 0x411bb0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c50b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a8], ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.00476453
push 0
mov ecx, dword [ebp - 0x1a8]
call fcn.00412d70
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x411c7b
push 4
lea ecx, [ebp - 0x14]
call fcn.00408300
lea ecx, [ebp - 0x14]
call fcn.004138b0
mov dword [ebp - 4], 0
push 0x65
lea ecx, [ebp - 0x14]
call fcn.004133b0
mov dword [ebp - 0x1b0], eax
lea ecx, [ebp - 0x14]
call fcn.00412d40
movzx eax, al
test eax, eax
jne 0x411c6c
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x1ac]
call fcn.00412dc0
lea ecx, [ebp - 0x14]
call fcn.00405b60
push eax
push 0x10
push 0
mov ecx, dword [ebp - 0x1ac]
call fcn.00412dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004138f0
push 1
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx + 0xbc]
push edx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412d10
push 0
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0xbc]
push ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412d10
lea edx, [ebp - 0x1a4]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0x1a8]
call fcn.00411a60
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058835d
mov esp, ebp
pop ebp
ret

Function at 0x413090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4130b4
xor eax, eax
jmp 0x413134
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4130cb
xor eax, eax
jmp 0x413134
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x413117
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x413117
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4130ee
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x413123
xor eax, eax
jmp 0x413134
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x413131
xor eax, eax
jmp 0x413134
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x422650
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c62a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3ec
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp + 8]
call fcn.00406720
push eax
call fcn.004304d0
add esp, 8
lea ecx, [ebp - 0x3f8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004066a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058835d
mov esp, ebp
pop ebp
ret
Function at 0x424480
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6668
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408300
lea ecx, [ebp - 0x1c]
call fcn.00409ed0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00452350
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.0040b890
test eax, eax
jne 0x4244ec
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b810
jmp 0x424528
cmp dword [0x6426f4], 1
jne 0x4244fa
call fcn.00423cb0
cmp dword [0x650ff8], 0
je 0x424512
mov ecx, dword [0x650ff8]
push ecx
call fcn.004226d0
add esp, 4
push 0
call fcn.00589990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058835d
mov esp, ebp
pop ebp
ret
Function at 0x427110
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6c53
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], 0
push 0x613cf6
lea ecx, [ebp - 0x58]
call fcn.00406610
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00430570
add esp, 8
mov byte [ebp - 4], 1
push 0xc
lea ecx, [ebp - 0x28]
call fcn.00408300
lea ecx, [ebp - 0x28]
call fcn.00409ed0
mov byte [ebp - 4], 2
push 0x6147a8
lea ecx, [ebp - 0x88]
call fcn.00406610
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00430000
add esp, 0xc
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408300
lea ecx, [ebp - 0x1c]
call fcn.00409ed0
mov byte [ebp - 4], 4
mov dword [ebp - 0x8c], 0
jmp 0x4271ee
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
lea ecx, [ebp - 0x28]
call fcn.0041cf10
cmp dword [ebp - 0x8c], eax
jae 0x427267
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409f20
push eax
lea ecx, [ebp - 0x40]
call fcn.00406580
mov byte [ebp - 4], 5
push 0x613cf7
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041ea70
add esp, 8
movzx edx, al
test edx, edx
je 0x427256
push 0x6147ac
lea eax, [ebp - 0x40]
push eax
call fcn.0041ea70
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x427256
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0041cf30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004066a0
jmp 0x4271df
mov dword [ebp - 0x90], 0
jmp 0x427282
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x1c]
call fcn.0041cf10
cmp dword [ebp - 0x90], eax
jae 0x427294
jmp 0x427273
lea ecx, [ebp - 0x1c]
call fcn.0041cf10
cmp eax, 2
jb 0x4272b4
push 1
lea ecx, [ebp - 0x1c]
call fcn.00409f20
push eax
lea ecx, [ebp - 0x58]
call fcn.004070c0
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406650
mov edx, dword [ebp - 0x94]
or edx, 1
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00409f00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.004066a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00409f00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.004066a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004066a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058835d
mov esp, ebp
pop ebp
ret
Function at 0x4371e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7ceb
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x614b78
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.00430570
add esp, 8
mov dword [ebp - 4], 0
push 0x613df6
lea eax, [ebp - 0x230]
push eax
call fcn.0040a120
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x43727c
push 0x614b88
lea ecx, [ebp - 0x230]
call fcn.00408b30
jmp 0x4372a7
lea ecx, [ebp - 0x230]
call fcn.00406720
push eax
call fcn.0043d490
add esp, 4
movzx edx, al
test edx, edx
jne 0x4372a7
push 0x614b8c
lea ecx, [ebp - 0x230]
call fcn.00408b30
push 1
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.00430aa0
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406650
mov edx, dword [ebp - 0x24c]
or edx, 1
mov dword [ebp - 0x24c], edx
lea ecx, [ebp - 0x248]
call fcn.004066a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004066a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058835d
mov esp, ebp
pop ebp
ret