joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b458
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43153c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041243a
mov dword [ebp - 0x14], eax
cmp dword [0x43419c], edi
jne 0x41b549
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41b4d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41b629
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41b629
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b629
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x43419c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4341a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4341a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4341ac], eax
test eax, eax
je 0x41b546
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4341a8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41b56e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41b561
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41b583
push 4
pop eax
jmp 0x41b62b
cmp dword [ebp - 0x14], edi
je 0x41b583
push dword [0x43419c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41b568
mov eax, dword [0x4341a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41b5e1
cmp dword [0x4341ac], esi
je 0x41b5e1
push eax
call ebx
push dword [0x4341ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41b5e1
test eax, eax
je 0x41b5e1
call ecx
test eax, eax
je 0x41b5d6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41b5d6
test byte [ebp - 8], 1
jne 0x41b5e1
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41b611
mov eax, dword [0x4341a0]
cmp eax, esi
je 0x41b60e
push eax
call ebx
test eax, eax
je 0x41b60e
call eax
mov edi, eax
test edi, edi
je 0x41b60e
mov eax, dword [0x4341a4]
cmp eax, esi
je 0x41b60e
push eax
call ebx
test eax, eax
je 0x41b60e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x43419c]
call ebx
test eax, eax
je 0x41b629
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41b62b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e58c
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43cf45
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43ccda
pop esi
inc edi
call fcn.0043cf74
add eax, 1
dec edi
xor dword [edx], esi
inc edx
sub edi, edi
add eax, 0xe9f53490
cmp edx, ecx
jne fcn.0043cf45
sub eax, edi
ret

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x23f3861
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3af07162
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x41ed70
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43064e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x43fc54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x4393a0
push 0x438f8c
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0041fac0
mov dword [ebp - 4], 0
push 0x438f9c
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.0041fac0
mov byte [ebp - 4], 1
push 0x438fac
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0041fac0
mov byte [ebp - 4], 2
push 0x438fbc
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.0041fac0
mov byte [ebp - 4], 3
push 0x438fd4
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.0041fac0
mov byte [ebp - 4], 4
push 0x438fec
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0041fac0
mov byte [ebp - 4], 5
push 0x438ff4
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.0041fac0
mov byte [ebp - 4], 6
push 0x439008
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.0041fac0
mov byte [ebp - 4], 7
push 0x43901c
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0041fac0
mov byte [ebp - 4], 8
push 0x439030
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.0041fac0
mov byte [ebp - 4], 9
push 0x439040
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.0041fac0
mov byte [ebp - 4], 0xa
push 0x43904c
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0041fac0
mov byte [ebp - 4], 0xb
push 0x439068
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.0041fac0
mov byte [ebp - 4], 0xc
push 0x439084
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.0041fac0
mov byte [ebp - 4], 0xd
push 0x439094
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.0041fac0
mov byte [ebp - 4], 0xe
push 0x4390c0
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.0041fac0
mov byte [ebp - 4], 0xf
push 0x439110
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0041fac0
mov byte [ebp - 4], 0x10
push 0x439160
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.0041fac0
mov byte [ebp - 4], 0x11
push 0x439184
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.0041fac0
mov byte [ebp - 4], 0x12
push 0x439190
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.0041fac0
mov byte [ebp - 4], 0x13
push 0x43919c
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.0041fac0
mov byte [ebp - 4], 0x14
push 0x4391a8
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.0041fac0
mov byte [ebp - 4], 0x15
push 0x4391e4
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.0041fac0
mov byte [ebp - 4], 0x16
push 0x439204
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.0041fac0
mov byte [ebp - 4], 0x17
push 0x439224
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.0041fac0
mov byte [ebp - 4], 0x18
push 0x439234
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.0041fac0
mov byte [ebp - 4], 0x19
push 0x43924c
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call fcn.0041fac0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x444740
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x43fc54]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov ecx, 0x20
mov esi, 0x435950
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 8
jae 0x4448dd
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x94]
movzx ecx, byte [eax]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x94]
add edx, 1
mov dword [ebp - 0x94], edx
cmp dword [ebp - 0x94], 8
jae 0x4447d4
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x94]
movzx ecx, byte [eax]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0x94]
add edx, 1
mov dword [ebp - 0x94], edx
jmp 0x4447de
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0x94], 8
jae 0x444816
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x94]
movzx edx, byte [ecx]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x94]
add eax, 1
mov dword [ebp - 0x94], eax
jmp 0x444820
mov dword [ebp - 0xa8], 0
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x98]
shr edx, 2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dx, word [ebp + edx*2 - 0x90]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xa0]
shr ecx, 4
mov edx, dword [ebp - 0x98]
and edx, 3
shl edx, 4
or ecx, edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov cx, word [ebp + ecx*2 - 0x90]
mov word [edx + eax*2], cx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x9c]
shr eax, 6
mov ecx, dword [ebp - 0xa0]
and ecx, 0xf
shl ecx, 2
or eax, ecx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x90]
mov word [ecx + edx*2], ax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x9c]
and edx, 0x3f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dx, word [ebp + edx*2 - 0x90]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x44477a
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, 0x3d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2], ax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042e005
mov esp, ebp
pop ebp
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
xor ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
or eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
or eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x438caf
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
pop edx
add ebx, ebx
inc ebx
add esi, 0xa62d4160
call fcn.00438cff
sub ebx, 0x103cb6a0
dec esi
xor dword [ecx], edx
sub esi, esi
inc ecx
dec ebx
and esi, esi
sub esp, 4
mov dword [esp], 0xacdbda86
pop esi
cmp ecx, eax
jne fcn.00438caf
mov ebx, ebx
sub ebx, 0xaa5814d6
and ebx, ebx
ret
Function at 0x41c5f6
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 0x41c624
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x41c642
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041c55c
jmp 0x41c642
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41c642
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041c55c
test edi, edi
mov eax, edi
jne 0x41c62c
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x430006
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x401206
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.construct
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030b0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401318
push 1
push dword [0x4030b0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.displayed
push str.construct
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030b8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401318
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4012fb
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402da0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x402dbf
cmp dword [ebp + 0xc], 0
jne 0x402dc6
xor eax, eax
jmp 0x402ef7
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x402ef5
mov dword [ebp - 0x4c0], 0
jmp 0x402dfb
mov ecx, dword [ebp - 0x4c0]
add ecx, 4
mov dword [ebp - 0x4c0], ecx
mov edx, dword [ebp - 0x4c0]
movzx eax, word [ebp + edx*2 - 0x4bc]
test eax, eax
je 0x402ef5
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp - 0x4c0]
mov cx, word [ebp + eax*2 - 0x4bc]
mov word [ebp + edx - 0xc], cx
mov edx, 2
shl edx, 0
mov eax, dword [ebp - 0x4c0]
mov cx, word [ebp + eax*2 - 0x4ba]
mov word [ebp + edx - 0xc], cx
mov edx, 2
shl edx, 1
mov dword [ebp - 0x4c4], edx
cmp dword [ebp - 0x4c4], 6
jae 0x402e5f
jmp 0x402e64
call fcn.0052df7d
xor eax, eax
mov ecx, dword [ebp - 0x4c4]
mov word [ebp + ecx - 0xc], ax
push 0x64
lea edx, [ebp - 0xd4]
push edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x402e8d
jmp 0x402dec
lea ecx, [ebp - 0xd4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x4c8], eax
mov edx, dword [ebp - 0x4c8]
push edx
lea eax, [ebp - 0xd4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005b4c8b
add esp, 0xc
test eax, eax
jne 0x402ef0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00403bb0
mov edx, dword [ebp - 0x4c8]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403b50
mov eax, 1
jmp 0x402ef7
jmp 0x402dec
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
Function at 0x4033e0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0052e070
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x403403
cmp dword [ebp + 0x10], 0x64
jge 0x40340a
xor eax, eax
jmp 0x40354d
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1008], eax
cmp dword [ebp - 0x1008], 0
jne 0x403431
xor eax, eax
jmp 0x40354d
mov dword [ebp - 0x1010], 0x400
push 0x800
push 0
lea ecx, [ebp - 0x804]
push ecx
call fcn.005b1170
add esp, 0xc
mov dword [ebp - 0x100c], 0
push 0x400
lea edx, [ebp - 0x804]
push edx
push 0
mov eax, dword [ebp - 0x1008]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
je 0x403501
push 0x800
push 0
lea ecx, [ebp - 0x1004]
push ecx
call fcn.005b1170
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x1004]
push edx
call fcn.005b1170
add esp, 0xc
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x804]
push ecx
call fcn.00402c50
add esp, 0xc
test eax, eax
je 0x4034e8
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005b4bc5
add esp, 0xc
jmp 0x4034ff
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x804]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005b4bc5
add esp, 0xc
jmp 0x40353a
push 0x400
lea edx, [ebp - 0x804]
push edx
mov eax, dword [ebp - 0x1008]
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x40353a
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x804]
push eax
call fcn.00402da0
add esp, 0xc
mov dword [ebp - 0x100c], eax
mov ecx, dword [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
Function at 0x403db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403dd4
xor eax, eax
jmp 0x403e54
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403deb
xor eax, eax
jmp 0x403e54
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x403e37
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x403e37
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x403e0e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x403e43
xor eax, eax
jmp 0x403e54
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x403e51
xor eax, eax
jmp 0x403e54
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4080e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6bb048], 0
jl 0x408126
cmp dword [0x6bb048], 0
je 0x408111
mov dword [ebp - 0x124], 1
jmp 0x40811b
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x124]
jmp 0x408229
mov dword [0x6bb048], 0
xor eax, eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
push 0x11c
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.005b1170
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x4081c3
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4081c3
xor eax, eax
jmp 0x408229
push 0x618a0c
push 0x618a20
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x4081f8
lea ecx, [ebp - 0x150]
push ecx
call dword [ebp - 0x128]
jmp 0x4081fc
xor eax, eax
jmp 0x408229
movzx edx, word [ebp - 0x150]
cmp edx, 9
je 0x408214
movzx eax, word [ebp - 0x150]
cmp eax, 6
jne 0x408227
mov dword [0x6bb048], 1
mov eax, 1
jmp 0x408229
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret