joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439b30
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00439750
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
mov eax, dword [esp + 4]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x439b73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
pop ebx
pop ecx
ret

Function at 0x439f50
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x486a08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7b70]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x20]
call fcn.0043bd20
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x38], 0
call fcn.0043bb20
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
movzx edx, word [eax + 4]
mov word [esi + 8], dx
movzx ecx, word [eax + 6]
mov word [esi + 0xa], cx
movzx edx, word [eax + 8]
mov word [esi + 0xc], dx
movzx ecx, word [eax + 0xa]
mov word [esi + 0xe], cx
movzx edx, word [eax + 0xc]
mov word [esi + 0x10], dx
movzx ecx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
movzx ecx, word [eax + 0x20]
movzx edx, word [eax + 0x22]
movzx ebx, word [eax + 0x1c]
movzx ebp, word [eax + 0x1e]
mov word [esi + 0x20], dx
mov dword [esp + 0x34], ecx
movzx ecx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x18]
mov dword [esi + 0x28], eax
call fcn.0043bc00
mov ecx, dword [esi + 4]
cmp ecx, dword [0x4b6368]
jne 0x43a0c4
mov ecx, edi
call fcn.0043ab50
movzx ebx, bx
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x1c], eax
call fcn.0043bc30
mov eax, dword [esi + 0x3c]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 0x34]
call eax
test bp, bp
je 0x43a07b
movzx ebx, bp
push 0
push ebx
lea ecx, [esi + 0x2c]
call fcn.0043bc30
mov eax, dword [esi + 0x30]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 0x34]
call eax
mov eax, dword [esp + 0x34]
test ax, ax
je 0x43a0a1
movzx ebx, ax
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.0043bc30
mov ecx, dword [edi + 0x1c]
mov esi, dword [esi + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
push ebx
push esi
call eax
mov ecx, edi
call fcn.0043ab50
cmp eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
sete bl
mov dword [esp + 0x2c], 0xffffffff
call fcn.0043bd50
mov al, bl
jmp 0x43a0d7
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0043bd50
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x43a120
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x486a38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7b70]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x34]
mov ebp, dword [esi + 0x40]
mov dword [esp + 0x14], eax
movzx eax, ax
movzx edi, bp
lea ebx, [edi + eax + 0x1e]
push 0
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.0043bd20
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4b636c]
mov dword [eax], ecx
movzx edx, word [esi + 0xa]
mov eax, dword [esp + 0x20]
mov word [eax + 4], dx
movzx ecx, word [esi + 0xc]
mov edx, dword [esp + 0x20]
mov word [edx + 6], cx
mov ax, word [esi + 0xe]
mov ecx, dword [esp + 0x20]
mov word [ecx + 8], ax
movzx edx, word [esi + 0x10]
mov eax, dword [esp + 0x20]
mov word [eax + 0xa], dx
movzx ecx, word [esi + 0x12]
mov edx, dword [esp + 0x20]
mov word [edx + 0xc], cx
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0xe], eax
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x20]
mov dword [eax + 0x12], edx
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [edx + 0x16], ecx
mov eax, dword [esp + 0x20]
movzx edx, word [esp + 0x14]
mov word [eax + 0x1a], bp
mov ecx, dword [esp + 0x20]
mov word [ecx + 0x1c], dx
mov eax, dword [esi + 0x3c]
push edi
push eax
mov eax, dword [esp + 0x28]
add eax, 0x1e
push eax
mov dword [esp + 0x3c], 0
call fcn.00460080
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push eax
lea eax, [edi + edx + 0x1e]
push eax
call fcn.00460080
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x50]
add esp, 0x18
push 1
push ebx
push ecx
mov ecx, edi
call fcn.0043b6a0
lea ecx, [esi + 0x2c]
call fcn.0043bc00
mov ecx, edi
call fcn.0043ab50
mov ecx, edi
mov word [esi + 0x20], ax
call fcn.0043ab80
sub eax, ebx
lea ecx, [esp + 0x1c]
mov dword [esi + 0x28], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.0043bd50
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x43ad70
Capabilities:
Access peb ldr_data
Get disk size
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x486b68
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
mov eax, dword [0x4b7b70]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0xc]
push edx
call eax
mov eax, dword [eax]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x30], 0
call fcn.00439750
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
mov eax, dword [esp + 8]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43adfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43ae25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x43ae3c
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x24
ret
Function at 0x43e420
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x43e452
push dword [ebp + 8]
call edi
push eax
call fcn.0044faa0
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x43e47d
test byte [ebp - 4], 1
je 0x43e47d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x43e47d
push dword [ebp + 8]
call edi
push eax
call fcn.0044faa0
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x43e537
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0043e382
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x43e4b3
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0043e382
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x43e4c9
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0043e382
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43e4f6
push dword [ebp + 8]
call edi
push eax
call fcn.0044faa0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43e522
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0044faa0
push ebx
call esi
test eax, eax
jne 0x43e534
push dword [ebp + 8]
call edi
push eax
call fcn.0044faa0
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x43e55f
test byte [ebp - 4], 1
jne 0x43e55f
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x43e55f
push dword [ebp + 8]
call edi
push eax
call fcn.0044faa0
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4443b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4443fa
call fcn.00448826
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4443fa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x444416
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00443f2b
mov esi, eax
test edi, edi
je 0x444414
test ebx, ebx
je 0x444414
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x445b38
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x487353
call fcn.0046550d
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x445b5d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x445ba3
lea ecx, [ebp - 0x10]
call fcn.004111f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043d552
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00410980
mov eax, esi
call fcn.004655e5
ret 8

Function at 0x447cf3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x447d17
cmp dword [edi + 0x54], 0
jne 0x447d17
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00448826
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00447cb4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44d267
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x44d2af
call fcn.00448826
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44d2af
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x44d2f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44d2db
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44d2db
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44d2ef
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x460c80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b7b70]
jne 0x460c8a
repz ret
jmp fcn.0046c56c
Function at 0x473656
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.0046846d
and dword [ebp - 4], 0
cmp dword [0x4c0fcc], 0
mov ebx, eax
jne 0x473707
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4737b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4737b8
push eax
call fcn.004683fb
mov dword [esp], 0x498aa8
push edi
mov dword [0x4c0fcc], eax
call esi
push eax
call fcn.004683fb
mov dword [esp], 0x498a94
push edi
mov dword [0x4c0fd0], eax
call esi
push eax
call fcn.004683fb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c0fd4], eax
call esi
push eax
call fcn.004683fb
pop ecx
mov dword [0x4c0fdc], eax
test eax, eax
je 0x473707
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004683fb
pop ecx
mov dword [0x4c0fd8], eax
mov eax, dword [0x4c0fd8]
cmp eax, ebx
je 0x47375f
cmp dword [0x4c0fdc], ebx
je 0x47375f
push eax
call fcn.00468476
push dword [0x4c0fdc]
mov esi, eax
call fcn.00468476
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47375f
test edi, edi
je 0x47375f
call esi
test eax, eax
je 0x473756
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x473756
test byte [ebp - 0xc], 1
jne 0x47375f
or dword [ebp + 0x10], 0x200000
jmp 0x473798
mov eax, dword [0x4c0fd0]
cmp eax, ebx
je 0x473798
push eax
call fcn.00468476
pop ecx
test eax, eax
je 0x473798
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x473798
mov eax, dword [0x4c0fd4]
cmp eax, ebx
je 0x473798
push eax
call fcn.00468476
pop ecx
test eax, eax
je 0x473798
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c0fcc]
call fcn.00468476
pop ecx
test eax, eax
je 0x4737b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4737ba
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47c670
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x47c67f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4b8fe8]
test eax, eax
je 0x47c68d
call fcn.0047c610
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x47c78f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x4c1038]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4c1038]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4c1038]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4c1038]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4c1038]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4c1038]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4c1038]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4c1038]
xor eax, ecx
inc esi
dec edi
jne 0x47c6a7
pop edi
test edx, edx
je 0x47c7b1
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4c1038]
xor eax, ecx
inc esi
dec edx
jne 0x47c793
pop ebx
pop esi
not eax
ret 0xc
Function at 0x4011c0
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 0x4011d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011ed
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40120e
cmp esi, eax
jae 0x4011e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401200
cmp esi, eax
jae 0x4011e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403060
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x800c
call fcn.00407a00
mov eax, dword [0x4131c0]
mov dword [esp + 0x8008], eax
push edi
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x1fff
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 0x18]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x10
cmp ecx, eax
jb 0x4030a3
mov edx, dword [edx + 4]
jmp 0x4030a6
add edx, 4
cmp dword [esi + 0x18], eax
jb 0x4030b0
mov eax, dword [esi + 4]
jmp 0x4030b3
lea eax, [esi + 4]
push edx
push 0x7fff
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push str.Install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40310a
cmp eax, 0x7ffe
jae 0x40310a
lea eax, [esp + 8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4030e0
mov ecx, dword [ebp + 8]
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
call fcn.00401d00
mov al, 1
mov ecx, dword [esp + 0x800c]
call fcn.00407a6e
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x800c]
xor al, al
call fcn.00407a6e
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x404670
Capabilities:
Create http request
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4131c0]
push esi
mov esi, ecx
mov dword [esp + 0x10c], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x40472f
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40472f
push 0x410398
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
setne al
test al, al
je 0x40472f
push str.Mozilla_4.0__compatible__Win32_
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404719
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.User_Agent
push ecx
mov dword [esp + 0x20], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 4], eax
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x10c]
setne al
pop esi
call fcn.00407a6e
add esp, 0x10c
ret

Function at 0x404750
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x408
mov eax, dword [0x4131c0]
mov dword [esp + 0x404], eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x404780
xor al, al
mov ecx, dword [esp + 0x404]
call fcn.00407a6e
add esp, 0x408
ret 4
mov ecx, dword [esp + 0x40c]
push esi
push 0
push 0x84080200
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x4047ee
push edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4047b0
lea edx, [esp + 8]
push edx
push 0x400
lea eax, [esp + 0x14]
push eax
push esi
call edi
test eax, eax
je 0x4047ce
mov eax, dword [esp + 8]
test eax, eax
ja 0x4047b0
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x404]
call fcn.00407a6e
add esp, 0x408
ret 4
mov ecx, dword [esp + 0x408]
xor al, al
pop esi
call fcn.00407a6e
add esp, 0x408
ret 4
Function at 0x4048e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x4131c0]
mov dword [esp + 0x25c], eax
mov eax, dword [esp + 0x264]
cmp dword [eax + 0x18], 0x10
jb 0x404904
mov eax, dword [eax + 4]
jmp 0x404907
add eax, 4
push eax
push 0x208
lea eax, [esp + 0x5c]
push eax
call fcn.00404890
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [esp + 0x3c]
lea eax, [esp]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x400
or edx, 1
push 0
mov dword [esp + 0x54], edx
mov dx, word [esp + 0x284]
push 0
mov word [esp + 0x5c], dx
push 0
lea edx, [esp + 0x74]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404978
xor al, al
mov ecx, dword [esp + 0x25c]
call fcn.00407a6e
add esp, 0x260
ret
mov al, byte [esp + 0x268]
test al, al
je 0x40498f
mov eax, dword [esp]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x4049b7
mov ecx, dword [esp]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x25c]
call fcn.00407a6e
add esp, 0x260
ret
mov ecx, dword [esp + 0x25c]
mov al, 1
call fcn.00407a6e
add esp, 0x260
ret

Function at 0x404a60
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404ac1
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x404aa3
cmp eax, 2
jne 0x404ab3
test esi, esi
mov eax, dword [esp + 0x14]
je 0x404abd
mov cl, byte [eax + esi - 1]
test cl, cl
je 0x404abd
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc