joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cc030]
jne 0x401073
repz ret
jmp fcn.00401c51

Function at 0x408bad
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040499b
and dword [ebp - 4], 0
cmp dword [0x4ce850], 0
mov ebx, eax
jne 0x408c5e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408d0f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408d0f
push eax
call fcn.00404929
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4ce850], eax
call esi
push eax
call fcn.00404929
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ce854], eax
call esi
push eax
call fcn.00404929
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ce858], eax
call esi
push eax
call fcn.00404929
pop ecx
mov dword [0x4ce860], eax
test eax, eax
je 0x408c5e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404929
pop ecx
mov dword [0x4ce85c], eax
mov eax, dword [0x4ce85c]
cmp eax, ebx
je 0x408cb6
cmp dword [0x4ce860], ebx
je 0x408cb6
push eax
call fcn.004049a4
push dword [0x4ce860]
mov esi, eax
call fcn.004049a4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408cb6
test edi, edi
je 0x408cb6
call esi
test eax, eax
je 0x408cad
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408cad
test byte [ebp - 0xc], 1
jne 0x408cb6
or dword [ebp + 0x10], 0x200000
jmp 0x408cef
mov eax, dword [0x4ce854]
cmp eax, ebx
je 0x408cef
push eax
call fcn.004049a4
pop ecx
test eax, eax
je 0x408cef
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408cef
mov eax, dword [0x4ce858]
cmp eax, ebx
je 0x408cef
push eax
call fcn.004049a4
pop ecx
test eax, eax
je 0x408cef
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ce850]
call fcn.004049a4
pop ecx
test eax, eax
je 0x408d0f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408d11
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1000cd63
pop dword [ebp - 0x3c]
mov eax, 0x107e8031
add eax, 0xff824d32
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x39b57
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x4acc
xor esi, esi
add esi, eax
mov edi, 0xe6d80838
sub edi, 0xd6d68238
add edi, dword [ebp - 0x3c]
mov edx, 0x4fd24e14
sub dword [ebp - 0xc], 0x4badbb8d
mov ebx, dword [edi]
xor dword [ebp - 0x1c], eax
xor ebx, edx
xor dword [ebp - 0x1c], ecx
mov dword [esi], ebx
add esi, 0xce7307d4
add esi, 0x318cf830
add edi, 4
loop 0x1000cdb3
add eax, 0x9a35d64b
add eax, 0x65cb47b8
xor ebx, ebx
add ebx, eax
add eax, 0x1caaef7f
add eax, 0xe3551086
mov ecx, 0x43dd627d
sub ecx, 0x33dd627d
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x402e35
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x401420
call fcn.00403038
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402e72
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402e72
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402e8a
cmp eax, 0x20b
je 0x402e77
mov dword [ebp - 0x1c], ebx
jmp 0x402e9e
cmp dword [ecx + 0x84], 0xe
jbe 0x402e72
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x402e98
cmp dword [ecx + 0x74], 0xe
jbe 0x402e72
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x404204], 0xffffffff
or dword [0x404208], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x404154]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x404150]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40420c], eax
call fcn.0040302e
cmp dword [0x4040b0], ebx
jne 0x402ef9
push fcn.0040302e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00403017
push 0x404010
push 0x40400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x40414c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x404148]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x404008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x402f8f
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x402f63
cmp al, 0x22
jne 0x402f55
cmp byte [esi], 0x22
jne 0x402f6c
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x402f76
cmp al, 0x20
jbe 0x402f68
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x402f9a
movzx eax, word [ebp - 0x50]
jmp 0x402f9d
cmp byte [esi], 0x20
jbe 0x402f6c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x402f8f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x402fba
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x402fef
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00403073
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401e11
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43204c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.VirtualProtect
xor edi, edi
and dword [ebp - 0xc], edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
call fcn.0040330b
push eax
call fcn.00403599
pop ecx
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x77e
push 0x4498a0
call esi
xorps xmm0, xmm0
mov ecx, 0x5f5e100
movlpd qword [ebp - 0x10], xmm0
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc edi
add eax, 1
adc esi, 0
jne 0x401e7f
cmp eax, ecx
jb 0x401e72
cmp edi, ecx
jb 0x401ea3
push ecx
mov edx, 0x4498a0
mov ecx, 0x77e
call fcn.00401d71
mov edx, 0x432aa0
mov ecx, 0x16e00
call fcn.00401d71
pop ecx
and dword [ebp - 0x14], 0
mov dword [0x44b364], 0x42f710
xor edx, edx
mov edx, 0x432aa0
push edx
xor edx, edx
mov edi, edx
push 0
xor esi, esi
lea edi, [ebp - 0x14]
mov eax, dword [0x44b364]
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x14]
push edi
mov eax, 0x4498a0
xor ecx, ecx
mov edx, ecx
add eax, 0x21
mov ecx, 0x160
inc edx
loop 0x401edf
add eax, edx
push 0
push eax
ret

Function at 0x402293
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4022ba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004028b2
jmp 0x402383
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x4022e2
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4022e8
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x402350
jg 0x4022ff
test esi, esi
je 0x402350
test ecx, ecx
jl 0x40234b
jg 0x402309
test eax, eax
je 0x40234b
cmp edi, ecx
jg 0x40231d
jl 0x402313
cmp esi, eax
jae 0x40231d
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call fcn.00403185
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x402353
mov ecx, dword [ebp + 8]
jmp 0x40235d
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x402377
jg 0x40235d
test esi, esi
je 0x402377
cmp dword [ebx + 0x4c], 0
je 0x402377
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040c8d8
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40238c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
push edi
test esi, esi
jg 0x4023bc
jl 0x4023b3
test ebx, ebx
jne 0x4023bc
xor eax, eax
xor edx, edx
jmp 0x40247b
cmp dword [ecx + 0x38], 0
je 0x4023cf
push esi
push ebx
push edx
call fcn.004029a6
jmp 0x40247b
mov eax, dword [ecx + 0x1c]
mov edi, ebx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
je 0x402412
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x402412
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [esp + 0x18]
push edx
call fcn.00403185
mov ecx, dword [esp + 0x1c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x402472
call fcn.00402dea
mov edx, dword [esp + 0xc]
mov eax, edi
cmp edi, 0xfff
jbe 0x40245d
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call fcn.0040cf7c
mov edx, dword [esp + 0x1c]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [esp + 0xc], edx
cmp eax, ecx
jne 0x402472
cmp edi, ecx
mov ecx, dword [esp + 0x10]
ja 0x40242b
mov eax, edi
test eax, eax
je 0x402472
push dword [ecx + 0x4c]
push edi
push 1
push edx
call fcn.0040cf7c
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402718
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x43204c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40273d
xor eax, eax
jmp 0x402812
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x40276b
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x40276b
lea ecx, [ebp - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x402811
cmp dword [esi + 0x4c], 0
je 0x40280f
mov ecx, esi
call fcn.00402dea
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402798
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040aa6c
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x40280f
mov byte [esp + 0x1b], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2f]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4027e0
sub eax, 1
je 0x4027e0
dec eax
sub eax, 1
jne 0x40280f
push dword [esi + 0x4c]
movsx ecx, byte [esp + 0x1f]
push ecx
jmp 0x40278a
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x1c]
sub ebp, eax
je 0x4027ff
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.0040c8d8
add esp, 0x10
cmp ebp, eax
jne 0x40280f
lea eax, [esp + 0x1b]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
mov eax, ebx
jne 0x402811
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040627a
add esp, 0x30
ret 4

Function at 0x402e0d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43204c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x402e66
cmp byte [esi + 0x3d], bl
je 0x402e66
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x402e9f
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, ebx
je 0x402e77
sub eax, 1
je 0x402e7a
dec eax
sub eax, 1
jne 0x402e9f
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040627a
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402e97
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040c8d8
add esp, 0x10
cmp edi, eax
jne 0x402e9f
cmp byte [esi + 0x3d], bl
sete al
jmp 0x402e68
xor al, al
jmp 0x402e68
Function at 0x405210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x43204c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x405235
xor eax, eax
jmp 0x405291
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x405262
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x405262
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x405318
cmp dword [edi + 0x4c], 0
je 0x40528b
mov ecx, edi
call fcn.00404eb9
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4052a1
push dword [edi + 0x4c]
push ebx
call fcn.004048f3
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x405290
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040627a
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x424140]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x4052eb
sub eax, 1
je 0x4052eb
dec eax
sub eax, 1
jne 0x40528b
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x40527d
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x405308
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0040c8d8
add esp, 0x10
cmp esi, eax
jne 0x40528b
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x40528b
mov ax, bx
jmp 0x405290

Function at 0x406d55
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406d94
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406d94
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406d94
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406d94
cmp dword [ecx + 0x74], 0xe
jbe 0x406d94
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x414867
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414518

Function at 0x414872
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004146a2

Function at 0x4231d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4231fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4231fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x104cb0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.104cb200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x104cb0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104cb0c2
add dl, dl
jne 0x104cb0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104cb134
xor eax, eax
add dl, dl
jne 0x104cb0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104cb1d5
add dl, dl
jne 0x104cb0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104cb108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104cb113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104cb11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104cb12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104cb0cd
mov eax, 1
add dl, dl
jne 0x104cb142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104cb14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104cb139
sub eax, ebx
mov ebx, 1
jne 0x104cb180
mov ecx, 1
add dl, dl
jne 0x104cb166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104cb171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104cb15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104cb0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104cb197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104cb1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104cb18e
cmp eax, 0x7d00
jae 0x104cb1c5
cmp eax, 0x500
jb 0x104cb1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104cb0cd
cmp eax, 0x7f
ja 0x104cb1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104cb0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104cb1f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x104cb0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4013d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x411250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov eax, dword [esp + 0x24]
push 0x417410
and eax, 0xffff
mov dword [esp + 0x20], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401433
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040af0f
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401465
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040af0f
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 8]
mov esi, eax
call fcn.0040b056
mov ecx, dword [esp + 0x2c]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.0040b168
test eax, eax
je 0x4014b5
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0040b2bf
lea ecx, [esp + 8]
call fcn.0040b383
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0040b0ab
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call fcn.0040af0f
mov ecx, dword [esp + 0x18]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x4069d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x418088
cmp edx, dword [eax]
je 0x4069f7
add eax, 8
inc ecx
cmp eax, 0x418118
jl 0x4069e8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x418088]
jne 0x406b25
mov eax, dword [0x41a648]
cmp eax, 1
je 0x406aff
test eax, eax
jne 0x406a28
cmp dword [0x417940], 1
je 0x406aff
cmp edx, 0xfc
je 0x406b25
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406a5f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406b30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406c20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406aa2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406c20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4136d4
push edi
call fcn.00408d20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406b30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406b40
lea eax, [ebp - 0xa0]
push 0x4136b4
push eax
call fcn.00406b40
push dword [esi + 0x41808c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406b40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408c8a
add esp, 0x2c
pop edi
jmp 0x406b25
lea eax, [ebp + 8]
lea esi, [esi + 0x41808c]
push 0
push eax
push dword [esi]
call fcn.00406c20
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 0x41015b
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 0x410189
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4101a7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004100c1
jmp 0x4101a7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4101a7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004100c1
test edi, edi
mov eax, edi
jne 0x410191
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8