joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4124f0
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46e780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x46fb44]
cmp dword [0x472cec], 6
mov ebx, eax
jae 0x41252c
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4125d2
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41254f
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4125d2
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4125c2
test edi, edi
mov dword [ebp - 0xc], 1
je 0x4125a3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x41258e
xor eax, eax
jmp 0x4125a3
lea esi, [eax + eax]
mov eax, esi
call fcn.004411d0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408520
push 4
lea edx, [ebp - 0xc]
push edx
push 4
push 0
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4125de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e3e
mov esp, ebp
pop ebp
ret
Function at 0x412da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x456f72
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46e780]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.00421a7e
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x412de2
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x415030
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x415092
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
cmp esi, 0x400000
mov eax, 0x400000
ja 0x41505f
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x415097
test ecx, ecx
je 0x415090
test esi, esi
ja 0x415050
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x4150b0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x415112
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
cmp esi, 0x400000
mov eax, 0x400000
ja 0x4150df
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x415117
test ecx, ecx
je 0x415110
test esi, esi
ja 0x4150d0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x415480
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x472e40], ecx
add edx, 1
cmp edx, 0x100
jl 0x415482
cmp edx, 0x800
jae 0x41556b
mov edi, edi
mov eax, dword [edx*4 + 0x472a40]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x472e40]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x472e3c], eax
jb 0x415540
mov dword [0x46fec0], 0x417ab0
call fcn.00417c80
test eax, eax
jne 0x415588
mov dword [0x46fec0], 0x417b60
ret
Function at 0x41bb00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x41bb19
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x41bb40
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x41bb5f
jmp 0x41bb50
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41bb5f
add edi, 1
cmp edi, edx
jb 0x41bb50
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x41bc75
cmp ecx, 3
jbe 0x41bb95
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x1c], eax
je 0x41bbd3
cmp cl, 0xff
je 0x41bbd3
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x41bb40
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x41bb78
movzx ecx, byte [ebp + 0x458844]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x45883c], 0
mov cl, byte [ebx + 4]
je 0x41bbbf
test cl, cl
je 0x41bbbf
cmp cl, 0xff
jne 0x41bb78
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
add eax, 1
jmp 0x41bb40
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x41bbfe
lea ebx, [edx + eax]
add ebx, esi
jmp 0x41bc04
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x41bc46
movzx esi, byte [ebp + 0x458844]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x41bc29
cmp dl, 0xff
jne 0x41bc42
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x41bbf0
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
sub dl, 1
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41bb40
cmp ecx, 3
pop edi
pop esi
pop ebx
jbe 0x41bc88
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
add ecx, 0xffffffff
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret

Function at 0x421a19
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 0x421a5c
call fcn.00427c86
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x421a5c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x421a77
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004215d3
test ebx, ebx
mov esi, eax
je 0x421a75
test edi, edi
je 0x421a75
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x424492
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4553d0
call fcn.0043e1ba
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00427c86
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4244dd
call fcn.00427c86
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4244ee
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4244fb
or eax, 0xffffffff
jmp 0x424657
mov ecx, esi
call fcn.00423fd9
mov dword [ebp - 0x14], eax
call fcn.0041eee4
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x424579
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x424579
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x424579
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0041da71
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x424579
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x424579
mov ecx, ebx
call fcn.00423176
test eax, eax
je 0x424579
push 0
mov ecx, ebx
call fcn.00423191
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004208ff
push dword [ebp - 0x14]
call fcn.0041ee3c
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0042429a
xor edi, edi
cmp eax, edi
je 0x4245d6
test byte [esi + 0x3c], 0x10
je 0x4245c0
push 4
pop edi
mov ecx, esi
call fcn.00423033
test ax, 0x100
je 0x4245b6
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041e9d2
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4245d6
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00423364
or dword [ebp - 4], 0xffffffff
jmp 0x424601
cmp dword [ebp - 0x28], edi
je 0x42460f
push 1
mov ecx, ebx
call fcn.00423191
cmp dword [ebp - 0x2c], edi
je 0x42461f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x424638
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x424638
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00424013
cmp dword [esi + 0x58], edi
je 0x424654
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043e25f
ret
Function at 0x424d3d
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x46e780]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x424ddb
push 0x45a1a4
push 4
push eax
call fcn.0043e94e
push eax
call fcn.004027b0
add esp, 0x10
push ebx
push edi
call fcn.0043e5a2
mov edi, dword [eax]
call fcn.0043e5a2
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0043e548
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0043e5a2
cmp dword [eax], ebx
je 0x424df2
call fcn.0043e5a2
push dword [eax]
call fcn.0041c75a
pop ecx
jmp 0x424df9
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x424d8c
jmp 0x424e6b
call fcn.0043e5a2
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x424e67
cmp dword [ebp - 0x40], esi
jae 0x424e67
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0043c6b0
add esp, 0xc
push 0x459f04
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x424e59
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x424e59
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x424e59
push ebx
push ebx
push esi
jmp 0x424e5f
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x424e69
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.00439e3e
add ebp, 0x1f4
leave
ret
Function at 0x426900
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x426909
xor eax, eax
jmp 0x426972
cmp dword [esp + 8], 0
jne 0x426915
call fcn.00423c33
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0043f54d
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x426950
push dword [esi + 0x10]
call fcn.0043f253
test eax, eax
pop ecx
jne 0x426950
mov esi, dword [esi + 0xc]
call fcn.0043e5b5
push esi
push dword [eax]
push 1
call fcn.0042db4e
push dword [esi + 0x10]
call fcn.0043f282
test eax, eax
pop ecx
je 0x42696f
push dword [esi + 0x10]
call fcn.0043f1a7
push eax
call fcn.004027b0
pop ecx
pop ecx
jmp 0x42693e
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x42697b
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x426985
call fcn.00423c33
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0043f6c7
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4269b2
mov esi, dword [esi + 0xc]
call fcn.0043e5b5
push esi
push dword [eax]
push 1
call fcn.0042db4e
pop esi
ret 8

