joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4601f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0x10], 0xf
je 0x46020c
mov eax, 1
jmp 0x46031b
cmp dword [ebp + 0x10], 0
je 0x460319
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx]
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [ebp - 0xc], edx
add dword [ebp + 0xc], 4
sub dword [ebp + 0x10], 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
sub edi, dword [ecx + 0xb4]
sub ebx, dword [eax + 0xb0]
mov dword [ebp - 0x10], 0x14
mov edx, dword [ebp + 8]
lea ecx, [edx + 0xac]
mov dword [ebp - 0x14], ecx
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edi
mov edi, esi
mov esi, eax
push 5
mov eax, dword [ebp - 0xc]
add eax, eax
inc eax
imul dword [ebp - 0xc]
push eax
call fcn.00460322
mov edx, esi
add esp, 8
add edx, edx
mov dword [ebp - 8], eax
inc edx
push 5
imul edx, esi
push edx
call fcn.00460322
add esp, 8
mov dword [ebp - 4], eax
push dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
sub edi, dword [ecx]
push edi
call fcn.00460345
add esp, 8
xor eax, dword [ebp - 8]
mov edi, eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x14]
sub ebx, dword [eax - 4]
push ebx
call fcn.00460345
xor eax, dword [ebp - 4]
dec dword [ebp - 0x10]
add dword [ebp - 0x14], 0xfffffff8
add esp, 8
mov ebx, eax
cmp dword [ebp - 0x10], 0
jg 0x460266
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
sub dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
sub esi, dword [eax + 8]
mov dword [edx], ebx
add dword [ebp + 0x14], 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
add dword [ebp + 0x14], 4
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
add dword [ebp + 0x14], 4
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [edx], ecx
add dword [ebp + 0x14], 4
cmp dword [ebp + 0x10], 0
jne 0x460216
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462cc1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov eax, 4
shl eax, 2
add eax, 0x46b408
push 4
push eax
lea edx, [esp + 8]
push edx
call fcn.00461a4f
add esp, 0xc
mov eax, 3
shl eax, 2
add eax, 0x46b408
mov ebx, dword [esp]
push 4
push eax
lea edx, [esp + 8]
push edx
call fcn.00461a4f
add esp, 0xc
mov esi, dword [esp]
lea eax, [esp + 4]
mov dword [esp + 4], 0x475f4352
mov dword [esp + 8], 0x646e6172
mov dword [esp + 0xc], 0x6e65704f
mov dword [esp + 0x10], 0x676f44
push eax
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
jne 0x462d3b
xor eax, eax
jmp 0x462d42
push 0xffffffffffffffff
push ebx
call esi
mov eax, ebx
add esp, 0x14
pop esi
pop ebx
ret

Function at 0x4631c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [0x46b3c4]
and eax, 3
sub eax, 1
jb 0x4631e6
je 0x46320b
dec eax
je 0x463230
dec eax
je 0x463255
jmp 0x463278
mov edx, dword [0x46b3c8]
mov dword [ebp - 4], edx
lea ecx, [ebx + 2]
push ecx
lea eax, [ebp - 4]
push eax
call fcn.00461de5
add esp, 8
add dword [0x46b3c8], 0x3f2
jmp 0x463278
mov edx, dword [0x46b3cc]
mov dword [ebp - 4], edx
lea ecx, [ebx + 2]
push ecx
lea eax, [ebp - 4]
push eax
call fcn.00461de5
add esp, 8
add dword [0x46b3cc], 0x3f2
jmp 0x463278
mov edx, dword [0x46b3d0]
mov dword [ebp - 4], edx
lea ecx, [ebx + 2]
push ecx
lea eax, [ebp - 4]
push eax
call fcn.00461de5
add esp, 8
add dword [0x46b3d0], 0x3f2
jmp 0x463278
mov edx, dword [0x46b3d4]
mov dword [ebp - 4], edx
lea ecx, [ebx + 2]
push ecx
lea eax, [ebp - 4]
push eax
call fcn.00461de5
add esp, 8
add dword [0x46b3d4], 0x3f2
add dword [0x46b3c4], 0x3eb
mov dx, word [ebx + 2]
xor word [ebx], dx
xor eax, eax
lea edx, [ebx + 0x12]
mov ecx, eax
inc eax
and ecx, 3
shl ecx, 2
mov ecx, dword [ebx + ecx + 2]
xor dword [edx], ecx
add edx, 4
cmp eax, 0xa
jb 0x46328e
mov al, byte [ebx + 0x10]
xor byte [ebx + 0x3a], al
mov dl, byte [ebx + 0x11]
xor byte [ebx + 0x3b], dl
push ebx
call fcn.00461eaa
pop ecx
pop ebx
pop ecx
pop ebp
ret

Function at 0x4632bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00462500
mov ax, word [ebx + 2]
pop ecx
xor word [ebx], ax
xor eax, eax
lea edx, [ebx + 0x12]
mov ecx, eax
inc eax
and ecx, 3
shl ecx, 2
mov ecx, dword [ebx + ecx + 2]
xor dword [edx], ecx
add edx, 4
cmp eax, 0xa
jb 0x4632d6
mov al, byte [ebx + 0x10]
xor byte [ebx + 0x3a], al
mov dl, byte [ebx + 0x11]
xor byte [ebx + 0x3b], dl
pop ebx
pop ebp
ret
Function at 0x46344c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
mov ebx, 0xc
push 4
shl ebx, 2
add ebx, 0x46b408
push ebx
lea eax, [ebp - 0xc]
push eax
call fcn.00461a4f
add esp, 0xc
mov ebx, 6
shl ebx, 2
mov esi, dword [ebp - 0xc]
add ebx, 0x46b408
push 4
push ebx
lea eax, [ebp - 0xc]
push eax
call fcn.00461a4f
add esp, 0xc
mov ebx, 0xd
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0xc]
shl ebx, 2
mov dword [ebp - 4], edx
add ebx, 0x46b408
push 4
push ebx
push eax
call fcn.00461a4f
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
lea ecx, [ebp - 0x20]
push 0x14
push 0
push ecx
call fcn.004619f7
add esp, 0xc
cmp dword [ebp + 8], 1
jne 0x463501
push 0x10
push 0x46b3e8
lea eax, [ebp - 0x20]
push eax
call fcn.00461a4f
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x20]
xor dword [edx], 0x3dd17ea6
inc eax
add edx, 4
cmp eax, 4
jb 0x4634ec
mov byte [ebp - 0x10], 0x6c
jmp 0x463530
push 0x10
push 0x46b3f8
lea ecx, [ebp - 0x20]
push ecx
call fcn.00461a4f
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x20]
xor dword [edx], 0x3dd17ea6
inc eax
add edx, 4
cmp eax, 4
jb 0x463519
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x6c
lea ecx, [ebp - 0x20]
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x463546
mov eax, 0xa8160005
jmp 0x4635e0
push 0x46b5f9
push edi
call dword [ebp - 8]
mov ebx, 1
lea esi, [ebp - 0x98]
push ebx
push edi
call dword [ebp - 8]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x463571
push edi
call dword [ebp - 4]
mov eax, 0xa8160005
jmp 0x4635e0
inc ebx
add esi, 4
cmp ebx, 0x1f
jb 0x46355a
mov ebx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x40]
cmp dword [ebp + 8], 1
jne 0x463596
mov dword [0x46b3bc], eax
jmp 0x46359b
mov dword [0x46b3c0], eax
push ebx
call fcn.004632fc
pop ecx
test eax, eax
je 0x4635ad
mov eax, 0xa8160006
jmp 0x4635e0
push edi
push esi
call fcn.004633ba
add esp, 8
test eax, eax
je 0x4635c2
mov eax, 0xa8160007
jmp 0x4635e0
cmp dword [ebp + 8], 1
jne 0x4635d4
mov dword [0x46b3b4], 2
jmp 0x4635de
mov dword [0x46b3b8], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d7a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x91000]
push edi
jmp 0x4d7a3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d7a41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d7a30
mov eax, 1
add ebx, ebx
jne 0x4d7a53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d7a64
jne 0x4d7a83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d7a83
dec eax
add ebx, ebx
jne 0x4d7a70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d7a48
add ebx, ebx
jne 0x4d7a7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d7ad5
xor ecx, ecx
sub eax, 3
jb 0x4d7a9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d7b0a
sar eax, 1
mov ebp, eax
jmp 0x4d7aa6
add ebx, ebx
jne 0x4d7aa6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d7a74
inc ecx
add ebx, ebx
jne 0x4d7ab4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d7a74
add ebx, ebx
jne 0x4d7ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d7ab6
jne 0x4d7ad2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d7ab6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d7af4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d7ae6
jmp 0x4d7a36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d7af4
add edi, ecx
jmp 0x4d7a36
pop esi
mov edi, esi
mov ecx, 0x2f2e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d7b12
cmp byte [edi], 0x13
jne 0x4d7b12
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 0x4d7b17
lea edi, [esi + 0xd4000]
mov eax, dword [edi]
or eax, eax
je 0x4d7b8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd8c28]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd8d40]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d7b44
mov ecx, edi
jns 0x4d7b73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd8d44]
or eax, eax
je 0x4d7b89
mov dword [ebx], eax
add ebx, 4
jmp 0x4d7b61
call dword [esi + 0xd8d54]
mov ebp, dword [esi + 0xd8d48]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x4d7bc3
sub esp, 0xffffff80
jmp 0x459920
Function at 0x10056d90
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x403ad0
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x403adf
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x403bc7
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41b828]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41b828]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x41b828]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41b828]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41b828]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41b828]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41b828]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41b828]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x403af0
pop ebp
test edi, edi
je 0x403bec
jmp 0x403bd0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x41b828]
add ecx, 1
sub edi, 1
jne 0x403bd0
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x411299
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x434928
cmp edx, dword [eax]
je 0x4112bb
add eax, 8
inc ecx
cmp eax, 0x4349b8
jl 0x4112ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x434928]
jne 0x4113e9
mov eax, dword [0x43723c]
cmp eax, 1
je 0x4113c3
test eax, eax
jne 0x4112ec
cmp dword [0x433fa0], 1
je 0x4113c3
cmp edx, 0xfc
je 0x4113e9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411323
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004113f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004114e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x411366
lea eax, [ebp - 0x1a4]
push eax
call fcn.004114e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42aecc
push edi
call fcn.00415520
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004113f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411400
lea eax, [ebp - 0xa0]
push 0x42aeac
push eax
call fcn.00411400
push dword [esi + 0x43492c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411400
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00415492
add esp, 0x2c
pop edi
jmp 0x4113e9
lea eax, [ebp + 8]
lea esi, [esi + 0x43492c]
push 0
push eax
push dword [esi]
call fcn.004114e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41a020
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.0040dbe0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41a0eb
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 0x41a0eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41a09e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41a0a9
or bh, 8
and edi, 0x8000000
je 0x41a0c4
mov eax, dword [0x4389fc]
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 0x41a0eb
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 0x41a4c0
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 0x41a4eb
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 0x41a50f
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 0x41a52a
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

Function at 0x41e2e3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41e31b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041d062
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041d03a
jmp 0x41e327
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41f833
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41f875
call fcn.004238cd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41f875
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41f86c
xor eax, eax
jmp 0x41f87d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041f883
pop edi
pop esi
pop ebx
ret 4

Function at 0x423fa2
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 0x423fd0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x423fee
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423f08
jmp 0x423fee
mov eax, dword [esi + 0x14]
test eax, eax
je 0x423fee
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00423f08
test edi, edi
mov eax, edi
jne 0x423fd8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4036c2
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00403872
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4037c0
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
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 0x403763
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4037a6
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40377a
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x403795
test al, 0x40
je 0x40378c
mov ecx, dword [edi + 0x20]
jmp 0x403793
test al, 0x80
je 0x4037a6
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4037a6
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x403732
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40cda0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x477ebb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046a912
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ce22
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00468390
mov eax, dword [eax]
push 0x667200
push eax
call fcn.0045ad44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046ab9d
test bl, bl
je 0x40ce22
push 0x667200
lea ecx, [esp + 0xc]
call fcn.0046af79
push 0x66ad7c
lea ecx, [esp + 0xc]
call fcn.0046af79
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40ce5e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046ab9d
jmp 0x40cf29
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40cee2
lea edx, [esp + 0x7c]
push 0x66ad78
push edx
call fcn.0045ad44
add esp, 8
test eax, eax
je 0x40cee2
lea eax, [esp + 0x7c]
push 0x66ad74
push eax
call fcn.0045ad44
add esp, 8
test eax, eax
je 0x40cee2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ce72
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046ab9d
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40e180
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40e1e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc