joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469f50
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7f4644]
sub esp, 0x5cc
push ebx
push ebp
push esi
mov esi, dword [0x475694]
shr eax, 3
push edi
test eax, eax
je 0x46a123
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
jmp 0x469f84
mov esi, dword [esp + 0x14]
cmp dword [0x7f4644], 0x1c
jne 0x469fa1
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edx, dword [0x46edc0]
mov eax, dword [0x46edc4]
mov ecx, dword [0x46edc8]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x46edcc]
mov ebp, 0xc6ef3720
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], 0x20
mov eax, ebx
shl eax, 4
add eax, dword [esp + 0x28]
mov esi, ebx
shr esi, 5
cmp dword [0x7f4644], 0x1b
mov dword [esp + 0x10], eax
jne 0x46a01d
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1dc]
push ecx
push 0
push 0x402b08
push 0x402b74
push 0x402ba8
call dword [sym.imp.KERNEL32.dll_SearchPathA]
mov eax, dword [esp + 0x10]
add esi, dword [esp + 0x30]
lea ecx, [ebx + ebp]
xor esi, ecx
xor esi, eax
sub edi, esi
mov eax, edi
shl eax, 4
mov dword [0x7f45b4], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
cmp dword [0x7f4644], 0x1be
jne 0x46a062
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x20]
cmp dword [0x7f4644], 0x979
mov dword [0x7f45b8], 0xff6b3619
mov dword [0x7f45bc], 0xffffffff
jne 0x46a0a2
mov edx, dword [esp + 0x2c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [edi + ebp]
xor esi, eax
mov eax, dword [esp + 0x10]
xor eax, esi
sub ebx, eax
add ebp, 0x61c88647
dec dword [esp + 0x18]
mov dword [esp + 0x10], eax
jne 0x469fda
cmp dword [0x7f4644], 0x8d4
jne 0x46a0da
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], edi
cmp dword [0x7f4644], 0x17
jne 0x46a112
push 0
push 0
push 0
push 0x402bf4
push 0x402c10
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x98]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x1c]
mov dword [esp + 0x14], esi
jne 0x469f80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5cc
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4014a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
sub esp, 0x18
push esi
push edi
test eax, eax
jne 0x4018a9
call fcn.00403530
mov esi, dword [esi + 3]
call 0x8bb21837
jb 0x4014f1
call 0x763f9e90
inc eax
xor dword [ecx + 0x7200e876], 0x2d
add al, 0x8b
push 0x8b080440
push dword [esi - 0x77]
inc eax
mov cl, 8
xchg bh, al
or esp, 0x75
jbe 0x401525
mov cl, 0x86
inc dword [esi + 0x688b7689]
int3
push dword [edx - 0x18]
sub dword [eax + 4], 0x5c
call 0x693f59fd
inc ebp
add al, 0x5c
add dword [eax], 3
jne 0x40157b
jb 0x401548
xchg byte [0x75b1cc2d], ch
or byte [ebx], al
call 0x907c642
mov dword [eax - 1], eax
mov dword [eax + 0x68], eax
call 0xb1435aa6
push 0x75ffc7c7
add eax, dword [ebp - 0x75]
mov dword [ebp], esi
push 0x3ccff40
mov cl, 0x75
sub eax, 0xc7c78b45
add dword [eax*2 - 0x383376bb], 0x45
add al, 0x76
xchg byte [0xc7004576], ch
inc eax
int3
add byte [esi + 0x45], dh
mov esi, dword [esi]
inc dword [ebp - 0x75]
mov eax, dword [ebp + 0x75]
pop esp
inc eax
xchg byte [ebp - 0x7d], al
mov cl, 0x40
inc ebp
xor dword [edx + 0x72], 0x68
pop esp
add al, 0x83
dec dword [ecx + 0x68868386]
add ecx, dword [ecx + 0x40407683]
invalid
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0xc], esi
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, eax
mov esi, dword [ebp + 0xc]
lodsb al, byte [esi]
inc ecx
test eax, eax
jne 0x4017e1
dec ecx
mov dword [ebp - 0x10], ecx
test ecx, ecx
jne 0x401cfb
daa
push 4
push 1
push eax
call 0x44627d
mov eax, dword [esi + 0x14]
push 3
push 1
push eax
call 0x44627d
mov ecx, dword [esi + 0x14]
push 2
push 1
push ecx
call 0x44627d
add esp, 0x24
mov eax, esi
pop esi
pop ebx
ret
mov edi, dword [0x4051b9]
push 0x10000
mov edx, dword [ebp + 8]
pop esi
mov eax, dword [0x40515b]
and edx, eax
mov eax, dword [edx]
cmp ax, di
je 0x4018ca
sub edx, esi
jmp 0x4018bf
mov dword [ebp - 8], edx
mov eax, edx
mov ecx, dword [eax + 0x3c]
add eax, 0x78
and ecx, 0xffff
add eax, ecx
mov eax, dword [eax]
mov esi, dword [ebp - 8]
push esi
add esi, eax
mov eax, dword [esi + 0x20]
pop edi
add edi, eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
jmp 0x4017d4
push dword [ebp - 0x14]
pop ecx
mov eax, dword [edi]
mov esi, dword [ebp - 8]
add esi, eax
xor eax, eax
push ecx
mov ecx, eax
push esi
add edi, 4
lodsb al, byte [esi]
add ecx, 1
test eax, eax
jne 0x401d0f
dec ecx
pop esi
cmp ecx, dword [ebp - 0x10]
je 0x401d24
inc dword [ebp - 4]
pop ecx
loop 0x401cff
push esi
push dword [ebp + 0xc]
call fcn.00403530
test eax, eax
jne 0x401d1e
je 0x403280
add dword [ebx + ecx - 0x73], esi
lea eax, [edi + edi*8 - 1]
invalid
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x24]
add eax, eax
add ecx, dword [ebp - 8]
add ecx, eax
movzx eax, word [ecx]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax]
add eax, ecx
test eax, eax
jne 0x401767
pop esi
and byte [eax + 0x68b105e], cl
cmp eax, ebx
je 0x4032bd
push eax
call 0x469d29
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
pop esi
pop ebx
ret
Function at 0x40330a
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404688
push 0x403c84
push eax
mov eax, dword [0x405414]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x405410]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.00401820
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x40540c]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4040d8
push 0x4040d4
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x4033a5
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x40339d
cmp al, 0x22
jne 0x403392
cmp byte [esi], 0x22
jne 0x4033af
inc esi
jmp 0x4033af
cmp al, 0x20
jbe 0x4033af
inc esi
cmp byte [esi], 0x20
ja 0x4033a9
cmp byte [esi], 0
je 0x4033bf
cmp byte [esi], 0x20
ja 0x4033bf
inc esi
cmp byte [esi], 0
jne 0x4033b4
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x4033df
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x40341b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, dword [ebx + 0x56]
mov esi, dword [ebp + 0xc]
xor esp, dword [ecx]
je 0x405851
add eax, 0xfe8b572b
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x19]
idiv dword [edx]
dec ecx
mov eax, ebp
inc edi
push edi
push eax
call fcn.00404a60
mov ebp, dword [ecx - 0x2e630775]
shr ecx, 0xb3
adc dword [ebx + 0x3e14050], ecx
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, 0x89f5d
nop
nop
nop

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebx, edi
sub esp, 0x2b2
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or byte [esi + 0x57], dl
mov eax, dword [ebx + 4]
jl 0x40684c
jb 0x406865
test byte [ecx + eax + 0x4bc5ae6e], dl
adc byte [ebp - 0x3a7bc937], al
add dword [0xc768bc4], edx
mov ecx, dword [esi + 0x14]
lea edx, [esi + 0x28]
push ecx
push edx
les ecx, [ebx + 0x4e8b0c76]
adc al, 0x8d
push esi
sub byte [ecx + 0x52], dl
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
ud1
aaa
add dword [eax], eax
add byte [ebx + 0x4024d835], cl
mov ecx, 0xc085d6ff
je 0x40698a
aad 0xec
add eax, 0xafc80
cmp eax, 0xbfc88
cmovb edx, dword [ecx + 1]
add byte [eax], al
sub bh, byte [ebx + 0x4c]
mov esi, dword [ebx + 0x24]
mov eax, edi
or eax, esi
jne 0x4068bd
pop edi
pop esi
mov eax, 0xb23b4
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
mov ecx, 0x1c0000ed
test esi, esi
mov dword [ebp - 0xdb760c], eax
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0xec0108], eax
mov dword [ebp - 0x175], ecx
jg 0x4068eb
jl 0x4068e7
test edi, edi
jae 0x4068eb
xor eax, eax
jmp 0x406910
push 0xffffffffffffffdb
or al, byte [eax + 0x42]
pand mm2, qword [esi + 0x57]
call fcn.0040b590
push 0xffffffffffffffb1
push 0x814240
push esi
movsb byte es:[edi], byte [esi]
mov dword [edi + esi*2 + 0x4e46e8], esi
arpl word [ecx + 0x458dfc45], cx
clc
lea ecx, [ebp - 0x10c]
lea edx, gs:[ebp - 0x210]
invalid
pop edi
pop esi
xor eax, eax
pop ebx
jmp 0x849c6e7
Function at 0x401b66
Capabilities:
Terminate process

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

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

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x406802
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x406811
pop dword [ebp - 0x4c]
mov eax, 0x406811
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xd11b4f6b
add dword [ebp - 0x5c], 0x7d36f5e0
mov dword [ebp - 0x58], 0x1af42dc1
sub dword [ebp - 0x58], 0xe8c0e17c
mov dword [ebp - 0x54], 0x9c76080
sub dword [ebp - 0x54], 0xbd7b1c52
mov dword [ebp - 0x50], 0x436e00bd
sub dword [ebp - 0x50], 0x436e00bd
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xb2dc9da2
add eax, 0x4d64435a
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xf38acbeb
add dword [ebp - 0x5c], 0x80e79d6b
mov dword [ebp - 0x58], 0xbddbd3d0
add dword [ebp - 0x58], 0x83908da5
mov dword [ebp - 0x54], 0x89fa1b46
sub dword [ebp - 0x54], 0x268aaeda
mov dword [ebp - 0x50], 0x926879ef
sub dword [ebp - 0x50], 0x926879ef
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x3a434472
add eax, 0xc5fd9c16
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x375da
push 0
call eax
mov ecx, 0x6890acc6
add ecx, 0x976f99e1
mov edx, eax
mov ebx, 0xe5ea519e
sub ebx, 0xe5a8619e
add ebx, dword [ebp - 0x4c]
mov esi, 0xf2081549
add esi, 0x63468870
xor dword [ebp - 0x34], 0xcb83d852
mov edi, dword [ebx]
add dword [ebp - 0x3c], 0x8abe1ed3
xor edi, esi
sub dword [ebp - 0x24], ecx
mov dword [edx], edi
add dword [ebp - 0x30], 0x2069a70e
add edx, 0xed74a867
sub edx, 0xed74a863
add ebx, 0xa05f9ed4
add ebx, 0x5fa06130
loop 0x40692e
add eax, 0xf8e16aaa
sub eax, 0xf8e05d3b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x406b16
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x40d6f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41a174]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x110]
lea eax, [ebp]
mov edi, dword [ebp + 0x114]
mov ebx, 0x104
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x406bb4
cmp eax, ebx
jae 0x406bb4
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004060ea
pop ecx
pop ecx
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
jmp 0x406ba7
push esi
lea ecx, [edi + 0x18]
call fcn.00403db8
add esi, 0x18
cmp esi, dword [ebp - 0x14]
jne 0x406b9b
lea ecx, [ebp - 0x18]
call fcn.0040422a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0040baa8
add ebp, 0x108
leave
ret
Function at 0x401215
Capabilities:
Hide graphical window

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

Function at 0x4021b2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov cl, byte [0x404050]
mov edx, eax
mov ebx, eax
shl edx, cl
mov eax, 0x404054
add edx, dword [0x404050]
call fcn.004020f3
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x4039aa
push eax
sub edi, fcn.00403144
push edi
push fcn.00403144
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x402229
mov eax, fcn.00403144
mov ebx, esi
mov edx, edi
call fcn.004020f3
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.00402d42
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 0
call fcn.0040151f
lea eax, [esi + 0x1c000]
lea edi, [esi + 1]
imul edi, eax
mov ebx, 0x404054
or bl, 1
xor edx, edx
mov eax, esi
div ebx
lea ebx, [ebp - 2]
add eax, 0x404054
mov edx, edi
call fcn.00403144
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x409220
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x40923a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409241
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409230
mov eax, 1
add ebx, ebx
jne 0x409253
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409248
jne 0x409264
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409248
xor ecx, ecx
sub eax, 3
jb 0x409278
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4092ea
mov ebp, eax
add ebx, ebx
jne 0x409283
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409290
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4092b4
inc ecx
add ebx, ebx
jne 0x4092a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x409295
jne 0x4092b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409295
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4092d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4092c5
jmp 0x409236
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4092d4
add edi, ecx
jmp 0x409236
pop esi
mov edi, esi
mov ecx, 0x14
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4092f2
cmp byte [edi], 0
jne 0x4092f2
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 0x4092f7
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x409366
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb7f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb834]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409324
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb83c]
or eax, eax
je 0x409360
mov dword [ebx], eax
add ebx, 4
jmp 0x409341
call dword [esi + 0xb838]
mov ebp, dword [esi + 0xb840]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40939a
sub esp, 0xffffff80
jmp 0x40103e
Function at 0x405ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405f30
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405f30
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405f22
nop word [eax + eax]
cmp esi, edx
jae 0x405f30
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405f10
cmp esi, edx
jae 0x405f30
cmp word [esi], 0
je 0x405f30
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x40b220
Capabilities:
Accept command line arguments
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58efeb
mov eax, dword fs:[0]
push eax
sub esp, 0xedc
push ebx
push esi
push edi
mov eax, dword [0x6017f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.GlobalBMDMB_9557EFCA_7344_44c3_A1D7_C93177B15DD7
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test esi, esi
je 0x40b277
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x40b2c5
mov eax, dword [section..shr]
test eax, eax
je 0x40b3a1
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [section..shr]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40b3a1
push 9
push dword [section..shr]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
lea eax, [edi + 0xcc]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call sub.gdiplus.dll_GdiplusStartup
mov ecx, edi
call fcn.00437d64
push 0
call fcn.00439959
add esp, 4
lea ecx, [ebp - 0xee8]
push 0
call fcn.0040b680
lea eax, [ebp - 0xee8]
mov dword [ebp - 4], 0
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x40b38b
cmp dword [ebp - 0x10], 2
jne 0x40b384
mov edx, dword [esi + 4]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b350
sub ecx, edi
sar ecx, 1
cmp ecx, 3
jne 0x40b384
push ecx
push 0x5a4564
push edx
call fcn.005795a6
movzx ecx, byte [ebp - 0x29]
add esp, 0xc
test eax, eax
mov edx, 1
cmove ecx, edx
mov byte [ebp - 0x29], cl
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0xee8]
call fcn.00430717
lea ecx, [ebp - 0xee8]
call fcn.0040bcb0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b3c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
movzx eax, word [esp + 0x10]
push esi
push edi
push 0x5a456c
xor esi, esi
mov dword [esp + 0x10], 0
push eax
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40b51a
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b519
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40b518
push ebp
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
je 0x40b518
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x40b518
push ebp
push ebx
push edi
call fcn.0056ad20
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x14]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40b518
mov edi, dword [esp + 0x14]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x40b49c
lea eax, [esp + 0x20]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push edi
mov dword [esp + 0x28], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
jmp 0x40b49e
xor esi, esi
test esi, esi
je 0x40b518
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x40b518
push 0xff000000
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x40b4cb
mov dword [esi + 8], eax
jmp 0x40b518
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x40b4e7
mov dword [esi + 8], eax
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push dword [esi + 4]
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x40b507
mov dword [esi + 8], eax
push 0
push edi
push dword [esp + 0x20]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_SetBitmapDimensionEx]
pop ebx
pop ebp
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40b528
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test esi, esi
je 0x40b534
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret