joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4827c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b5c51
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x4827fd
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.004a8a51
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.004a7d3b
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.0047b410
lea ecx, [esp + 8]
call fcn.004a8cfc
lea ecx, [esp + 0x30]
call fcn.004a7e9f
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.004a7d3b
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.0047b880
lea ecx, [esp + 0x74]
call fcn.004a7e9f
lea ecx, [esp + 8]
call fcn.004a8cfd
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.00479020
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.0047b320
mov ecx, esi
call fcn.0047bec0
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.0047b320
mov ecx, esi
call fcn.0047bec0
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.0047b320
mov ecx, esi
call fcn.0047bec0
mov ecx, dword [edi + 0x5c]
call fcn.00478800
push eax
mov ecx, esi
call fcn.00478810
mov ecx, dword [edi + 0x5c]
call fcn.00478dc0
push eax
mov ecx, esi
call fcn.00478d60
mov ecx, dword [edi + 0x5c]
call fcn.00478ee0
push eax
mov ecx, esi
call fcn.00478e90
mov ecx, dword [edi + 0x5c]
push 0
call fcn.004780e0
push eax
mov ecx, esi
call fcn.004780f0
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.004a7e17
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.004a7e17
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.004a8b16
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x483f60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b5e77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.0049eaad
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.0049eaad
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.00484a80
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x484ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b5f50
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004aadbd
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x484b03
xor al, al
jmp 0x484c2f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x484b25
xor al, al
jmp 0x484c2f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x484b38
xor al, al
jmp 0x484c2f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x484b4c
xor al, al
jmp 0x484c2f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0049eb5d
test eax, eax
jne 0x484b80
xor al, al
jmp 0x484c2f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x4c579c
mov dword [esp + 0x20], ebp
call fcn.004aadbd
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004a79d7
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004a7a2e
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x484c14
mov ax, word [ebx]
test ax, ax
je 0x484c06
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00484c50
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x484bea
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004a7a2e
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x485150
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004a913a
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x485196
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0048f428
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x4e60b0
push ecx
call fcn.00490c54
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4a2d61
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a2d99
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a0d9d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a0d75
jmp 0x4a2da5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a46df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a4721
call fcn.004aadbd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a4721
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a4718
xor eax, eax
jmp 0x4a4729
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a472f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ab2ed
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ab31b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ab339
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ab253
jmp 0x4ab339
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab339
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ab253
test edi, edi
mov eax, edi
jne 0x4ab323
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4adbe2
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4adc0a
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4adc1b
push 2
call edi
test ax, ax
jge 0x4adc1b
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004a2396
cmp dword [esi + 0x30], ebx
jne 0x4adcf5
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004a2396
cmp eax, dword [esp + 0x34]
jne 0x4adcf5
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4adc91
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4adcd6
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4adcf5
cmp eax, 0x205
je 0x4adcf5
cmp eax, 0x201
je 0x4adcf5
cmp eax, 0x204
je 0x4adcf5
cmp eax, ebx
jne 0x4adcbc
cmp dword [esp + 0x1c], 0x1b
je 0x4adcf5
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x51441c]
jbe 0x4adceb
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4adc4e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
lea ebx, [ebp - 0x220]
sub esp, 0x48c
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0xc
mov edx, eax
test edx, edx
je 0x40107d
dec edx
mov ax, word [ebx + edx*2]
cmp ax, 0x2f
je 0x40104e
cmp ax, 0x5c
jne 0x401039
mov eax, 0x104
cmp edx, eax
cmovle eax, edx
xor ecx, ecx
cmp eax, ecx
jle 0x40106d
mov si, word [ebx + ecx*2]
mov word [ebp + ecx*2 - 0x428], si
inc ecx
jmp 0x40105a
cmp edx, 0x104
setg dl
movzx edx, dl
mov edi, edx
jmp 0x401081
xor edi, edi
xor eax, eax
mov edx, 0x104
movaps xmm0, xmmword [str._busyboxbox.exe]
mov ecx, 0xd
lea esi, [ebp - 0x428]
sub edx, eax
cmp edx, ecx
movups xmmword [ebp - 0x442], xmm0
movaps xmm0, xmmword [0x403010]
cmovle ecx, edx
add eax, eax
movups xmmword [ebp - 0x438], xmm0
add eax, esi
mov dword [ebp - 0x45c], ecx
xor ecx, ecx
cmp dword [ebp - 0x45c], ecx
je 0x4010d7
mov si, word [ebp + ecx*2 - 0x442]
mov word [eax + ecx*2], si
inc ecx
jmp 0x4010c0
xor eax, eax
cmp edx, 0xc
setle al
or eax, edi
je 0x401110
mov dword [esp], 0xfffffff4
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x25
mov dword [esp + 4], str.w64devkit:_busybox.exe_path_too_long_n
jmp 0x4011a3
lea edi, [ebp - 0x21c]
mov ecx, 0x10
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x220], 0x44
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 0x454]
mov dword [esp + 0x20], ebx
lea ebx, [ebp - 0x458]
mov dword [esp + 0x24], edx
xor edx, edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x428]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x4011b6
mov dword [esp], 0xfffffff4
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x27
mov dword [esp + 4], str.w64devkit:_could_not_start_busybox.exe_n
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x17e
sub esp, 0x14
jmp 0x4011ea
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x454]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push eax
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x454]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edx
push edx
mov eax, dword [ebp - 0x458]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x100062fa
pop dword [ebp - 0x18]
mov eax, 0xc1881afb
sub eax, 0xb187b801
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x37190
push 0
mov eax, 0x4902f482
add eax, 0xc6fe4be2
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x404d
xor edx, edx
add edx, eax
mov edi, 0xb9946c9a
sub edi, 0xa992e69a
add edi, dword [ebp - 0x18]
mov esi, 0x63c18b15
mov dword [ebp - 0xc], 0xe9a0a61d
mov ebx, dword [edi]
add dword [ebp - 0x14], 0x67651800
xor ebx, esi
xor dword [ebp - 8], edi
mov dword [edx], ebx
xor dword [ebp - 4], edx
add edx, 0x37a8b1f5
sub edx, 0x37a8b1f1
add edi, 0xba58e937
add edi, 0x45a716cd
loop 0x1000634f
add eax, 0xa7f8461
add eax, 0xf5816fa6
xor ebx, ebx
add ebx, eax
add eax, 0xd03e5f68
sub eax, 0xd03e5f63
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x14df45a3
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..idata
mov ebx, 0x42e3d0
nop
mov ecx, 0x23fe3ef6
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4035ab
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x403600
push dword [esp + 0x10]
push 0x40352a
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x56e570]
test esi, esi
je 0x403659
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4035f8
cmp byte [esi + 0x10], 0
je 0x4035f8
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4035d4
jmp 0x403659
mov esi, dword [0x56e570]
test esi, esi
je 0x403659
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x403652
cmp byte [esi + 0x11], 0
je 0x40362e
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x403645
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x56e570
call fcn.0040ef7f
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40360d
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x403cf0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x56e57c], 0
jne 0x403cfe
call fcn.00403c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x56e580]
call esi
test eax, eax
jne 0x403d21
call fcn.00403c90
push dword [0x56e580]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x403d30
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x403d90
mov ebx, 0x10
test edi, edi
jns 0x403d99
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x403d62
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x403db0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x56e57c], 0
jne 0x403dbe
call fcn.00403c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x56e580]
call esi
mov edx, eax
test edx, edx
jne 0x403de5
call fcn.00403c90
push dword [0x56e580]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x403e18
mov ebx, 0x10
test esi, esi
jns 0x403e21
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x403e30
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x404468
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4044f2
cmp dword [ebp + 0xc], edi
je 0x4044f2
push esi
push 0x28
push 8
push dword [0x56e4c8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test al, 1
je 0x4044e1
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4045f6
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4044d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x4044f1
push esi
call fcn.00404647
jmp 0x4044f0
push esi
call fcn.0040450b
push esi
mov edi, eax
call fcn.00404647
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0xc
Function at 0x40450b
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
call fcn.004273d0
mov edi, eax
test edi, edi
je 0x4045db
push dword [esp + 0x18]
call fcn.0044c5b0
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4045cb
test byte [esi + 0x1c], 2
mov dword [esi + 0x10], ebp
jne 0x404574
push 1
push 0x34
push edi
call fcn.00427460
add esp, 0xc
push dword [esp + 0x18]
push 0x2712
push edi
call fcn.00427460
push 0x404605
push 0x4e2b
push edi
call fcn.00427460
push esi
push 0x2711
push edi
call fcn.00427460
push edi
call fcn.00427450
add esp, 0x28
test eax, eax
jne 0x4045b6
xor ebx, ebx
mov dword [esi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4045cb
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x18]
call fcn.0044c5a0
push edi
call fcn.004273b0
pop ecx
cmp dword [esi + 4], 0xfffffffe
je 0x4045ee
cmp dword [esi + 4], 0xfffffffc
je 0x4045ee
mov dword [esi + 4], 0xfffffffd
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x40472c
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x56e5a8], 0
jne 0x404758
push 0x40467b
push 0x10
push 0x2c
mov dword [0x56e5a8], edi
call fcn.0040e94a
mov dword [0x56e5a4], eax
cmp word [0x56e59c], 0
jne 0x4047f4
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x404783
mov word [0x56e59c], di
jmp 0x40478b
xor eax, eax
mov word [0x56e59c], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x56e5b8], eax
test eax, eax
je 0x4047f4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x454038
push eax
call esi
push 0x454044
push dword [0x56e5b8]
mov dword [0x56e5ac], eax
call esi
push str.getnameinfo
push dword [0x56e5b8]
mov dword [0x56e5b0], eax
call esi
cmp dword [0x56e5ac], 0
mov dword [0x56e5b4], eax
pop esi
je 0x4047f4
cmp dword [0x56e5b0], 0
je 0x4047f4
test eax, eax
je 0x4047f4
mov dword [0x56e5a0], edi
movsx eax, word [0x56e59c]
pop edi
add esp, 0x190
ret