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

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x42cffb
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not esi
jb 0x42d0f7
push ebp
mov ebp, edi
shr ebp, 3
jmp 0x42d020
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x48b360]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x48b360]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x48b360]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x48b360]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x48b360]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x48b360]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x48b360]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x48b360]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x42d020
pop ebp
test edi, edi
je 0x42d11c
jmp 0x42d100
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x48b360]
add ecx, 1
sub edi, 1
jne 0x42d100
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x42d130
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movzx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x48b360]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x48b360]
mov dword [edx + 8], ecx
ret

Function at 0x42d6a0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x42d6e2
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42d6d6
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x42d6f3
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.00461e20
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x42e6a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push edi
mov edi, dword [esp + 0x420]
test edi, edi
je 0x42e6dd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42e6dd
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x42e7ba
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x42e6fc
cmp ax, 0x5c
jne 0x42e6fe
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x42e6f0
cmp ecx, ebx
push esi
je 0x42e741
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov esi, ecx
push esi
lea eax, [esp + 0x218]
push ebx
push eax
call fcn.00461e20
lea ecx, [esp + 0x220]
push ecx
push edi
mov word [esp + esi + 0x228], 0
call fcn.0042e6a0
add esp, 0x14
test edi, edi
mov word [esp + 0xc], 0
je 0x42e763
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x42e754
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e767
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x42e780
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x42e780
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop esi
jne 0x42e7ba
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.004611fb
add esp, 0x414
ret
Function at 0x42ffd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x42ffea
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x42ffdf
cmp dword [edi + 0x7c], ebx
je 0x42fffd
push edi
call fcn.0042dff0
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.0042de10
add esp, 0x10
test eax, eax
je 0x430024
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.00464255
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x430065
push 0x4000
call fcn.00464255
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x430071
push esi
call fcn.00462af8
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x4300bd
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0042d3c0
add esp, 4
test eax, eax
jne 0x4300bd
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x4300e7
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x4300f0
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
neg cl
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb ecx, ecx
and ecx, 0xc
test ebp, ebp
mov dword [esi + 0x7c], ecx
je 0x430137
lea ecx, [ecx]
movzx eax, byte [ebp]
test al, al
je 0x430137
push eax
push ebx
call fcn.0042d130
add esp, 8
add ebp, 1
jne 0x430120
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4303d0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x4304a5
cmp dword [ebx + 4], 0xffffffff
jne 0x4304a5
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430400
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x430439
cmp ax, 0x2f
je 0x430439
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x430426
mov eax, dword [0x483c64]
mov dword [edi], eax
mov edi, dword [esp + 0x14]
cmp edi, 1
push esi
mov esi, dword [esp + 0x10]
jne 0x430464
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x430464
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push esi
call fcn.0042d470
add esp, 0x10
test eax, eax
jne 0x430486
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.0042fe00
add esp, 4
mov dword [ebx], eax
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x433f71
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0043d3f3
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x433fa8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00433b83
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x437fe3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43801c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042a6d0
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041dc70
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x439d61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x439da4
call fcn.0043d3f3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x439da4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x439dbf
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043991b
test ebx, ebx
mov esi, eax
je 0x439dbd
test edi, edi
je 0x439dbd
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43abba
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x47f685
call fcn.00464b21
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43abdf
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43ac2b
call fcn.00432e21
push eax
lea ecx, [ebp - 0x10]
call fcn.004026d0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004468e0
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004023f0
mov eax, esi
call fcn.00464bf9
ret 8
Function at 0x440961
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a67d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x44099e
push 0x48e2a0
push 4
push eax
call fcn.004625fc
push eax
call fcn.00401000
add esp, 0x10
jmp 0x4409b0
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x440a1b
push edi
call fcn.00464353
mov edi, dword [eax]
call fcn.00464353
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00463405
add esp, 0x18
mov ebx, eax
call fcn.00464353
cmp dword [eax], 0
je 0x4409fb
call fcn.00464353
push dword [eax]
call fcn.00432645
pop ecx
jmp 0x440a02
call fcn.00464353
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x440a1b
cmp ebx, esi
jae 0x440a1b
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x440a1d
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004611fb
leave
ret
Function at 0x442671
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4426b7
call fcn.0043d3f3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4426b7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4426fa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4426e3
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4426e3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4426f7
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x445949
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x445972
call fcn.0043d3f3
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x445995
push eax
push dword [esi + 4]
call fcn.004458d4
push esi
push eax
mov ecx, 0x4a9bd4
call fcn.004455a7
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x44a86c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0043d3f3
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x44a897
xor eax, eax
jmp 0x44a93b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x44a890
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x44a890
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043140d
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x44a8ec
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x44a8db
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.004496b5
push edi
mov ebx, eax
call fcn.00431438
test ebx, ebx
pop ecx
je 0x44a92e
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00449d55
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00449e07
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x44e72f
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 0x44e75d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44e77b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044e699
jmp 0x44e77b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44e77b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044e699
test edi, edi
mov eax, edi
jne 0x44e765
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4a9c18]
test ecx, ecx
je 0x44e83e
jmp 0x44e72e
ret 8

Function at 0x45caf4
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x45cafd
xor eax, eax
jmp 0x45cb66
cmp dword [esp + 8], 0
jne 0x45cb09
call fcn.00431536
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00464768
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x45cb44
push dword [esi + 0x10]
call fcn.00464397
test eax, eax
pop ecx
jne 0x45cb44
mov esi, dword [esi + 0xc]
call fcn.00464366
push esi
push dword [eax]
push 1
call fcn.0045c70a
push dword [esi + 0x10]
call fcn.004643c6
test eax, eax
pop ecx
je 0x45cb63
push dword [esi + 0x10]
call fcn.00467c3d
push eax
call fcn.00401000
pop ecx
pop ecx
jmp 0x45cb32
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x45cb6f
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x45cb79
call fcn.00431536
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0046314b
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x45cba6
mov esi, dword [esi + 0xc]
call fcn.00464366
push esi
push dword [eax]
push 1
call fcn.0045c70a
pop esi
ret 8

Function at 0x4611fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a67d0]
jne 0x461205
repz ret
jmp fcn.004695aa
Function at 0x4644cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x464509
cmp dword [ebp + 0x14], edi
je 0x464509
cmp ecx, edi
jne 0x464510
call fcn.00464353
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004637dc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x464524
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x464545
cmp ebx, 0xffffffff
je 0x464534
push ebx
push edi
push ecx
call fcn.00461680
add esp, 0xc
cmp esi, edi
je 0x4644f1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4644f1
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x464561
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x464568
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x464659
test word [esi + 0xc], 0x10c
je 0x4645bc
mov eax, dword [esi + 4]
test eax, eax
je 0x4645bc
jl 0x4646ba
cmp ebx, eax
mov edi, ebx
jb 0x46458d
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x464661
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00461180
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x464651
cmp ebx, dword [ebp - 0xc]
jb 0x464629
cmp dword [ebp - 0xc], 0
je 0x4645e6
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4645db
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4645e2
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4645f1
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4645f1
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x46468d
push eax
push dword [ebp - 8]
push esi
call fcn.00467a8a
pop ecx
push eax
call fcn.00471b23
add esp, 0xc
test eax, eax
je 0x4646cc
cmp eax, 0xffffffff
je 0x4646ba
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x464651
push esi
call fcn.00471442
cmp eax, 0xffffffff
pop ecx
je 0x4646be
cmp dword [ebp - 4], 0
je 0x46468d
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x464570
mov eax, dword [ebp + 0x14]
jmp 0x46450b
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x464678
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00461680
add esp, 0xc
call fcn.00464353
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x464501
cmp dword [ebp + 0xc], 0xffffffff
je 0x4646a3
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00461680
add esp, 0xc
call fcn.00464353
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x464501
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x46450b
or dword [esi + 0xc], 0x10
jmp 0x4646be
Function at 0x468332
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4a6990]
je 0x46834d
inc edi
cmp edi, 0x17
jb 0x46833e
cmp edi, 0x17
jae 0x4684cd
push ebp
push 3
call fcn.004737b4
cmp eax, 1
pop ecx
je 0x468499
push 3
call fcn.004737b4
test eax, eax
pop ecx
jne 0x468381
cmp dword [0x4a67cc], 1
je 0x468499
cmp ebx, 0xfc
je 0x4684cc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4a9f48
push ebp
call fcn.00470df0
add esp, 0xc
test eax, eax
je 0x4683b7
push esi
push esi
push esi
push esi
push esi
call fcn.004636e0
add esp, 0x14
push 0x104
mov esi, 0x4a9f61
push esi
push 0
mov byte [0x4aa065], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4683fb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00470df0
add esp, 0xc
test eax, eax
je 0x4683fb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004636e0
add esp, 0x14
push esi
call fcn.00467190
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x468440
push esi
call fcn.00467190
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4aa25c
push 0x4921ec
sub ecx, eax
push ecx
push eax
call fcn.00473701
add esp, 0x14
test eax, eax
je 0x468440
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004636e0
add esp, 0x14
jmp 0x468442
xor esi, esi
push 0x4921e8
push ebx
push ebp
call fcn.00473690
add esp, 0xc
test eax, eax
je 0x468462
push esi
push esi
push esi
push esi
push esi
call fcn.004636e0
add esp, 0x14
push dword [edi*8 + 0x4a6994]
push ebx
push ebp
call fcn.00473690
add esp, 0xc
test eax, eax
je 0x468484
push esi
push esi
push esi
push esi
push esi
call fcn.004636e0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004734d3
add esp, 0xc
jmp 0x4684cc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4684cc
cmp ebp, 0xffffffff
je 0x4684cc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4a6994]
push dword [esi]
call fcn.00467190
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret