joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e0b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c456f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e161
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e14a
test esi, esi
jbe 0x41e161
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ac
test eax, eax
jne 0x41e13c
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e161
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e119
jmp 0x41e161
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e161
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4576
ret
Function at 0x41e9a4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x4c4f53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e9df
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e9f8
lea eax, [ebp - 0x10]
mov edx, dword [0x4dd248]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ea0b
lea eax, [ebp - 0x10]
mov edx, dword [0x4dd248]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ea17
adc edx, 0
mov edx, dword [edx*4 + 0x4dc0d8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41eb25
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d44
test eax, eax
je 0x41eb18
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41eb18
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d9c
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d44
test eax, eax
je 0x41eb18
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41eb18
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41eb18
cmp dx, 0x150
ja 0x41eb18
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d44
test eax, eax
je 0x41eb18
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41eb18
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eb3d
inc ebx
cmp ebx, 0x19
jne 0x41e9d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4f5a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x42acb7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448138]
jne 0x42acc1
repz ret
jmp fcn.004323fa

Function at 0x43b3a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00431be8
xor ebx, ebx
cmp dword [0x44a2f4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43b475
push 0x402f3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x43b3e0
xor eax, eax
jmp 0x43b539
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402f30
push edi
call esi
cmp eax, ebx
je 0x43b3d9
push eax
call fcn.00431b85
mov dword [esp], 0x402f20
push edi
mov dword [0x44a2f4], eax
call esi
push eax
call fcn.00431b85
mov dword [esp], 0x402f0c
push edi
mov dword [0x44a2f8], eax
call esi
push eax
call fcn.00431b85
mov dword [0x44a2fc], eax
lea eax, [ebp - 8]
push eax
call fcn.0042e1ce
test eax, eax
pop ecx
pop ecx
je 0x43b443
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042af84
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43b475
push 0x402ef0
push edi
call esi
push eax
call fcn.00431b85
cmp eax, ebx
pop ecx
mov dword [0x44a304], eax
je 0x43b475
push 0x402ed8
push edi
call esi
push eax
call fcn.00431b85
pop ecx
mov dword [0x44a300], eax
mov eax, dword [0x44a300]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x43b4ee
cmp dword [0x44a304], esi
je 0x43b4ee
push eax
call fcn.00431bf1
pop ecx
call eax
cmp eax, ebx
je 0x43b4bb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44a304]
call fcn.00431bf1
pop ecx
call eax
test eax, eax
je 0x43b4bb
test byte [ebp - 0x18], 1
jne 0x43b4ee
lea eax, [ebp - 0xc]
push eax
call fcn.0042e205
test eax, eax
pop ecx
je 0x43b4d6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042af84
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43b4e5
or dword [ebp + 0x10], 0x200000
jmp 0x43b51f
or dword [ebp + 0x10], 0x40000
jmp 0x43b51f
mov eax, dword [0x44a2f8]
cmp eax, esi
je 0x43b51f
push eax
call fcn.00431bf1
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43b51f
mov eax, dword [0x44a2fc]
cmp eax, esi
je 0x43b51f
push dword [ebp - 4]
push eax
call fcn.00431bf1
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44a2f4]
call fcn.00431bf1
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4617e0
Capabilities:
Get disk size

Disassembly:
cmp ecx, dword [0x40d1cc]
jne 0x4617ea
repz ret
jmp fcn.00463a8a

Function at 0x4714c4
Capabilities:
Get common file path
Query environment variable
Read file on windows

Disassembly:
cmp ecx, dword [0x4100e4]
jne 0x4714ce
repz ret
jmp fcn.00476a9c
Function at 0x47709b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004724ad
xor ebx, ebx
cmp dword [0x411a1c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x477170
push 0x401b84
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
cmp edi, ebx
jne 0x4770db
xor eax, eax
jmp 0x477234
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push 0x401b78
push edi
call esi
cmp eax, ebx
je 0x4770d4
push eax
call fcn.0047244a
mov dword [esp], 0x401b68
push edi
mov dword [0x411a1c], eax
call esi
push eax
call fcn.0047244a
mov dword [esp], 0x401b54
push edi
mov dword [0x411a20], eax
call esi
push eax
call fcn.0047244a
mov dword [0x411a24], eax
lea eax, [ebp - 8]
push eax
call fcn.004716c3
test eax, eax
pop ecx
pop ecx
je 0x47713e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00473ecf
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x477170
push 0x401b38
push edi
call esi
push eax
call fcn.0047244a
cmp eax, ebx
pop ecx
mov dword [0x411a2c], eax
je 0x477170
push 0x401b20
push edi
call esi
push eax
call fcn.0047244a
pop ecx
mov dword [0x411a28], eax
mov eax, dword [0x411a28]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4771e9
cmp dword [0x411a2c], esi
je 0x4771e9
push eax
call fcn.004724b6
pop ecx
call eax
cmp eax, ebx
je 0x4771b6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x411a2c]
call fcn.004724b6
pop ecx
call eax
test eax, eax
je 0x4771b6
test byte [ebp - 0x18], 1
jne 0x4771e9
lea eax, [ebp - 0xc]
push eax
call fcn.004716fa
test eax, eax
pop ecx
je 0x4771d1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00473ecf
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4771e0
or dword [ebp + 0x10], 0x200000
jmp 0x47721a
or dword [ebp + 0x10], 0x40000
jmp 0x47721a
mov eax, dword [0x411a20]
cmp eax, esi
je 0x47721a
push eax
call fcn.004724b6
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x47721a
mov eax, dword [0x411a24]
cmp eax, esi
je 0x47721a
push dword [ebp - 4]
push eax
call fcn.004724b6
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x411a1c]
call fcn.004724b6
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10070410
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
lea edi, [ebp - 0x54]
mov ecx, 0x15
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1014c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x10150846
call fcn.10060174
mov ecx, dword [ebp + 8]
call fcn.1005fd37
shl eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005e563
add esp, 4
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
call fcn.1005fd37
shl eax, 1
shl eax, 1
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.1005e5f9
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.1005d497
mov esi, esp
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp esi, esp
call fcn.1005f341
push 0x1e
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.1005e5f9
add esp, 0xc
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov eax, 0x54
mov word [ebp - 0x24], ax
mov esi, esp
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp esi, esp
call fcn.1005f341
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.1005f3eb
add esp, 4
cmp dword [ebp - 0x10c], 0
jne 0x10070515
mov dword [ebp - 0x114], 0
jmp 0x10070525
mov dword [ebp - 0xc], 0x8123
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x114], edx
push edx
mov ecx, ebp
push eax
lea edx, [0x10070554]
call fcn.1005edb0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e572
add esp, 0x114
cmp ebp, esp
call fcn.1005f341
mov esp, ebp
pop ebp
ret
Function at 0x10070f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea edi, [ebp - 0x84]
mov ecx, 0x21
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x10150ae0
call fcn.10060174
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x50]
mov dword [ebp - 0x20], ecx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x2c], eax
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x7c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], 0
jmp 0x10070fb3
mov eax, dword [ebp - 0x80]
add eax, 1
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x44]
jae 0x10071009
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0xdc]
cmp dword [ebp - 0x20], ecx
ja 0x10070fd5
jmp 0x10070faa
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.100602c3
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x10071007
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x5c]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x74], ecx
jmp 0x10071009
jmp 0x10070faa
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x2c]
jb 0x10071023
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x38]
cmp dword [ebp - 0x74], eax
jae 0x10071023
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
pop edi
pop esi
pop ebx
add esp, 0x144
cmp ebp, esp
call fcn.1005f341
mov esp, ebp
pop ebp
ret
Function at 0x1010c970
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.1005d91a
mov eax, dword [0x1014c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x1014de90]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x1010cb48
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x1010ca97
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x1010ca97
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x1010ca75
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x1010c9f9
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1010cb01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x1010cb68
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x1010cb43
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x1010cb68
jmp 0x1010c9d2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e572
mov esp, ebp
pop ebp
ret
Function at 0x1010cc00
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.1005d91a
mov eax, dword [0x1014c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x1014de90]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x1010cdeb
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x1010cd36
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x1010cd36
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x1010cd12
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x1010cc89
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1010cda4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x1010ce0b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x1010cde6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x1010ce0b
jmp 0x1010cc62
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e572
mov esp, ebp
pop ebp
ret
Function at 0x410e50
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00410eb0

Function at 0x410eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4208e0]
test esi, esi
jle 0x410f9d
mov edi, dword [0x4208e4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x410ee4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x410f96
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x410ed0
mov dword [esp], eax
mov ebx, eax
call fcn.004117e0
test eax, eax
mov edi, eax
je 0x410fda
lea ebx, [esi + esi*2]
mov esi, dword [0x4208e4]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.004118e0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4208e4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x410fba
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x410f8f
sub eax, 0x40
and eax, 0xffffffbf
je 0x410f8f
mov eax, dword [esp + 0x20]
add ebx, dword [0x4208e4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x410fa4
add dword [0x4208e0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x410eee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00410e50
mov eax, dword [0x4208e4]
mov eax, dword [eax + ebx + 4]
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 fcn.00410e50
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00410e50
lea esi, [esi]
Function at 0x411450
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4208f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4208f0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4114a5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x41149e
test esi, esi
je 0x41149e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x411480
mov dword [esp], 0x4208f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x411700
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x411738
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x41172e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x41173a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x411720
xor eax, eax
pop ebx
pop esi
ret
Function at 0x465a62
Capabilities:
Encode data using xor

Disassembly:
std
push cs
out dx, al
or al, 0x96
in al, dx
popfd
xor al, 0xda
std
push cs
or eax, 0xa322c0f3
scasb al, byte es:[edi]
in al, 0xcd
stosd dword es:[edi], eax
cmc
arpl cx, sp
cli
loope 0x465a68
invalid
sub al, 0x95
xor eax, 0xdfed0f50
cmp al, dl
cmp dl, ch
and byte [edi], al
mov esp, 0x75e992ac
call 0x17b4297c
call 0xceb0a7e0
mov dword ss:[0xd52e73ea], eax
loop 0x465a6a
jbe 0x465a67
insb byte es:[edi], dx
pop esi
cmp eax, 0xab5e72ce
cmp byte [ebp - 0x759e8aba], bl
mov edi, 0xbe2d7d93
sbb eax, 0x53914b74
mov esp, 0xed2c3ae8
pop esp
cli
call [ebx + 6]
pop ebx
push es
out 0x84, eax
stosd dword es:[edi], eax
out 0x91, al
jg 0x465af3
cwde
insd dword es:[edi], dx
stc
mov esp, 0xc06e50ff
cld
pop ecx
adc ch, ch
invalid
push 0xfffffffffffffff8
fdivr qword [ecx + 7]
pushal
rcl byte [0xdacf6b13]
aad 0x40
adc eax, 0x1decdc19
mov ecx, 0x7034884c
mov al, byte [0x8cd190eb]
cmpsd dword [esi], dword es:[edi]
aaa
or byte [esi + 0x2c], dh
dec edi
adc ebx, dword [edx + edx*4 + 0x7271dabf]
sub ebx, edx
or byte [ebx - 0xd], al
leave
pop es
out dx, al
push esp
invalid
Function at 0x4ac122
Capabilities:
Encode data using xor

Disassembly:
adc ecx, ebx
cwde
cli
xor al, byte [ebx]
xor ebp, dword [0x73529706]
jmp 0x4ac0e8
push ecx
xchg edi, eax
mov dword [0x31730faf], eax
xchg edx, eax
cmp al, 0x63
add dword ss:[edi], esi
nop
mov eax, 0xf6edca72
mov esi, 0xc3bb89b1
bound ebp, qword [ecx]
sub dword fs:[esi - 0x14d85ecc], ecx
mov dword [0x513db940], eax
adc edx, ebx
popfd
invalid
cmpsb byte [esi], byte es:[edi]
stc
cli
mov ebp, 0x1c3a72b2
jl 0x4ac0bc
stosd dword es:[edi], eax
push esp
adc eax, 0x7073d3f8
je 0x4ac0e8
loop 0x4ac1aa
invalid
xor ebp, dword [0x9a614113]
xchg ebx, eax
xor eax, 0xe3b24f7f
stosb byte es:[edi], al
invalid