Function at 0x42816c
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 0x4281b2
call fcn.00427c86
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4281b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4281f5
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 0x4281de
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 0x4281de
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4281f2
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 0x429dee
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 0x429e17
call fcn.00427c86
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 0x429e3a
push eax
push dword [esi + 4]
call fcn.00429d79
push esi
push eax
mov ecx, 0x471afc
call fcn.00429a4c
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x42b3f9
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 0x42b427
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42b445
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042b363
jmp 0x42b445
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42b445
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042b363
test edi, edi
mov eax, edi
jne 0x42b42f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x471d90]
test ecx, ecx
je 0x42b508
jmp 0x42b3f8
ret 8

Function at 0x439e3e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e780]
jne 0x439e48
repz ret
jmp fcn.0044246c
Function at 0x43f2b1
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 0x43f2ee
cmp dword [ebp + 0x14], edi
je 0x43f2ee
cmp ecx, edi
jne 0x43f2f5
call fcn.0043e5a2
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043ae29
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43f309
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43f32a
cmp ebx, 0xffffffff
je 0x43f319
push ebx
push edi
push ecx
call fcn.0043c6b0
add esp, 0xc
cmp esi, edi
je 0x43f2d6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43f2d6
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43f346
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43f34d
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43f43e
test word [esi + 0xc], 0x10c
je 0x43f3a1
mov eax, dword [esi + 4]
test eax, eax
je 0x43f3a1
jl 0x43f49f
cmp ebx, eax
mov edi, ebx
jb 0x43f372
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43f446
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00439eff
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 0x43f436
cmp ebx, dword [ebp - 0xc]
jb 0x43f40e
cmp dword [ebp - 0xc], 0
je 0x43f3cb
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43f3c0
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43f3c7
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43f3d6
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43f3d6
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43f472
push eax
push dword [ebp - 8]
push esi
call fcn.0043eff4
pop ecx
push eax
call fcn.0044bb48
add esp, 0xc
test eax, eax
je 0x43f4b1
cmp eax, 0xffffffff
je 0x43f49f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43f436
push esi
call fcn.0044b467
cmp eax, 0xffffffff
pop ecx
je 0x43f4a3
cmp dword [ebp - 4], 0
je 0x43f472
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 0x43f355
mov eax, dword [ebp + 0x14]
jmp 0x43f2f0
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43f45d
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043c6b0
add esp, 0xc
call fcn.0043e5a2
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43f2e6
cmp dword [ebp + 0xc], 0xffffffff
je 0x43f488
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043c6b0
add esp, 0xc
call fcn.0043e5a2
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43f2e6
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43f2f0
or dword [esi + 0xc], 0x10
jmp 0x43f4a3
Function at 0x44127c
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 + 0x46e910]
je 0x441297
inc edi
cmp edi, 0x17
jb 0x441288
cmp edi, 0x17
jae 0x441417
push ebp
push 3
call fcn.0044e4e4
cmp eax, 1
pop ecx
je 0x4413e3
push 3
call fcn.0044e4e4
test eax, eax
pop ecx
jne 0x4412cb
cmp dword [0x46e748], 1
je 0x4413e3
cmp ebx, 0xfc
je 0x441416
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x471ea0
push ebp
call fcn.00445a62
add esp, 0xc
test eax, eax
je 0x441301
push esi
push esi
push esi
push esi
push esi
call fcn.0043ad2d
add esp, 0x14
push 0x104
mov esi, 0x471eb9
push esi
push 0
mov byte [0x471fbd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x441345
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00445a62
add esp, 0xc
test eax, eax
je 0x441345
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043ad2d
add esp, 0x14
push esi
call fcn.00445ad0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44138a
push esi
call fcn.00445ad0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4721b4
push 0x45c9c4
sub ecx, eax
push ecx
push eax
call fcn.004476d6
add esp, 0x14
test eax, eax
je 0x44138a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043ad2d
add esp, 0x14
jmp 0x44138c
xor esi, esi
push 0x45c9c0
push ebx
push ebp
call fcn.0044761c
add esp, 0xc
test eax, eax
je 0x4413ac
push esi
push esi
push esi
push esi
push esi
call fcn.0043ad2d
add esp, 0x14
push dword [edi*8 + 0x46e914]
push ebx
push ebp
call fcn.0044761c
add esp, 0xc
test eax, eax
je 0x4413ce
push esi
push esi
push esi
push esi
push esi
call fcn.0043ad2d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044e327
add esp, 0xc
jmp 0x441416
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x441416
cmp ebp, 0xffffffff
je 0x441416
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46e914]
push dword [esi]
call fcn.00445ad0
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