joyce8/EMBER2024-capa huggingface dataset:
Function at 0x502d0c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x502d23
add esp, 0xfffffff0
call fcn.00404370
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00444c24
mov eax, dword [0x55c8fc]
cmp word [eax + 2], 0
jne 0x502d4b
mov eax, dword [0x55c8fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005047d4
mov eax, dword [0x55ca64]
cmp word [eax + 2], 0
jne 0x502d65
mov eax, dword [0x55ca64]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005049e0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x438ac4]
call fcn.00403fdc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x438ac4]
call fcn.00403fdc
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x438ac4]
call fcn.00403fdc
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4918a8]
call fcn.004992b8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x502f1c
mov eax, dword [0x55c778]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0049968c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5050b0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x55c778]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0042d524
test eax, eax
je 0x502e6c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0042912c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0042d558
test eax, eax
je 0x502e80
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040529c
mov byte [ebx + 0xd4], 0
push ebx
push 0x50431c
call fcn.00445da0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x55c528]
cmp byte [eax], 0
jne 0x502ed1
mov eax, ebx
call fcn.00503060
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0050528c
mov eax, ebx
call fcn.00505dec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x502f11
call fcn.004043c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5032e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x661a34]
cmp dword [eax + 0x30], 0
je 0x50338a
cmp dword [ebx + 0x94], 0
jne 0x503384
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x503270
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x503384
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x50334a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x503384
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0043b3bc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x503359
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5040a4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x5040d9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040511c
jmp 0x5040e6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405080
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x505470
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x5054de
mov eax, esi
call fcn.005171b4
test al, al
je 0x5054de
mov eax, dword [ebx + 0x84]
call fcn.00516e14
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5054de
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x5054d2
push 0
mov eax, dword [ebx + 0x84]
call fcn.00516e14
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0050f234
jmp 0x5054de
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.005052ac
pop esi
pop ebx
ret
Function at 0x50cabc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x661ab0], 0
je 0x50cc05
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x55ca20]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x50cc05
mov eax, dword [0x661ab4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x661ab0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x50cbd4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x661ab0]
call fcn.0043b3bc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x50cbcc
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x50cbcc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x50cbcc
mov eax, dword [ebp - 0x14]
call fcn.00516e14
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50cbcc
push ebp
call fcn.0050ca78
pop ecx
test al, al
jne 0x50cbcc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00404208
test al, al
je 0x50cbcc
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00404208
cmp byte [ebp - 1], 0
je 0x50cbcc
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x50cbcc
mov edx, dword [ebp - 0x14]
mov eax, dword [0x661ab4]
call fcn.0050c1e8
inc edi
dec ebx
jne 0x50cb21
mov eax, dword [0x661ab4]
cmp dword [eax + 8], 0
jle 0x50cbec
mov eax, dword [0x661ab4]
call fcn.0050c2a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50cc05
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0050c8dc
pop ecx
test al, al
jne 0x50cc05
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x514010
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.004077cc
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0050ee44
test ebx, ebx
jne 0x514063
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00513f4c
mov ebx, eax
test ebx, ebx
je 0x51414e
cmp esi, ebx
je 0x51408c
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x5140a1
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x5140d9
add eax, 0xffffff5f
sub eax, 2
jb 0x5140f1
dec eax
sub eax, 2
jb 0x514105
dec eax
sub eax, 2
jb 0x5140fb
jmp 0x51410f
add eax, 0xfffffdff
sub eax, 2
jb 0x5140f1
dec eax
sub eax, 2
jb 0x514105
dec eax
sub eax, 2
jb 0x5140fb
jmp 0x51410f
mov byte [esp + 0x120], 0
jmp 0x514117
mov byte [esp + 0x120], 2
jmp 0x514117
mov byte [esp + 0x120], 1
jmp 0x514117
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004fa434
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.005105cc
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x514150
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x514dbc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x514dd8
cmp dword [esi + 4], 0
je 0x514e05
test byte [ebx + 0x55], 1
jne 0x514df7
mov eax, ebx
call fcn.005131a4
test eax, eax
jne 0x514df7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x514f15
mov edx, esi
mov eax, ebx
call fcn.005147c4
jmp 0x514f15
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x514f0e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00516e14
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.005105cc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00514dbc
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00516e14
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514f15
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51c224
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x55cd08]
cmp byte [eax + 0xc], 0
je 0x51c391
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51c38a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x661ac0], 0
jne 0x51c278
push 0x51c398
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x51c3a0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x661ac0], eax
cmp dword [0x55bb08], 0
jne 0x51c373
push 0x51c3b0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x55bb08], eax
cmp dword [0x55bb08], 0
je 0x51c373
push 0x51c3bc
mov eax, dword [0x55bb08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x661ac4], eax
push 0x51c3cc
mov eax, dword [0x55bb08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x661ac8], eax
push 0x51c3e0
mov eax, dword [0x55bb08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x661acc], eax
push 0x51c3f8
mov eax, dword [0x55bb08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x661ad0], eax
push 0x51c410
mov eax, dword [0x55bb08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x661ad4], eax
push 0x51c424
mov eax, dword [0x55bb08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x661ad8], eax
push 0x51c43c
mov eax, dword [0x55bb08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x661adc], eax
push 0x51c454
mov eax, dword [0x55bb08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x661ae0], eax
push 0x51c470
mov eax, dword [0x55bb08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x661ae4], eax
push 0x51c47c
mov eax, dword [0x55bb08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x661ae8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51c391
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x522b04
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [0x55cd0c]
cmp eax, dword [edx]
jne 0x522b23
mov ebx, dword [0x55c4f0]
mov ebx, dword [ebx]
jmp 0x522b25
xor ebx, ebx
test ebx, ebx
je 0x522b31
cmp ebx, 0x103
jne 0x522b53
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
test eax, eax
je 0x522b47
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov ebx, dword [eax]
jmp 0x522b53
mov eax, 0x1f
call fcn.00408704
mov ebx, eax
test ebx, ebx
je 0x522b5f
cmp ebx, 0x103
jne 0x522b6b
mov eax, 0x1f
call fcn.00408704
mov ebx, eax
xor eax, eax
push ebp
push 0x522bc6
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [0x55cd0c]
cmp eax, dword [edx]
jne 0x522b9d
xor eax, eax
call fcn.00446ee8
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
jmp 0x522bbc
xor eax, eax
call fcn.004a7174
call sub.kernel32.dll_GetCurrentThreadId_1
xor edx, edx
call fcn.004a7820
push ebx
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x522bd8
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x524a38
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x524bc6
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00403148
mov ebx, eax
call fcn.00403168
mov esi, eax
mov eax, dword [0x55cb50]
xor edx, edx
mov dword [eax], edx
mov eax, esi
call fcn.0040e418
test al, al
je 0x524a8e
mov eax, ebx
call fcn.0040e418
test al, al
je 0x524a8e
mov eax, ebx
call fcn.0040eb18
test al, al
jne 0x524aa5
call fcn.00403188
test eax, eax
je 0x524bb0
call fcn.004031bc
jmp 0x524bb0
mov eax, dword [0x55c4f0]
xor edx, edx
mov dword [eax], edx
push 2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00527d40
test al, al
jne 0x524b07
mov eax, ebx
mov edx, dword [0x426d90]
call fcn.00404198
test al, al
je 0x524b07
cmp dword [ebx + 4], 0
je 0x524b07
push 0
lea edx, [ebp - 0x104]
mov eax, dword [ebx]
call fcn.00403eec
lea edx, [ebp - 0x104]
lea eax, [ebp - 4]
call fcn.00405290
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 4]
mov ecx, 0x2010
call fcn.0041bae8
mov eax, dword [0x55c4f0]
cmp dword [eax], 0
je 0x524b1e
mov eax, dword [0x55c4f0]
cmp dword [eax], 0x103
jne 0x524b9d
mov eax, ebx
mov edx, dword [0x426f5c]
call fcn.00404198
test al, al
je 0x524b44
cmp dword [ebx + 0xc], 0
je 0x524b44
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov edx, dword [0x55c4f0]
mov dword [edx], eax
jmp 0x524b7b
mov eax, ebx
mov edx, dword [0x427724]
call fcn.00404198
test al, al
je 0x524b70
mov eax, dword [ebx + 0xc]
test eax, eax
jns 0x524b61
call fcn.00403edc
call fcn.00408704
mov edx, dword [0x55c4f0]
mov dword [edx], eax
jmp 0x524b7b
mov eax, dword [0x55c4f0]
mov dword [eax], 0xeedfade
mov eax, dword [0x55c4f0]
cmp dword [eax], 0
je 0x524b92
mov eax, dword [0x55c4f0]
cmp dword [eax], 0x103
jne 0x524b9d
mov eax, dword [0x55c4f0]
mov dword [eax], 0x1f
mov eax, dword [0x55c4f0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524bcd
lea eax, [ebp - 4]
call fcn.0040502c
ret
Function at 0x5254a8
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x525585
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00415cf8
call fcn.00424b7c
mov eax, 0x525594
call fcn.0041a778
mov eax, 0x525594
call fcn.004251bc
test bl, bl
je 0x525554
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 4]
call fcn.00405224
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetStartupInfoA_1
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x10
call fcn.004038b8
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, edi
call fcn.0040550c
push eax
push 0
push 0x200
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040550c
push eax
lea edx, [ebp - 0x5c]
xor eax, eax
call fcn.0040f1dc
mov eax, dword [ebp - 0x5c]
call fcn.0040550c
push eax
call sub.kernel32.dll_CreateProcessA
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52558c
lea eax, [ebp - 0x5c]
call fcn.0040502c
lea eax, [ebp - 4]
call fcn.0040502c
ret

Function at 0x528a0c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.004a9f68
mov edi, eax
dec edi
test edi, edi
jl 0x528a82
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.004a9f70
mov byte [eax + 0x58], 0
mov edx, ebx
mov eax, esi
call fcn.004a9f70
mov eax, dword [eax + 4]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 4]
je 0x528a7e
push ebp
mov edx, ebx
mov eax, esi
call fcn.004a9f70
call fcn.00528988
pop ecx
test al, al
je 0x528a7e
mov edx, ebx
mov eax, esi
call fcn.004a9f70
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_SuspendThread
cmp eax, 0xffffffff
je 0x528a7e
mov edx, ebx
mov eax, esi
call fcn.004a9f70
mov byte [eax + 0x58], 1
inc ebx
dec edi
jne 0x528a25
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x528a90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
mov eax, edi
call fcn.004a9f68
mov esi, eax
dec esi
test esi, esi
jl 0x528ade
inc esi
xor ebx, ebx
mov edx, ebx
mov eax, edi
call fcn.004a9f70
call fcn.00528a88
test al, al
je 0x528ada
mov edx, ebx
mov eax, edi
call fcn.004a9f70
mov byte [eax + 0x58], 0
mov edx, ebx
mov eax, edi
call fcn.004a9f70
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_ResumeThread
inc ebx
dec esi
jne 0x528aa9
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x52b188
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x52b230
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040ecdc
mov ebx, eax
test bl, bl
jne 0x52b215
mov bl, 1
push 4
lea eax, [ebp - 4]
push eax
push 0x52b240
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
ja 0x52b215
push 4
lea eax, [ebp - 4]
push eax
push 0x52b258
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
ja 0x52b215
call fcn.00403544
mov esi, eax
test esi, esi
jle 0x52b213
mov dword [ebp - 4], 1
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004035a4
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00427bf4
mov eax, dword [ebp - 8]
mov edx, 0x52b274
call fcn.00405458
je 0x52b215
inc dword [ebp - 4]
dec esi
jne 0x52b1e8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52b237
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405050
ret

Function at 0x52b35c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
call fcn.0040f754
test al, al
jne 0x52b3d4
cmp dword [0x661bc4], 0
je 0x52b3d4
mov eax, dword [0x661bc4]
call fcn.00444b78
mov eax, dword [0x55f7f8]
call fcn.0041bd68
test al, al
jne 0x52b3b3
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [0x55cd0c]
cmp eax, dword [edx]
jne 0x52b3a7
mov eax, dword [0x661bc4]
mov eax, dword [eax + 4]
call fcn.0052b300
jmp 0x52b3ca
mov eax, dword [0x661bc4]
call fcn.00444b80
jmp 0x52b3ca
push 0x64
call sub.kernel32.dll_Sleep_2
push 1
mov eax, dword [0x661bc4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, 0x661bc4
call fcn.0040f788
pop ebp
ret

Function at 0x52ee74
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x52ef32
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0052b500
call fcn.004886ec
test al, al
je 0x52ef17
call fcn.0040f478
lea edx, [ebp - 4]
call fcn.0040f1dc
mov eax, dword [ebp - 4]
call fcn.00457c38
test al, al
je 0x52eed8
call fcn.0040f478
cmp eax, dword [0x55f7f8]
je 0x52ef17
lea edx, [ebp - 8]
mov eax, dword [0x55f7f8]
call fcn.0040f1dc
mov eax, dword [ebp - 8]
call fcn.00457c38
test al, al
jne 0x52ef17
push 0
call fcn.0052b500
lea ecx, [ebp - 0xc]
mov dl, 2
call fcn.00489140
mov eax, dword [ebp - 0xc]
push eax
call fcn.0052b500
lea ecx, [ebp - 0x10]
mov dl, 0x99
call fcn.00489140
mov eax, dword [ebp - 0x10]
mov ecx, 0x10
pop edx
call fcn.0041bae8
push 0xb
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ef39
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405050
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..reloc
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1fce7094
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..rdata
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x243339c1
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219