joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2a323cd6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x2a3442a0
call fcn.2a30372f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x2a323d84
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call sym.SEARCH.API__ixCreateIndexEx_12
add esp, 0xc
test eax, eax
js 0x2a323d84
mov edi, dword [ebp - 0x41c]
cmp edi, 0x400
jg 0x2a323d6a
push edi
call fcn.2a3203ae
pop ecx
test al, al
je 0x2a323d6a
mov eax, edi
call fcn.2a341a00
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x2a323d76
push edi
lea ecx, [ebp - 0x428]
call sym.SEARCH.API__ixCreateIndexEx_12
push 3
push edi
push esi
push eax
call sym.SEARCH.API__ixCreateIndexEx_12
cmp eax, ebx
jne 0x2a323dc1
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2a323d9d
lea ecx, [ebp - 0x418]
call fcn.2a31ffe1
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.2a31fe2e
mov eax, esi
lea esp, [ebp - 0x440]
call fcn.2a303768
ret 0x10
push 2
push ebx
push eax
call fcn.2a3212fd
mov edi, eax
mov dword [ebp - 0x41c], edi
cmp edi, ebx
jne 0x2a323de2
call fcn.2a31f619
mov esi, eax
jmp 0x2a323eac
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x2a323e05
call fcn.2a31f619
jmp 0x2a323e9e
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x2a323dfb
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x424], esi
cmp eax, esi
jae 0x2a323e35
mov esi, 0x8007000e
jmp 0x2a323ea0
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call sym.SEARCH.API__ixCreateIndexEx_12
mov dword [ebp - 4], 1
jmp 0x2a323e63
cmp dword [ebp - 0x418], ebx
je 0x2a323e2e
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call sym.SEARCH.API__ixCreateIndexEx_12
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call sym.SEARCH.API__ixCreateIndexEx_12
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2a323da2
lea ecx, [ebp - 0x418]
call fcn.2a31ffe1
jmp 0x2a323da2
Function at 0x2a32a69e
Capabilities:
Encode data using xor

Disassembly:
mov dword [ebp - 0xc], 0x35b17a54
mov edi, dword [edx]
xor edi, ebx
mov dword [ebp - 0x38], 0x1017c9b9
test eax, ecx
invalid
invalid
invalid
mov ecx, 0x891017c9
invalid
invalid
mov ch, 0xf4
invalid

Function at 0x401225
Capabilities:
Encode data using xor

