joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413f60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xf4]
mov ebx, dword [edi + 0xfc]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x444d48]
sub esi, 1
jne 0x413fa0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x4040], ebx
jne 0x413fd7
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.0041e850
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441be2
mov esp, ebp
pop ebp
ret 4

Function at 0x413ff0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, 0x10
movss xmm1, dword [edx + 0x110]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x114]
subss xmm0, xmm1
mov ecx, dword [edx + 0xf4]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xfc]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 0xc], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x444d48]
sub edi, 1
jne 0x414070
mov ecx, dword [ebp - 8]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.00441be2
mov esp, ebp
pop ebp
ret 4
Function at 0x417a30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x44c448]
mov ebx, ecx
cmp byte [edi + 0x4ccd], 0
jne 0x417a86
cmp byte [edi + 0x4cce], 0
jne 0x417a86
movsx eax, word [edi + 0x5e5c]
push eax
push str.Tooltip__02d
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.00406940
add esp, 0x10
test bl, 2
je 0x417bad
jmp 0x417b28
movss xmm0, dword [edi + 0x39a8]
mov eax, dword [edi + 0x49e8]
movaps xmm1, xmm0
mulss xmm1, dword [0x4499f4]
mulss xmm0, dword [0x4499e8]
addss xmm1, dword [edi + 0xac]
addss xmm0, dword [edi + 0xb0]
test al, 1
jne 0x417aec
movss dword [edi + 0x49f8], xmm1
or eax, 1
movss dword [edi + 0x49fc], xmm0
mov dword [edi + 0x4a00], 0
mov dword [edi + 0x4a04], 0
mov dword [edi + 0x49ec], 1
movss xmm0, dword [edi + 0x3a04]
or eax, 0x40
mulss xmm0, dword [0x449954]
mov dword [edi + 0x49e8], eax
movsx eax, word [edi + 0x5e5c]
push eax
push str.Tooltip__02d
lea eax, [ebp - 0x14]
movss dword [edi + 0x4a40], xmm0
push 0x10
push eax
call fcn.00406940
add esp, 0x10
mov al, byte [ebp - 0x14]
lea esi, [ebp - 0x13]
or edx, 0xffffffff
test al, al
je 0x417b5f
or ebx, 0xffffffff
cmp al, 0x23
jne 0x417b46
cmp byte [esi], al
jne 0x417b46
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x444d48]
test al, al
jne 0x417b38
not edx
mov ecx, edx
call fcn.0040dce0
test eax, eax
je 0x417bad
cmp byte [eax + 0xba], 0
je 0x417bad
mov byte [eax + 0xbf], 1
mov byte [eax + 0xc2], 1
mov byte [eax + 0xdc], 1
inc word [edi + 0x5e5c]
mov ax, word [edi + 0x5e5c]
cwde
push eax
push str.Tooltip__02d
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.00406940
add esp, 0x10
push 0x2030347
xor edx, edx
lea ecx, [ebp - 0x14]
call fcn.00410a20
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00441be2
mov esp, ebp
pop ebp
ret
Function at 0x41d350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
cmp dword [esi + 0x5f70], 0
lea ecx, [esi + 0x5f74]
je 0x41d3bc
push 0
call fcn.0041ec50
push dword [ebp + 8]
lea ecx, [esi + 0x5f74]
push ebx
call fcn.004072a0
mov edx, dword [esi + 0x5f74]
mov ecx, 0x44c444
push dword [esi + 0x5f70]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x5f7c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push ebx
call fcn.004072a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d760
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x44c448]
test bl, bl
je 0x41d7a6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x41d787
cmp byte [esi], bl
jne 0x41d787
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x444d48]
test bl, bl
jne 0x41d778
mov edi, dword [0x44c448]
mov ecx, dword [edi + 0x5f0c]
not eax
mov edx, dword [edi + 0x5f14]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x41d7cd
cmp dword [edx + 4], eax
je 0x41d7d0
add edx, 0x24
cmp edx, ecx
jne 0x41d7c1
xor eax, eax
ret
mov eax, edx
ret
Function at 0x426e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x426e63
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.0040a8a0
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x426e84
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.0040a8a0
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x426ea5
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.0040a8a0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x426ee2
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
call fcn.0040a8a0
mov dword [esi + 0x78], 0
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x426f0c
mov dword [esi + 0x80], 0
mov dword [esi + 0x7c], 0
call fcn.0040a8a0
mov dword [esi + 0x84], 0
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x426f2d
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
call fcn.0040a8a0
mov dword [esi + 0x40], 0
lea ecx, [esi + 0x5c]
pop esi
jmp fcn.00429540
Function at 0x429f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
cmp byte [ecx + 0x3c], 0
jne 0x42a028
push 0x60
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x44c448]
add esp, 4
mov ecx, eax
test esi, esi
je 0x42a00c
movsx edx, word [esi + 0x6028]
lea eax, [esi + 0x602c]
mov edi, dword [esi + 0x3f70]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x42a002
lea eax, [edx + 1]
mov dword [ebp - 8], 6
cdq
idiv dword [ebp - 8]
movzx eax, dx
mov word [esi + 0x6028], ax
cwde
lea eax, [eax*8 + 0x602c]
add eax, esi
xor edx, edx
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 4]
inc dword [esi + 0x6020]
test ecx, ecx
je 0x42a017
call fcn.0042bdb0
jmp 0x42a019
xor eax, eax
mov dword [ebp - 8], eax
lea ecx, [ebx + 0x3c]
lea eax, [ebp - 8]
push eax
call fcn.0041efa0
mov ecx, dword [ebx + 0x54]
mov edi, dword [ebx + 0x58]
cmp ecx, edi
jne 0x42a083
lea esi, [ecx + 1]
test edi, edi
je 0x42a044
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x42a049
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, edi
jle 0x42a083
imul ecx, esi, 0x7c
call fcn.0040a810
mov edi, eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x42a07a
imul ecx, dword [ebx + 0x54], 0x7c
push ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebx + 0x5c]
add esp, 0xc
call fcn.0040a8a0
mov ecx, dword [ebx + 0x54]
mov dword [ebx + 0x5c], edi
mov dword [ebx + 0x58], esi
mov edx, dword [ebp + 8]
mov esi, edx
imul edi, ecx, 0x7c
mov ecx, 0x1f
add edi, dword [ebx + 0x5c]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x54]
imul edi, dword [ebx + 0x54], 0x7c
add edi, dword [ebx + 0x5c]
mov ecx, dword [edi - 4]
test ecx, ecx
jne 0x42a0b3
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax + ecx*4 - 4]
mov dword [edi - 4], ecx
cmp byte [edi - 0x74], 0
jne 0x42a0df
mov ecx, dword [edi - 0x78]
call fcn.0040a810
mov ecx, dword [ebp + 8]
push dword [edi - 0x78]
mov dword [edi - 0x7c], eax
mov byte [edi - 0x74], 1
push dword [ecx]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0xffff
cmp word [ecx + 0x3c], ax
jne 0x42a0f2
mov ax, word [edx + 0x4c]
mov word [ecx + 0x3c], ax
imul esi, dword [ebx + 0x54], 0x7c
mov ecx, dword [ebx + 0x5c]
add esi, ecx
cmp ecx, esi
je 0x42a120
nop
cmp byte [ecx + 0x3c], 0
mov edx, dword [ecx + 0x78]
jne 0x42a110
mov dword [edx + 0x34], ecx
xor eax, eax
jmp 0x42a114
movzx eax, word [edx + 0x38]
inc eax
add ecx, 0x7c
mov word [edx + 0x38], ax
cmp ecx, esi
jne 0x42a100
mov ecx, dword [ebx + 0x1c]
mov byte [ebx + 0x18], 0
test ecx, ecx
je 0x42a130
call fcn.0040a8a0
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x42a13c
call fcn.0040a8a0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x19], 0
mov eax, dword [edi - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42bc70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0042b970
mov ecx, ebx
call fcn.0042baa0
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x48], eax
jle 0x42bd7f
xor ecx, ecx
mov dword [esp + 0x14], ecx
nop
mov edi, dword [ebx + 0x50]
add edi, ecx
cmp dword [edi + 0x18], 0
je 0x42bd6a
cmp dword [edi + 8], 0
je 0x42bd6a
movzx eax, word [edi + 4]
sub esp, 0x20
movzx esi, word [edi]
movzx ecx, word [edi + 6]
movzx edx, word [edi + 2]
movss xmm0, dword [edi + 0xc]
movss xmm4, dword [edi + 0x14]
movss dword [esp + 0x1c], xmm0
movd xmm6, eax
add eax, esi
movd xmm3, ecx
cvtdq2ps xmm3, xmm3
movd xmm2, eax
lea eax, [edx + ecx]
mulss xmm3, dword [ebx + 0x30]
mov ecx, dword [edi + 0x18]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
mulss xmm1, dword [ebx + 0x30]
mulss xmm2, dword [ebx + 0x2c]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm6, xmm6
movss dword [esp + 0x18], xmm1
addss xmm0, xmm4
mulss xmm6, dword [ebx + 0x2c]
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x10], xmm3
movss xmm3, dword [edi + 0x10]
movss dword [esp + 0xc], xmm6
movss dword [esp + 8], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
addss xmm0, dword [edi + 0x10]
movss dword [esp + 4], xmm0
movss dword [esp], xmm4
push dword [edi + 8]
push 0
call fcn.0042c510
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ecx, 0x1c
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [ebx + 0x48]
jl 0x42bca0
mov esi, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x42bda4
nop dword [eax]
mov ecx, dword [esi]
cmp byte [ecx + 0x48], 0
je 0x42bd9d
call fcn.0042bee0
add esi, 4
cmp esi, edi
jne 0x42bd90
pop edi
pop esi
mov byte [ebx + 0x18], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x18
cmp word [0x400000], 0x5a4d
mov dword [0x406058], 1
mov dword [0x406054], 1
mov dword [0x406050], 1
jne 0x401059
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x406064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x403014], 1
je 0x4010e0
leave
xor eax, eax
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401073
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f0
cmp dx, 0x20b
jne 0x401059
cmp dword [ecx + 0x84], 0xe
jbe 0x401059
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401059
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
leave
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401059
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401059

Function at 0x4014e0
Capabilities:
Contain obfuscated stackstrings
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x94
mov dword [ebp - 0x1a], 0x61647055
mov dword [ebp - 0x16], 0x57726574
mov dword [ebp - 0x12], 0x6f646e69
mov word [ebp - 0xe], 0x77
lea edx, [ebp - 0x44]
mov eax, 0
mov ecx, 0xa
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x40], sym.__Z10WindowProcP6HWND__jjl_16
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1a]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_RegisterClassA]
call eax
sub esp, 4
mov dword [esp + 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], str.test
lea eax, [ebp - 0x1a]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExA]
call eax
sub esp, 0x30
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4015b3
mov eax, 0
jmp 0x401641
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov ecx, 0
mov eax, 0x1c
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x60], ecx
add eax, 4
cmp eax, edx
jb 0x4015de
jmp 0x40160b
lea eax, [ebp - 0x60]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
call eax
sub esp, 4
lea eax, [ebp - 0x60]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageA]
call eax
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x60]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMessageA]
call eax
sub esp, 0x10
test eax, eax
setne al
test al, al
jne 0x4015eb
mov eax, 0
mov edi, dword [ebp - 4]
leave
ret 0x10
Function at 0x401980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp + 0xc]
sub esp, 0x14
mov dword [esp], 2
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4019e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov esi, dword [0x40606c]
test esi, esi
jle 0x401b00
mov eax, dword [0x406070]
xor ecx, ecx
add eax, 0xc
lea esi, cs:[esi]
mov edx, dword [eax]
cmp ebx, edx
jb 0x401a1c
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a9d
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401a08
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401b27
mov eax, dword [0x406070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x406070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b07
mov eax, dword [ebp - 0x20]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401a96
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401aa8
add dword [0x40606c], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [ebp - 0x28]
cmove eax, edx
mov edx, dword [ebp - 0x34]
add ebx, dword [0x406070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
xor esi, esi
jmp 0x401a26
mov eax, dword [0x406070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop

Function at 0x4022e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
add edx, dword [edx + 0x3c]
movzx eax, word [edx + 0x14]
movzx esi, word [edx + 6]
lea eax, [edx + eax + 0x18]
test si, si
je 0x402320
xor ecx, ecx
lea esi, [esi]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402316
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402322
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402308
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x402330
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
cmp eax, 8
ja 0x4023bd
cmp word [0x400000], 0x5a4d
jne 0x4023bd
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea eax, [edx + 0x400000]
jne 0x4023bd
cmp word [edx + 0x400018], 0x10b
jne 0x4023bd
movzx edx, word [edx + 0x400014]
movzx edi, word [eax + 6]
lea ebx, [eax + edx + 0x18]
test di, di
je 0x4023d0
xor esi, esi
jmp 0x4023a2
add esi, 1
add ebx, 0x28
cmp esi, edi
je 0x4023d0
mov eax, dword [ebp + 8]
mov dword [esp + 8], 8
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._strncmp
test eax, eax
jne 0x402398
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x1c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4023e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402405
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402410
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402405
push ebp
movzx eax, word [ecx + 0x400014]
lea eax, [edx + eax + 0x18]
mov ebp, esp
push esi
movzx esi, word [ecx + 0x400006]
push ebx
mov ebx, dword [ebp + 8]
sub ebx, 0x400000
test si, si
je 0x402460
xor ecx, ecx
lea esi, [esi]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402456
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402462
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402448
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x401b40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401b8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b84
test esi, esi
je 0x401b84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b60
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e94
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401dfe
cmp eax, 4
jne 0x401e20
test esi, esi
je 0x401e12
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401e04
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401e5f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401e51
cmp ecx, 0x40
je 0x401e12
cmp ecx, 4
je 0x401e12
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d70
lea esi, [esi]
Function at 0x408b60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x408b7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408b81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408b70
mov eax, 1
add ebx, ebx
jne 0x408b93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408b88
jne 0x408ba4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408b88
xor ecx, ecx
sub eax, 3
jb 0x408bb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408c2a
mov ebp, eax
add ebx, ebx
jne 0x408bc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408bd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408bf4
inc ecx
add ebx, ebx
jne 0x408be0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x408bd5
jne 0x408bf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408bd5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408c14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x408c05
jmp 0x408b76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408c14
add edi, ecx
jmp 0x408b76
pop esi
mov edi, esi
mov ecx, 0x37
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408c32
cmp byte [edi], 1
jne 0x408c32
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 0x408c37
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x408caf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x89b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8a3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408c64
mov ecx, edi
jns 0x408c93
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 + 0x8a40]
or eax, eax
je 0x408ca9
mov dword [ebx], eax
add ebx, 4
jmp 0x408c81
call dword [esi + 0x8a50]
mov ebp, dword [esi + 0x8a44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x408ce3
sub esp, 0xffffff80
jmp section.UPX0