joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4108c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b4b9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x49b7c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov esi, 1
push 0x48c0d9
mov ecx, edi
mov dword [esp + 0x3c], esi
call fcn.00402aa0
sub esp, 0x1c
lea eax, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [esp + 0x24], esi
push eax
lea esi, [esp + 0x7c]
call fcn.00402000
mov ecx, esi
lea esi, [esp + 0x30]
call fcn.00410970
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [esp + 0x44], 2
call fcn.00402210
mov ecx, esi
call fcn.00402040
lea ecx, [esp + 0x40]
call fcn.00402040
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x411eb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47ba11
mov eax, dword fs:[0]
push eax
mov eax, dword [0x49b7c0]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.AMF3Serializer.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x413cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b960
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x49b7c0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov eax, dword [0x49b7c0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 1
call fcn.00411e00
mov eax, dword [esi + 4]
add eax, dword [esi + 0xc]
push edi
mov byte [eax], 0xc
add dword [esi + 0xc], 1
lea ecx, [esp + 0x14]
call fcn.0040a3c0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0
call fcn.00402000
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 2
call fcn.00402040
mov eax, dword [esp + 0x40]
add eax, eax
or eax, 1
mov ecx, esi
call fcn.00413e20
test al, al
jne 0x413d68
lea ecx, [esp + 0x2c]
call fcn.00402040
xor al, al
jmp 0x413d8f
sub esp, 0x1c
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00402000
mov ecx, esi
call fcn.00411d10
lea ecx, [esp + 0x2c]
mov bl, al
call fcn.00402040
mov al, bl
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0043bdb2
add esp, 0x4c
ret
Function at 0x416d80
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x416de2
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 0x416daf
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 0x416de7
test ecx, ecx
je 0x416de0
test esi, esi
ja 0x416da0
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 0x416e00
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x416e62
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 0x416e2f
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 0x416e67
test ecx, ecx
je 0x416e60
test esi, esi
ja 0x416e20
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 0x4171d0
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 + 0x4a0700], ecx
add edx, 1
cmp edx, 0x100
jl 0x4171d2
cmp edx, 0x800
jae 0x4172bb
mov edi, edi
mov eax, dword [edx*4 + 0x4a0300]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4a0700]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x4a06fc], eax
jb 0x417290
mov dword [0x49d420], 0x419800
call fcn.004199d0
test eax, eax
jne 0x4172d8
mov dword [0x49d420], 0x4198b0
ret
Function at 0x41d850
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 0x41d869
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 0x41d890
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x41d8af
jmp 0x41d8a0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41d8af
add edi, 1
cmp edi, edx
jb 0x41d8a0
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x41d9c5
cmp ecx, 3
jbe 0x41d8e5
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x1c], eax
je 0x41d923
cmp cl, 0xff
je 0x41d923
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x41d890
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x41d8c8
movzx ecx, byte [ebp + 0x47d934]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x47d92c], 0
mov cl, byte [ebx + 4]
je 0x41d90f
test cl, cl
je 0x41d90f
cmp cl, 0xff
jne 0x41d8c8
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
add eax, 1
jmp 0x41d890
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 0x41d94e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x41d954
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x41d996
movzx esi, byte [ebp + 0x47d934]
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 0x41d979
cmp dl, 0xff
jne 0x41d992
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x41d940
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 0x41d890
cmp ecx, 3
pop edi
pop esi
pop ebx
jbe 0x41d9d8
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 0x423146
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 0x423189
call fcn.004289da
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x423189
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4231a4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00422d00
test ebx, ebx
mov esi, eax
je 0x4231a2
test edi, edi
je 0x4231a2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4262ea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4780c9
call fcn.00442c75
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.004289da
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x426335
call fcn.004289da
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 0x426346
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x426353
or eax, 0xffffffff
jmp 0x4264af
mov ecx, esi
call fcn.00425e3c
mov dword [ebp - 0x14], eax
call fcn.004205f7
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4263d1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4263d1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4263d1
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0041f1b8
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4263d1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4263d1
mov ecx, ebx
call fcn.0042491f
test eax, eax
je 0x4263d1
push 0
mov ecx, ebx
call fcn.0042493a
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042202c
push dword [ebp - 0x14]
call fcn.0042054f
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004260f2
xor edi, edi
cmp eax, edi
je 0x42642e
test byte [esi + 0x3c], 0x10
je 0x426418
push 4
pop edi
mov ecx, esi
call fcn.004247dc
test ax, 0x100
je 0x42640e
push 5
pop edi
push edi
mov ecx, esi
call fcn.004200e5
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x42642e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00424b0d
or dword [ebp - 4], 0xffffffff
jmp 0x426459
cmp dword [ebp - 0x28], edi
je 0x426467
push 1
mov ecx, ebx
call fcn.0042493a
cmp dword [ebp - 0x2c], edi
je 0x426477
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x426490
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x426490
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.00425e76
cmp dword [esi + 0x58], edi
je 0x4264ac
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00442d1a
ret
Function at 0x426519
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x426539
cmp dword [edi + 0x54], 0
jne 0x426539
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004289da
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004264e0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x426a5e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x49b7c0]
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 0x426a9b
push 0x47f288
push 4
push eax
call fcn.0043e79b
push eax
call fcn.00403970
add esp, 0x10
jmp 0x426aad
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x426b18
push edi
call fcn.00441f41
mov edi, dword [eax]
call fcn.00441f41
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.00442fac
add esp, 0x18
mov ebx, eax
call fcn.00441f41
cmp dword [eax], 0
je 0x426af8
call fcn.00441f41
push dword [eax]
call fcn.0041de98
pop ecx
jmp 0x426aff
call fcn.00441f41
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x426b18
cmp ebx, esi
jae 0x426b18
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x426b1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bdb2
leave
ret
Function at 0x428ec0
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 0x428f06
call fcn.004289da
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x428f06
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x428f49
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 0x428f32
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 0x428f32
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x428f46
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 0x42ad5a
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 0x42ad83
call fcn.004289da
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 0x42ada6
push eax
push dword [esi + 4]
call fcn.0042ace5
push esi
push eax
mov ecx, 0x49f054
call fcn.0042a9b8
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x42ba93
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x42ba9c
xor eax, eax
jmp 0x42bb05
cmp dword [esp + 8], 0
jne 0x42baa8
call fcn.004253dc
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0044523d
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x42bae3
push dword [esi + 0x10]
call fcn.00444f43
test eax, eax
pop ecx
jne 0x42bae3
mov esi, dword [esi + 0xc]
call fcn.00441f54
push esi
push dword [eax]
push 1
call fcn.004300bc
push dword [esi + 0x10]
call fcn.00444f72
test eax, eax
pop ecx
je 0x42bb02
push dword [esi + 0x10]
call fcn.00444e97
push eax
call fcn.00403970
pop ecx
pop ecx
jmp 0x42bad1
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x42bb0e
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x42bb18
call fcn.004253dc
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004409dc
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x42bb45
mov esi, dword [esi + 0xc]
call fcn.00441f54
push esi
push dword [eax]
push 1
call fcn.004300bc
pop esi
ret 8
Function at 0x42cac9
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 0x42caf7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42cb15
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042ca33
jmp 0x42cb15
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42cb15
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042ca33
test edi, edi
mov eax, edi
jne 0x42caff
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x49f090]
test ecx, ecx
je 0x42cbd8
jmp 0x42cac8
ret 8

Function at 0x43bdb2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49b7c0]
jne 0x43bdbc
repz ret
jmp fcn.00448c7c
Function at 0x444fa1
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 0x444fde
cmp dword [ebp + 0x14], edi
je 0x444fde
cmp ecx, edi
jne 0x444fe5
call fcn.00441f41
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043c2cc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x444ff9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44501a
cmp ebx, 0xffffffff
je 0x445009
push ebx
push edi
push ecx
call fcn.0043be90
add esp, 0xc
cmp esi, edi
je 0x444fc6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x444fc6
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x445036
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44503d
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44512e
test word [esi + 0xc], 0x10c
je 0x445091
mov eax, dword [esi + 4]
test eax, eax
je 0x445091
jl 0x44518f
cmp ebx, eax
mov edi, ebx
jb 0x445062
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x445136
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043bdc1
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 0x445126
cmp ebx, dword [ebp - 0xc]
jb 0x4450fe
cmp dword [ebp - 0xc], 0
je 0x4450bb
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4450b0
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4450b7
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4450c6
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4450c6
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x445162
push eax
push dword [ebp - 8]
push esi
call fcn.00444ce4
pop ecx
push eax
call fcn.00441dc1
add esp, 0xc
test eax, eax
je 0x4451a1
cmp eax, 0xffffffff
je 0x44518f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x445126
push esi
call fcn.0045059d
cmp eax, 0xffffffff
pop ecx
je 0x445193
cmp dword [ebp - 4], 0
je 0x445162
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 0x445045
mov eax, dword [ebp + 0x14]
jmp 0x444fe0
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44514d
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043be90
add esp, 0xc
call fcn.00441f41
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x444fd6
cmp dword [ebp + 0xc], 0xffffffff
je 0x445178
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043be90
add esp, 0xc
call fcn.00441f41
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x444fd6
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x444fe0
or dword [esi + 0xc], 0x10
jmp 0x445193
Function at 0x44667c
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 + 0x49bb70]
je 0x446697
inc edi
cmp edi, 0x17
jb 0x446688
cmp edi, 0x17
jae 0x446817
push ebp
push 3
call fcn.00453eb4
cmp eax, 1
pop ecx
je 0x4467e3
push 3
call fcn.00453eb4
test eax, eax
pop ecx
jne 0x4466cb
cmp dword [0x49b764], 1
je 0x4467e3
cmp ebx, 0xfc
je 0x446816
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x49f4b8
push ebp
call fcn.00448f72
add esp, 0xc
test eax, eax
je 0x446701
push esi
push esi
push esi
push esi
push esi
call fcn.0043c1d0
add esp, 0x14
push 0x104
mov esi, 0x49f4d1
push esi
push 0
mov byte [0x49f5d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x446745
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00448f72
add esp, 0xc
test eax, eax
je 0x446745
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043c1d0
add esp, 0x14
push esi
call fcn.0043c0e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44678a
push esi
call fcn.0043c0e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x49f7cc
push 0x481c2c
sub ecx, eax
push ecx
push eax
call fcn.0044ce22
add esp, 0x14
test eax, eax
je 0x44678a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043c1d0
add esp, 0x14
jmp 0x44678c
xor esi, esi
push 0x481c28
push ebx
push ebp
call fcn.0044cdb1
add esp, 0xc
test eax, eax
je 0x4467ac
push esi
push esi
push esi
push esi
push esi
call fcn.0043c1d0
add esp, 0x14
push dword [edi*8 + 0x49bb74]
push ebx
push ebp
call fcn.0044cdb1
add esp, 0xc
test eax, eax
je 0x4467ce
push esi
push esi
push esi
push esi
push esi
call fcn.0043c1d0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00453cf7
add esp, 0xc
jmp 0x446816
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x446816
cmp ebp, 0xffffffff
je 0x446816
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x49bb74]
push dword [esi]
call fcn.0043c0e0
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