Disassembly:
pushal
xor ecx, ecx
add ecx, 0x1000
mov dl, byte [ecx + edi - 1]
rol dl, 1
xor dl, 0x7e
mov byte [ecx + edi - 1], dl
dec ecx
cmp ecx, 0
jne 0x40122e
popal
ret
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x409380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40938f
pop dword [ebp - 0x40]
mov eax, 0x76439c53
add eax, 0x89fcf73c
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xb7411bbd
sub dword [ebp - 0x50], 0x68eed672
mov dword [ebp - 0x4c], 0x33cacfc
sub dword [ebp - 0x4c], 0xd10960b7
mov dword [ebp - 0x48], 0x13dfab9f
sub dword [ebp - 0x48], 0xc7936771
mov dword [ebp - 0x44], 0x81750f19
add dword [ebp - 0x44], 0x7e8af0e7
lea eax, [ebp - 0x50]
push eax
mov eax, 0xd9332331
add eax, 0x270e9d1f
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x8e8104b7
add dword [ebp - 0x50], 0xe5f1649f
mov dword [ebp - 0x4c], 0xbad7b8f2
sub dword [ebp - 0x4c], 0x796b577d
mov dword [ebp - 0x48], 0xe22935d7
sub dword [ebp - 0x48], 0x7eb9c96b
mov dword [ebp - 0x44], 0x3bb17116
sub dword [ebp - 0x44], 0x3bb17116
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x37b27c2b
add eax, 0xc88f4421
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x39c82
push 0
call eax
mov ecx, 0x9a35f4b3
sub ecx, 0x9a35b3bc
mov edx, eax
mov ebx, 0x16b12880
add ebx, 0xe9920180
add ebx, dword [ebp - 0x40]
mov edi, 0xb6f4c2c5
add edi, 0x2cf223ef
sub dword [ebp - 0x10], 0xab408584
mov esi, dword [ebx]
xor dword [ebp - 0x20], esi
sub esi, edi
mov dword [edx], esi
add dword [ebp - 0x14], 0xad1562dd
add edx, 0xd541ddfd
add edx, 0x2abe2207
add ebx, 4
loop 0x4094b1
add eax, 0x7c7fba77
sub eax, 0x7c7ec3c8
xor ebx, ebx
add ebx, eax
add eax, 0x88eb8abe
sub eax, 0x88eb8ab9
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x4098e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x4098f2
repz ret
jmp fcn.004114ed
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x414f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
jmp 0x414f3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414f41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414f30
mov eax, 1
add ebx, ebx
jne 0x414f53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414f48
jne 0x414f64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414f48
xor ecx, ecx
sub eax, 3
jb 0x414f78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414fea
mov ebp, eax
add ebx, ebx
jne 0x414f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414f90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414fb4
inc ecx
add ebx, ebx
jne 0x414fa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414f95
jne 0x414fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414f95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414fd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414fc5
jmp 0x414f36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414fd4
add edi, ecx
jmp 0x414f36
pop esi
mov edi, esi
mov ecx, 0xf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414ff2
cmp byte [edi], 0
jne 0x414ff2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x414ff7
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x415066
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18bf8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18c34]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x415024
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18c38]
or eax, eax
je 0x415060
mov dword [ebx], eax
add ebx, 4
jmp 0x415041
call dword [esi + 0x18c48]
mov ebp, dword [esi + 0x18c3c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41509a
sub esp, 0xffffff80
jmp 0x4012ad
Function at 0x4012d4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push 0xc0
mov edi, eax
push 0
push edi
mov esi, ecx
call fcn.00404740
add esp, 0xc
test byte [esi], 1
je 0x401381
lea edx, [esi + 0x18]
lea ebx, [esi + 0x14]
mov ecx, edx
mov dword [ebp - 4], ebx
sub dword [ebp - 4], ecx
mov dword [ebp - 8], edx
sub dword [ebp - 8], ecx
lea eax, [edi + 0x48]
mov dword [ebp - 0xc], 4
mov ebx, dword [ebp - 4]
movzx bx, byte [ebx + ecx]
mov word [eax - 8], bx
movzx bx, byte [ecx]
mov word [eax], bx
mov ebx, dword [ebp - 8]
movzx bx, byte [ebx + ecx]
mov word [eax + 8], bx
inc eax
inc eax
inc ecx
dec dword [ebp - 0xc]
jne 0x401318
cmp dword [esi + 0x14], 0x756e6547
jne 0x401360
cmp dword [edx], 0x6c65746e
jne 0x401360
cmp dword [esi + 0x1c], 0x49656e69
jne 0x401360
mov dword [edi + 4], 1
cmp dword [esi + 0x14], 0x68747541
jne 0x401381
cmp dword [edx], 0x444d4163
jne 0x401381
cmp dword [esi + 0x1c], 0x69746e65
jne 0x401381
mov dword [edi + 4], 2
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40139c
or dword [edi], 2
mov dword [edi + 8], eax
cmp dword [edi + 4], 1
jne 0x4013a7
call fcn.004011b7
mov eax, dword [esi + 4]
and eax, 0x1c
cmp al, 0x1c
jne 0x4013ca
xor eax, eax
add edi, 0x60
movzx cx, byte [eax + esi + 0x230]
mov word [edi], cx
inc eax
inc edi
inc edi
cmp eax, 0x2f
jl 0x4013b6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402422
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x4c], 0
push esi
push edi
push 0x20
lea eax, [ebp - 0x48]
push eax
push dword [ebx + 0x14]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x80], 0x10
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x80]
push eax
push 2
lea edi, [ebx + 0x1c]
push edi
push dword [ebx + 0x18]
mov dword [ebp - 0x7c], 1
call dword [sym.imp.UxTheme.dll_BeginBufferedPaint]
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 0x70], eax
je 0x402591
mov eax, dword [ebx + 0x10]
xor edx, edx
push 4
inc edx
pop ecx
test cl, al
mov dword [ebp - 0x50], edx
je 0x40249e
mov dword [ebp - 0x50], ecx
jmp 0x4024bd
test al, 0x10
jne 0x4024ab
test byte [esi + 0xcc], 0x40
je 0x4024b2
mov dword [ebp - 0x50], 2
test al, 1
je 0x4024bd
mov dword [ebp - 0x50], 3
xor eax, eax
cmp dword [ebx + 8], 0x67
push 0
push edi
push dword [ebp - 0x50]
sete al
push edx
push dword [ebp - 0x4c]
mov eax, dword [esi + eax*4 + 0xd4]
push eax
mov dword [ebp - 0x58], eax
call dword [sym.imp.UxTheme.dll_DrawThemeBackground]
push dword [esi + 0xb4]
mov dword [ebp - 0xc0], 0x40
push dword [ebp - 0x4c]
mov dword [ebp - 0xbc], 0x2000
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, edi
lea edi, [ebp - 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 3
mov dword [ebp - 0x6c], eax
pop eax
add dword [ebp - 0x64], eax
sub dword [ebp - 0x5c], eax
add dword [ebp - 0x68], eax
sub dword [ebp - 0x60], eax
test byte [ebx + 0x10], 0x10
je 0x402532
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov esi, dword [sym.imp.UxTheme.dll_DrawThemeTextEx]
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x25
push dword [ebp - 0x54]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
push 1
push dword [ebp - 0x4c]
push dword [ebp - 0x58]
call esi
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x25
push dword [ebp - 0x54]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
push 1
push dword [ebp - 0x4c]
push dword [ebp - 0x58]
call esi
push dword [ebp - 0x6c]
push dword [ebp - 0x4c]
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push dword [ebp - 0x70]
call dword [sym.imp.UxTheme.dll_EndBufferedPaint]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040472c
leave
ret
Function at 0x402e51
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
lea ebp, [esp - 0x7ec]
sub esp, 0x86c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x7e8], eax
mov eax, dword [ebx + 0x28]
push esi
push edi
xor edi, edi
push edi
push edi
push 0xb
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebx + 0xa8], edi
mov esi, 0xffff0000
je 0x402ebe
push esi
push edi
push 0x1101
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebx + 0xa8]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0xffffffffffffffff
push dword [ebx + 0xac]
call dword [sym.imp.COMCTL32.dll_ImageList_Remove]
mov dword [ebx + 0xa8], edi
push edi
push 0x400
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [ebp - 0x80], eax
mov dword [ebx + 0xa8], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
xor eax, eax
lea edi, [ebp - 0x78]
stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
push 0x40163d
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x60]
push esi
lea esi, [ebp - 0x5c]
call fcn.00401b4b
mov eax, dword [ebp - 0x6c]
and dword [ebp - 0x64], 0
test eax, eax
mov dword [ebp - 0x74], eax
jle 0x402f53
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x70]
call fcn.00401789
mov edi, dword [eax]
lea esi, [ebp - 0x5c]
call fcn.00401ba0
mov esi, eax
test esi, esi
je 0x402f48
push esi
push ebx
mov ecx, edi
call fcn.00402f95
push esi
push 2
push 0x1102
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
inc dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x74]
jl 0x402f13
xor esi, esi
push esi
push 1
push 0xb
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push dword [ebx + 0x88]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x70], esi
pop edi
pop esi
je 0x402f80
push dword [ebp - 0x70]
call fcn.00404367
pop ecx
mov ecx, dword [ebp + 0x7e8]
xor ecx, ebp
call fcn.0040472c
add ebp, 0x7ec
leave
ret
Function at 0x40301c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop ebx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push 0x113e
push dword [eax + 0x28]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_SendMessageW]
push reloc.KERNEL32.dll_ExitProcess
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov edi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call edi
mov ecx, dword [ebp - 0x20]
cmp ecx, esi
mov dword [ebp - 0xc], eax
je 0x4030df
mov eax, dword [ecx]
push ebx
mov dword [ebp - 8], ecx
call dword [eax + 4]
test eax, eax
je 0x4030df
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
push 3
call dword [eax]
test eax, eax
jne 0x4030df
push dword [ebp - 0x14]
push esi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
cmp ebx, esi
je 0x4030df
push esi
push esi
push 0x12
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4030c1
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push esi
push 0x8004
push 0x111
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp - 0xc]
call edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40348e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
push 0xa
push 0x81
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x403566
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x403565
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403565
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x403565
push ebx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x403564
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x403513
push esi
push edi
push eax
call fcn.004047c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x40355d
mov edi, dword [ebp - 8]
push 0x10
call sub.gdiplus.dll_GdipAlloc
and dword [ebp - 4], 0
mov esi, eax
test esi, esi
je 0x403554
lea eax, [ebp - 4]
push eax
push edi
mov dword [esi], 0x406dd8
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x40356c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [edi + 0xdc]
mov dword [ebp - 0x90], eax
call fcn.0040106b
lea ebx, [edi + 0x4ec]
mov eax, ebx
mov ecx, esi
call fcn.004012d4
lea esi, [edi + 0x5b0]
mov edx, esi
mov ecx, ebx
call fcn.0040328e
lea eax, [ebp - 0xd4]
push eax
mov dword [ebp - 0xd4], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x403603
push 1
push dword [ebp - 0xc8]
lea eax, [ebp - 0x8c]
push dword [ebp - 0xcc]
push eax
call fcn.00403163
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0x10
push str.__Physical_memory:
push esi
call ebx
lea eax, [ebp - 0x8c]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp - 0x90]
mov dword [edi + 0x5ac], eax
call fcn.0040348e
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
je 0x4036e7
push 0xffffff
lea eax, [ebp - 0x94]
push eax
push dword [esi + 4]
mov dword [ebp - 0x94], ebx
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp eax, ebx
je 0x403649
mov dword [esi + 8], eax
cmp dword [ebp - 0x94], ebx
je 0x4036df
lea eax, [ebp - 0x90]
push eax
push dword [esi + 4]
mov dword [ebp - 0x90], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x403671
mov dword [esi + 8], eax
mov ax, word [ebp - 0x90]
mov word [edi + 0xc6], ax
lea eax, [ebp - 0x90]
push eax
push dword [esi + 4]
mov dword [ebp - 0x90], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40369b
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x90]
push ebx
mov word [edi + 0xc8], ax
push 1
movsx eax, ax
push 0x21
push eax
movsx eax, word [edi + 0xc6]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
push dword [ebp - 0x94]
mov dword [edi + 0xb8], eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Add]
push dword [ebp - 0x94]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040472c
leave
ret 4

Function at 0x404014
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00403fa9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00404740
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x404063
cmp dword [ebp - 0x1c], 5
jb 0x40407b
jmp 0x404077
cmp dword [ebp - 0x10], 1
jne 0x40407b
cmp dword [ebp - 0x1c], 4
ja 0x404077
jne 0x40407b
cmp dword [ebp - 0x18], 0
jbe 0x40407b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4062fc
call fcn.00403e9a
test eax, eax
jge 0x40409c
mov byte [0x40951c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040472c
add ebp, 0x78
leave
ret
Function at 0x40424e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4090c0], 0
push esi
jne 0x4041c1
call fcn.004040ec
test eax, eax
je 0x404204
mov eax, dword [0x4090c0]
cmp eax, 1
jne 0x4041e2
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x404204
pop esi
ret
push eax
call dword [0x4090c8]
test eax, eax
jne 0x40424c
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 0x404208
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4090c0]
call dword [0x4090c8]
mov edi, eax
test edi, edi
je 0x40422f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40424b
lea edi, [esi + 0xff0]
push esi
push dword [0x4090c0]
call dword [0x4090c4]
add esi, 0x10
cmp esi, edi
jb 0x404235
mov eax, esi
pop edi
pop esi
ret
jmp 0x4041ae

Function at 0x40472c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x404736
repz ret
jmp fcn.00405129