joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426540
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
xor ebx, ebx
cmp byte [esi + 4], bl
push ebp
push edi
jne 0x42662b
cmp byte [esi + 0x118], bl
je 0x42662b
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x426575
mov ecx, dword [esi + 0x114]
push ebx
push ecx
push eax
xor edx, edx
call fcn.00424e90
mov eax, dword [esi + 0x2a4]
cmp eax, ebx
jne 0x426583
xor edi, edi
jmp 0x42659c
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, dword [esi + 0x2a4]
cmp eax, ebx
je 0x4265c1
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4265c6
call fcn.0047263c
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x4265ef
mov edx, dword [esi + 0x2a4]
imul edi, edi, 0x13c
push ebx
lea ecx, [esp + 0x14]
push ecx
push edi
push edx
push eax
mov dword [esp + 0x24], ebx
call ebp
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
mov byte [esi + 0x118], bl
je 0x426607
push ebx
push ebx
push eax
xor edx, edx
call fcn.00424e90
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x426625
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0x110
lea edx, [esi + 0xc]
push edx
push eax
mov dword [esp + 0x24], ebx
call ebp
mov byte [esi + 0x118], bl
pop edi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x426640
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
test ebx, ebx
push edi
jl 0x42676c
mov eax, dword [esi + 0x2a4]
test eax, eax
je 0x42666f
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jge 0x42676c
mov eax, dword [esi + 0x2a4]
test eax, eax
je 0x42669e
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4266a3
call fcn.0047263c
mov eax, dword [esi + 0x2a4]
mov edi, ebx
imul edi, edi, 0x13c
mov dword [edi + eax + 0x100], 0
mov eax, dword [esi + 0x2a4]
test eax, eax
je 0x4266e3
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4266e8
call fcn.0047263c
mov ecx, dword [esi + 0x2a4]
mov dword [ecx + edi + 0x104], 0
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x426714
mov edx, dword [esi + 0x114]
add edx, edi
push 0
push edx
push eax
xor edx, edx
call fcn.00424e90
mov eax, dword [esi + 0x2a4]
test eax, eax
je 0x42673b
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x426740
call fcn.0047263c
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x42676c
mov edx, dword [esi + 0x2a4]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x13c
add edx, edi
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
add esp, 8
ret
Function at 0x426a30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x114
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x110], eax
cmp dword [esi + 8], 0xffffffff
push ebx
push edi
mov edi, ecx
je 0x426bdc
cmp byte [edi], 0x5c
jne 0x426a69
push edi
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004739e4
jmp 0x426a92
lea ecx, [esi + 0x11c]
push ecx
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.004739e4
add esp, 0xc
push edi
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00473973
add esp, 0xc
push esi
lea edx, [esp + 0x10]
call fcn.004259d0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x426bdc
mov eax, dword [esi + 0x2a4]
test eax, eax
je 0x426ad1
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x426ad6
call fcn.0047263c
mov ecx, dword [esi + 0x2a4]
mov edi, ebx
imul edi, edi, 0x13c
mov dword [ecx + edi + 0x100], 0
mov eax, dword [esi + 0x2a4]
test eax, eax
je 0x426b16
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x426b1b
call fcn.0047263c
mov edx, dword [esi + 0x2a4]
mov dword [edi + edx + 0x104], 0
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x426b47
mov ecx, dword [esi + 0x114]
push 0
add ecx, edi
push ecx
push eax
xor edx, edx
call fcn.00424e90
mov eax, dword [esi + 0x2a4]
test eax, eax
je 0x426b6e
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x426b73
call fcn.0047263c
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x426b9f
mov ecx, dword [esi + 0x2a4]
push 0
lea edx, [esp + 0xc]
push edx
push 0x13c
add ecx, edi
push ecx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x426bb3
push 0
push 0
push eax
xor edx, edx
call fcn.00424e90
push ebx
mov ecx, esi
call fcn.00425e00
push ebx
mov ecx, esi
call fcn.00425c60
mov al, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004716ba
add esp, 0x114
ret
mov ecx, dword [esp + 0x118]
pop edi
pop ebx
xor ecx, esp
xor al, al
call fcn.004716ba
add esp, 0x114
ret
Function at 0x428220
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4946d3
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd750]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
je 0x4283e7
mov dword [esp + 0x18], vtable.CFileStream.0
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], ebx
call dword [0x4ae2f0]
mov ax, word [0x4ae290]
mov cl, byte [0x4ae292]
lea edx, [esp + 0x40]
push edx
push esi
mov dword [esp + 0x44], ebx
mov word [esp + 0x48], ax
mov byte [esp + 0x4a], cl
call fcn.00476f71
mov dword [esp + 0x24], eax
mov eax, esi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4282c0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00403870
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x18]
call edx
test al, al
lea ecx, [esp + 0x18]
je 0x4283e2
call fcn.004218d0
lea ecx, [esp + 0x18]
call fcn.004218d0
add eax, 1
push eax
call fcn.0044e523
add esp, 4
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.004218d0
add eax, 1
push eax
push ebx
push esi
call fcn.00475860
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.004218d0
cmp dword [esp + 0x1c], ebx
mov edi, eax
jne 0x42834b
push 0xf9
push 0x4ae270
push str.m_pStream
call dword [0x4bf2f8]
add esp, 0xc
mov eax, dword [esp + 0x1c]
push eax
push edi
push 1
push esi
call fcn.0047492d
mov ecx, dword [ebp]
add esp, 0x10
cmp ecx, ebx
je 0x42836b
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
push 0x78
call fcn.0044e4f8
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x5c], 1
je 0x42838a
push eax
call fcn.00429cd0
jmp 0x42838c
xor eax, eax
mov byte [esp + 0x5c], bl
push ebx
mov dword [ebp], eax
mov edx, dword [eax]
push ebx
mov ecx, eax
mov eax, dword [edx + 8]
push esi
call eax
push esi
call fcn.0044e528
mov eax, dword [ebp]
add esp, 4
cmp byte [eax + 0x44], bl
je 0x4283eb
mov edx, 0x10
cmp dword [eax + 0x64], edx
jb 0x4283bf
mov ecx, dword [eax + 0x50]
jmp 0x4283c2
lea ecx, [eax + 0x50]
cmp dword [eax + 0x38], edx
jb 0x4283cc
mov eax, dword [eax + 0x24]
jmp 0x4283cf
add eax, 0x24
push ecx
push eax
push str.Error_in__s:__s_n
call fcn.0047614b
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00421720
xor al, al
jmp 0x4283f6
lea ecx, [esp + 0x18]
call fcn.00421720
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004716ba
add esp, 0x4c
ret 4
Function at 0x430d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x491ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd750]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x430dbd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x430dcd
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.00433660
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x3c], 0
call fcn.004309b0
lea ecx, [esp + 0x14]
mov bl, al
mov dword [esp + 0x34], 0xffffffff
call fcn.004338c0
mov al, bl
jmp 0x430dcf
lea edi, [ebx + 0x44]
mov ecx, 6
mov esi, str.Unable_to_load_resource_
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc

Function at 0x436f80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x436faf
push esi
call fcn.00437710
add esp, 4
cmp byte [esi + 0x40], 0
je 0x436fa8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x43702a
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x43701a
mov eax, dword [esi + 8]
test eax, eax
je 0x436fd4
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x437016
cmp eax, 2
je 0x43701a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x436fc5
cmp eax, 3
je 0x436ffc
cmp eax, 1
jne 0x436fc5
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x436fc5
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x436fc5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.00436e10
pop esi
ret
cmp eax, 0xcc
je 0x43704c
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.00436e10
pop esi
ret
Function at 0x43eba0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x43ebc7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x43ebd3
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0xc], ecx
jle 0x43ecdf
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x43ec1c
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx]
cdq
idiv ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x43ec3d
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ecx*4]
add ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
xor ebx, ebx
call fcn.0043ea10
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x43ec72
lea esp, [esp]
add ebx, 1
mov ecx, ebp
mov eax, ebx
call fcn.0043ea10
mov ecx, eax
cmp esi, ecx
jg 0x43ec60
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
add esi, 1
cmp esi, 0xff
jle 0x43ec55
cmp dword [esp + 0x10], 0
je 0x43ecc0
mov eax, 1
lea ecx, [edi - 1]
jmp 0x43eca0
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
add eax, 1
sub ecx, 1
cmp eax, 0xff
jle 0x43eca0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
add eax, 1
cmp eax, dword [ecx + 0x64]
mov dword [esp + 0x14], eax
jl 0x43ec10
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x4529dd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x452a16
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.004529a0
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00401a90
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x454712
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 0x454755
call fcn.00461e85
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x454755
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x454770
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004542cc
test ebx, ebx
mov esi, eax
je 0x45476e
test edi, edi
je 0x45476e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x45d554
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4bd750]
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 0x45d591
push 0x49dde8
push 4
push eax
call fcn.00472d52
push eax
call fcn.00403740
add esp, 0x10
jmp 0x45d5a3
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45d60e
push edi
call fcn.00478d9d
mov edi, dword [eax]
call fcn.00478d9d
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.004758f6
add esp, 0x18
mov ebx, eax
call fcn.00478d9d
cmp dword [eax], 0
je 0x45d5ee
call fcn.00478d9d
push dword [eax]
call fcn.0044ebd9
pop ecx
jmp 0x45d5f5
call fcn.00478d9d
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x45d60e
cmp ebx, esi
jae 0x45d60e
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x45d610
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004716ba
leave
ret
Function at 0x45e232
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 0x45e278
call fcn.00461e85
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45e278
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x45e2bb
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 0x45e2a4
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 0x45e2a4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x45e2b8
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 0x4600cf
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.00461e85
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 0x460106
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.0045fce1
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 0x462f88
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 0x462fb6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x462fd4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00462ef2
jmp 0x462fd4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x462fd4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00462ef2
test edi, edi
mov eax, edi
jne 0x462fbe
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4c4cd8]
test ecx, ecx
je 0x463097
jmp 0x462f87
ret 8

Function at 0x4716ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bd750]
jne 0x4716c4
repz ret
jmp fcn.0047aa9b
Function at 0x4738d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x473905
call fcn.00478db0
mov dword [eax], esi
call fcn.00478d9d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00472618
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4738e1
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x473934
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00478dc3
pop ecx
call fcn.00478d9d
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x47395b
test al, 1
je 0x47395b
test byte [esp + 0xc], 2
je 0x47395b
call fcn.00478db0
mov dword [eax], 5
call fcn.00478d9d
mov dword [eax], 0xd
jmp 0x47392b
xor eax, eax
pop esi
ret
Function at 0x474691
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 0x4746ce
cmp dword [ebp + 0x14], edi
je 0x4746ce
cmp ecx, edi
jne 0x4746d5
call fcn.00478d9d
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00472618
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4746e9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x47470a
cmp ebx, 0xffffffff
je 0x4746f9
push ebx
push edi
push ecx
call fcn.00475860
add esp, 0xc
cmp esi, edi
je 0x4746b6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4746b6
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x474726
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x47472d
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x47481e
test word [esi + 0xc], 0x10c
je 0x474781
mov eax, dword [esi + 4]
test eax, eax
je 0x474781
jl 0x47487f
cmp ebx, eax
mov edi, ebx
jb 0x474752
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x474826
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047170e
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 0x474816
cmp ebx, dword [ebp - 0xc]
jb 0x4747ee
cmp dword [ebp - 0xc], 0
je 0x4747ab
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4747a0
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4747a7
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4747b6
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4747b6
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x474852
push eax
push dword [ebp - 8]
push esi
call fcn.0047e605
pop ecx
push eax
call fcn.004843a3
add esp, 0xc
test eax, eax
je 0x474891
cmp eax, 0xffffffff
je 0x47487f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x474816
push esi
call fcn.00483cc2
cmp eax, 0xffffffff
pop ecx
je 0x474883
cmp dword [ebp - 4], 0
je 0x474852
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 0x474735
mov eax, dword [ebp + 0x14]
jmp 0x4746d0
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x47483d
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00475860
add esp, 0xc
call fcn.00478d9d
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4746c6
cmp dword [ebp + 0xc], 0xffffffff
je 0x474868
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00475860
add esp, 0xc
call fcn.00478d9d
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4746c6
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4746d0
or dword [esi + 0xc], 0x10
jmp 0x474883
Function at 0x4798c0
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 + 0x4bdc30]
je 0x4798db
inc edi
cmp edi, 0x17
jb 0x4798cc
cmp edi, 0x17
jae 0x479a5b
push ebp
push 3
call fcn.004881a5
cmp eax, 1
pop ecx
je 0x479a27
push 3
call fcn.004881a5
test eax, eax
pop ecx
jne 0x47990f
cmp dword [0x4bd710], 1
je 0x479a27
cmp ebx, 0xfc
je 0x479a5a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4c4de8
push ebp
call fcn.004739e4
add esp, 0xc
test eax, eax
je 0x479945
push esi
push esi
push esi
push esi
push esi
call fcn.0047251c
add esp, 0x14
push 0x104
mov esi, 0x4c4e01
push esi
push 0
mov byte [0x4c4f05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x479989
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004739e4
add esp, 0xc
test eax, eax
je 0x479989
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0047251c
add esp, 0x14
push esi
call fcn.00478df0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4799ce
push esi
call fcn.00478df0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4c50fc
push 0x4ad5b0
sub ecx, eax
push ecx
push eax
call fcn.00489bc7
add esp, 0x14
test eax, eax
je 0x4799ce
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0047251c
add esp, 0x14
jmp 0x4799d0
xor esi, esi
push 0x4a06e8
push ebx
push ebp
call fcn.00473973
add esp, 0xc
test eax, eax
je 0x4799f0
push esi
push esi
push esi
push esi
push esi
call fcn.0047251c
add esp, 0x14
push dword [edi*8 + 0x4bdc34]
push ebx
push ebp
call fcn.00473973
add esp, 0xc
test eax, eax
je 0x479a12
push esi
push esi
push esi
push esi
push esi
call fcn.0047251c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00489a0a
add esp, 0xc
jmp 0x479a5a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x479a5a
cmp ebp, 0xffffffff
je 0x479a5a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4bdc34]
push dword [esi]
call fcn.00478df0
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