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

Disassembly:
cmp ecx, dword [0x40db60]
jne 0x404bf9
repz ret
jmp fcn.0040883b

Function at 0x4060f3
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.004029c4
and dword [ebp - 4], 0
cmp dword [0x40e54c], 0
mov ebx, eax
jne 0x4061a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406255
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40aa14
push edi
call esi
test eax, eax
je 0x406255
push eax
call fcn.00402952
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e54c], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e550], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e554], eax
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e55c], eax
test eax, eax
je 0x4061a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e558], eax
mov eax, dword [0x40e558]
cmp eax, ebx
je 0x4061fc
cmp dword [0x40e55c], ebx
je 0x4061fc
push eax
call fcn.004029cd
push dword [0x40e55c]
mov esi, eax
call fcn.004029cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061fc
test edi, edi
je 0x4061fc
call esi
test eax, eax
je 0x4061f3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061f3
test byte [ebp - 0xc], 1
jne 0x4061fc
or dword [ebp + 0x10], 0x200000
jmp 0x406235
mov eax, dword [0x40e550]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406235
mov eax, dword [0x40e554]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e54c]
call fcn.004029cd
pop ecx
test eax, eax
je 0x406255
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406257
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4012b4
mov edi, dword [esp + 0x10]
xor ebx, ebx
nop word cs:[eax + eax]
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
xor byte [edi + ebx], 0xfb
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
add byte [edi + ebx], 0x6e
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
add byte [edi + ebx], 0x2e
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
xor byte [edi + ebx], 0xa2
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
add byte [edi + ebx], 0xe
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
xor byte [edi + ebx], 0xdb
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
xor byte [edi + ebx], 0x94
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
xor byte [edi + ebx], 0xc4
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
add byte [edi + ebx], 0x98
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
add byte [edi + ebx], 0xe2
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
add byte [edi + ebx], 0xea
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
add byte [edi + ebx], 0x5c
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
add byte [edi + ebx], 0x32
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
add byte [edi + ebx], 0x74
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
add byte [edi + ebx], 0x9f
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
xor byte [edi + ebx], 0x64
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
xor byte [edi + ebx], 0x79
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
add byte [edi + ebx], 0x4e
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
xor byte [edi + ebx], 0x35
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
add byte [edi + ebx], 0xe2
push str.xbyuidgAYU7uikj
push 0x43b540
call fcn.00401da0
add esp, 8
push eax
call fcn.004021c0
add esp, 4
xor byte [edi + ebx], 0x7f
inc ebx
cmp esi, ebx
jne 0x401020
pop esi
pop edi
pop ebx
ret
Function at 0x404700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40a540
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ecx, edi
push 0
call fcn.0040e42f
mov dword [edi + 4], 0
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov word [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov word [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
test esi, esi
mov dword [ebp - 0x20], edi
je 0x4047af
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.0040e72a
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], 0
push str.bad_locale_name
call fcn.0040e3dc
add esp, 4
nop word cs:[eax + eax]
push ebp
sub esp, 8
add ebp, 0xc
mov eax, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x4047ec
push eax
call fcn.00414528
add esp, 4
mov eax, esi
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x404805
push eax
call fcn.00414528
add esp, 4
mov eax, esi
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40481e
push eax
call fcn.00414528
add esp, 4
mov eax, esi
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x404837
push eax
call fcn.00414528
add esp, 4
mov eax, esi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x404850
push eax
call fcn.00414528
add esp, 4
mov eax, esi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x404869
push eax
call fcn.00414528
add esp, 4
mov ecx, esi
mov dword [esi + 4], 0
call fcn.0040e487
add esp, 8
pop ebp
ret
Function at 0x406130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x40a650
mov edx, dword fs:[0]
mov dword [esi + 0x30], edx
lea edx, [esi + 0x30]
mov dword fs:[0], edx
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
movaps xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf
mov dword [esi + 0x38], 1
lea edi, [esi + 0x10]
mov dword [esi + 0xc], ecx
push edi
push edx
push eax
call fcn.00403b80
mov eax, dword [esi + 0x24]
cmp eax, 0x10
jb 0x4061ca
mov ecx, dword [esi + 0x10]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x4061c0
mov edi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edi
cmp ecx, 0x20
jae 0x4061e7
add eax, 0x24
mov edx, eax
mov ecx, edi
push edx
push ecx
call fcn.0040ac00
add esp, 8
mov eax, dword [esi + 0xc]
mov dword [eax], vtable.std::system_error.0
mov ecx, dword [esi + 0x30]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [esi + 0x38], 0
call fcn.004144d7
nop word cs:[eax + eax]
push ebp
sub esp, 0xc
lea esi, [ebp - 0x3c]
mov ebp, dword [esi + 0x28]
call fcn.00410a09
nop
push ebp
sub esp, 0xc
lea esi, [ebp - 0x3c]
mov ebp, dword [esi + 0x28]
lea ecx, [esi + 0x10]
call fcn.004022a0
add esp, 0xc
pop ebp
ret

Function at 0x40b490
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b4cf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b4cf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b4cf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b4cf
cmp dword [ecx + 0x74], 0xe
jbe 0x40b4cf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40cdc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40cde1
jl 0x40cdd8
test edi, edi
jne 0x40cde1
xor eax, eax
xor edx, edx
jmp 0x40cea2
cmp dword [ebx + 0x38], 0
je 0x40cdf6
push eax
push edi
push dword [ebp + 8]
call fcn.0040cea8
jmp 0x40cea2
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ce3d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ce3d
cmp eax, edi
jb 0x40ce17
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00410a10
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40ce43
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40ce97
mov ecx, ebx
call fcn.0040c53f
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40ce82
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00417a0d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40ce97
jmp 0x40ce55
test edx, edx
je 0x40ce97
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00417a0d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x41c18b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41c228
push ebx
push esi
call fcn.0041c154
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041c09d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c1d5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c227
push edi
push eax
call fcn.0041af2b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c1f5
call fcn.0041abeb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c226
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c09d
add esp, 0x20
test eax, eax
jne 0x41c214
push edi
call fcn.0041abeb
jmp 0x41c21c
push ebx
call fcn.0041abeb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41ca54
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42da20
push 0x42da18
push str.FlsAlloc
push 0x1e
call fcn.0041c8c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ca88
push dword [ebp + 8]
mov ecx, esi
call dword [0x429190]
call esi
jmp 0x41ca8e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41cad2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42da30
push 0x42da28
push str.FlsGetValue
push 0x20
call fcn.0041c8c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cb09
push dword [ebp + 8]
mov ecx, esi
call dword [0x429190]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x420fd5
Capabilities:
Read file on windows

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

Function at 0x420fe0
Capabilities:
Read file on windows

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

Function at 0x4213da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00427db0
mov eax, dword [0x43a164]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041fe6c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42141c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421578
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427de0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43bf58]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004225aa
mov ecx, dword [esi*4 + 0x43bf58]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x421571
cmp eax, dword [edi + ecx + 0x24]
jne 0x421571
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421571
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004225aa
add esp, 0x14
test edx, edx
jl 0x421571
jg 0x4214e7
test eax, eax
jb 0x421571
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x421571
jl 0x421501
cmp dword [ebp - 0x1008], eax
ja 0x421571
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42151f
test ebx, ebx
je 0x421558
cmp ecx, edi
jae 0x421558
mov al, byte [ecx]
cmp al, 0xd
jne 0x421539
lea eax, [edi - 1]
cmp ecx, eax
jae 0x421545
cmp byte [ecx + 1], 0xa
jne 0x421545
inc ecx
jmp 0x421545
movzx eax, al
movsx eax, byte [eax + 0x43a9c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42151f
cmp edx, ebx
jne 0x42151f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x421576
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b8dc
leave
ret
Function at 0x421a48
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43bf58]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421a88
cmp byte [ebx], 0xa
jne 0x421a88
or byte [eax + edi + 0x28], 4
jmp 0x421a8d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x421b8b
mov al, byte [edx]
cmp al, 0x1a
je 0x421b6d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x421abc
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x421ae1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x421aeb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x421a9e
jmp 0x421b8b
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421b68
cmp dword [ebp - 0xc], 0
je 0x421b68
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43bf58]
test byte [eax + edi + 0x28], 0x48
je 0x421b42
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x421b2d
mov byte [esi], dl
jmp 0x421b3e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43bf58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421b8b
cmp byte [ebp - 1], 0xa
jne 0x421b51
cmp esi, ebx
jne 0x421b51
mov byte [esi], 0xa
jmp 0x421b8a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004225c8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421b8b
mov byte [esi], 0xd
jmp 0x421b8a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43bf58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421b87
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421b8b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421b94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43bf58]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421bd7
cmp word [esi], dx
jne 0x421bd7
or byte [edi + eax + 0x28], 4
jmp 0x421bdc
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x421d2f
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x421d0f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x421c1e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x421c54
cmp eax, edx
jae 0x421c60
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x421bf6
jmp 0x421d2f
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421d0b
cmp dword [ebp - 0x14], 0
je 0x421d0b
mov eax, dword [ebx*4 + 0x43bf58]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x421ce3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x421cac
mov word [esi], cx
jmp 0x421cdf
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43bf58]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43bf58]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43bf58]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x421d2f
pop ebx
cmp word [ebp - 4], bx
jne 0x421cf4
cmp esi, dword [ebp + 0xc]
jne 0x421cf4
mov word [esi], bx
jmp 0x421d2c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004225c8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x421d2f
push 0xd
jmp 0x421d28
mov ecx, dword [ebx*4 + 0x43bf58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421d26
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421d2f
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x427d70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427d9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427d9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x5b8370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5b838e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x5e1074
push ecx
mov edi, eax
call fcn.005cc198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5b83cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005cc02e
push esi
call fcn.005cbfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret