joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x49d41d
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x49d396
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x49d396
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x49d37d
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x49d37d
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.0049e4d0
mov ebp, eax
test ebp, ebp
je 0x49d375
push ebp
mov ecx, esi
call fcn.0049f990
test eax, eax
je 0x49d375
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x49d375
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x49d336
xor eax, eax
jmp 0x49d33e
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.004a0330
inc ebx
xor ebp, ebp
jmp 0x49d2c7
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x49d2a0
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.0049e7e0
test eax, eax
pop ebx
je 0x49d41d
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.0049e4d0
mov edi, eax
cmp edi, ebp
je 0x49d41d
push edi
mov ecx, esi
call fcn.0049f990
test eax, eax
je 0x49d41d
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.0049ea20
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.0049ea90
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.004a0330
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x4a5ff0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d70c1
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x4a602d
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.004ce1f2
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.004cd53a
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.0049ede0
lea ecx, [esp + 8]
call fcn.004ce461
lea ecx, [esp + 0x30]
call fcn.004cd69e
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.004cd53a
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.0049f250
lea ecx, [esp + 0x74]
call fcn.004cd69e
lea ecx, [esp + 8]
call fcn.004ce462
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.0049c9f0
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.0049ecf0
mov ecx, esi
call fcn.0049f8d0
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.0049ecf0
mov ecx, esi
call fcn.0049f8d0
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.0049ecf0
mov ecx, esi
call fcn.0049f8d0
mov ecx, dword [edi + 0x5c]
call fcn.0049c1c0
push eax
mov ecx, esi
call fcn.0049c1d0
mov ecx, dword [edi + 0x5c]
call fcn.0049c790
push eax
mov ecx, esi
call fcn.0049c730
mov ecx, dword [edi + 0x5c]
call fcn.0049c8b0
push eax
mov ecx, esi
call fcn.0049c860
mov ecx, dword [edi + 0x5c]
push 0
call fcn.0049baa0
push eax
mov ecx, esi
call fcn.0049bab0
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.004cd616
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.004cd616
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.004ce27b
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x4a7890
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d72e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.004c4336
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.004c4336
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004a83b0
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4a8400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d73c0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004d02e5
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4a8433
xor al, al
jmp 0x4a855f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4a8455
xor al, al
jmp 0x4a855f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4a8468
xor al, al
jmp 0x4a855f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4a847c
xor al, al
jmp 0x4a855f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004c43fb
test eax, eax
jne 0x4a84b0
xor al, al
jmp 0x4a855f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x621af4
mov dword [esp + 0x20], ebp
call fcn.004d02e5
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004cd1ef
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004cd246
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4a8544
mov ax, word [ebx]
test ax, ax
je 0x4a8536
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004a8580
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4a851a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004cd246
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4a8ac0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004ce89f
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4a8b06
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004b5188
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x63efa4
push ecx
call fcn.004b6d9c
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4a9e30
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x63f074]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4a9e43
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4a9e84
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x63f11c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4a9eb6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a9eba
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4a9eab
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4a9ed8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a9edc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4a9ecd
xor ecx, ecx
mov eax, 0x63f084
xor ebx, ebx
mov bl, byte [ecx + 0x63f12c]
cmp byte [esp + ebx + 0x14], 0
je 0x4a9f07
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x63f144]
cmp byte [esp + ebx + 0x14], 0
je 0x4a9f1e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4a9eee
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4a9e77
lea edx, [esp + 0x84]
push edx
call fcn.004a9f60
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4c87b5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c87ed
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.004c680d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c67e5
jmp 0x4c87f9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c9faf
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 0x4c9ff1
call fcn.004d02e5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c9ff1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c9fe8
xor eax, eax
jmp 0x4c9ff9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c9fff
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d07f9
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 0x4d0827
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d0845
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d075f
jmp 0x4d0845
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d0845
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d075f
test edi, edi
mov eax, edi
jne 0x4d082f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x405c62
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x405c71
pop dword [ebp - 0x30]
mov eax, 0x6c921934
sub eax, 0x6c51bcc3
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x5a23f02e
add dword [ebp - 0x40], 0xf42e551d
mov dword [ebp - 0x3c], 0xbc7b1ce7
sub dword [ebp - 0x3c], 0x8a47d0a2
mov dword [ebp - 0x38], 0x6cfa861c
sub dword [ebp - 0x38], 0x20ae41ee
mov dword [ebp - 0x34], 0xc0827ddf
add dword [ebp - 0x34], 0x3f7d8221
lea eax, [ebp - 0x40]
push eax
mov eax, 0x1815dfd9
sub eax, 0x17d50f8d
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xe2659051
sub dword [ebp - 0x40], 0x6df326fb
mov dword [ebp - 0x3c], 0x75ba3c56
sub dword [ebp - 0x3c], 0x344ddae1
mov dword [ebp - 0x38], 0xce1cf207
add dword [ebp - 0x38], 0x95527a65
mov dword [ebp - 0x34], 0xd56a852
sub dword [ebp - 0x34], 0xd56a852
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x84e4cd11
sub eax, 0x84a3fcc9
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3ecfe
push 0
call eax
mov ecx, 0xd5d05bc3
sub ecx, 0xd5cfff65
mov edx, eax
mov esi, 0xd5e6bff2
add esi, 0x2a5af00e
add esi, dword [ebp - 0x30]
mov ebx, 0xdc2cb594
xor dword [ebp - 0x1c], ebx
mov edi, dword [esi]
sub dword [ebp - 0xc], edi
sub edi, ebx
sub dword [ebp - 0x2c], edx
mov dword [edx], edi
sub dword [ebp - 4], ecx
add edx, 4
add esi, 0x46e7fadd
sub esi, 0x46e7fad9
loop 0x405d8d
add eax, 0x1644b
mov ebx, eax
add eax, 0xd8535e55
add eax, 0x27aca1b0
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4013d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [0x408530]
push ebx
push ebp
push esi
push edi
push 2
push str.AUTORUN
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401514
mov ecx, dword [0x408530]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x408530]
push edi
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push edi
push 0x40
call ebp
mov ebx, eax
test ebx, ebx
je 0x40150c
mov ecx, edi
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cx, word [ebx + 0xe]
cmp cx, 8
ja 0x401455
mov edi, 1
shl edi, cl
jmp 0x401457
xor edi, edi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test edi, edi
mov dword [esp + 0x10], esi
je 0x4014da
lea edx, [edi*4 + 4]
push edx
push 0x40
call ebp
mov ebp, eax
test ebp, ebp
je 0x4014da
test edi, edi
mov word [ebp], 0x300
mov word [ebp + 2], di
jle 0x4014b2
lea esi, [ebp + 5]
lea eax, [ebx + 0x29]
mov ecx, edi
mov dl, byte [eax + 1]
add eax, 4
mov byte [esi - 1], dl
mov dl, byte [eax - 4]
mov byte [esi], dl
mov dl, byte [eax - 5]
mov byte [esi + 1], dl
add esi, 4
dec ecx
jne 0x401494
mov esi, dword [esp + 0x10]
push ebp
call dword [sym.imp.GDI32.dll_CreatePalette]
test eax, eax
mov dword [0x408534], eax
je 0x4014d3
push 0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebx]
push 0
push ebx
lea eax, [eax + edi*4]
add eax, ebx
push eax
push 4
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ecx, dword [esp + 0x18]
push esi
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4017e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x158
mov edx, dword [esp + 0x15c]
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [esp + 0x18], 0x44
xor ecx, ecx
mov eax, 0x406034
cmp edx, dword [eax - 4]
jne 0x401817
cmp dword [eax], 0
jne 0x40182d
add eax, 8
inc ecx
cmp eax, 0x40605c
jl 0x40180d
mov eax, esi
pop edi
pop esi
add esp, 0x158
ret
mov edi, dword [ecx*8 + 0x406034]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x5c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push edx
push 0
push 0
push 0x200
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
add esp, 0x158
ret
Function at 0x404c31
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00404de1
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 0x404d2f
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 0x404cd2
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x404d15
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x404ce9
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x404d04
test al, 0x40
je 0x404cfb
mov ecx, dword [edi + 0x20]
jmp 0x404d02
test al, 0x80
je 0x404d15
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x404d15
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 0x404ca1
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x415ef0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x474b5b
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.00469813
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x415f72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004675ca
mov eax, dword [eax]
push 0x577230
push eax
call fcn.0045a294
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00469a9e
test bl, bl
je 0x415f72
push 0x577230
lea ecx, [esp + 0xc]
call fcn.00469e2e
push 0x57ad88
lea ecx, [esp + 0xc]
call fcn.00469e2e
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 0x415fae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00469a9e
jmp 0x416079
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 0x416032
lea edx, [esp + 0x7c]
push 0x57ad84
push edx
call fcn.0045a294
add esp, 8
test eax, eax
je 0x416032
lea eax, [esp + 0x7c]
push 0x57ad80
push eax
call fcn.0045a294
add esp, 8
test eax, eax
je 0x416032
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 0x415fc2
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.00469a9e
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 0x416870
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 0x4168d2
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