joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017b0
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x140
mov eax, dword [0x426040]
xor eax, esp
mov dword [esp + 0x13c], eax
fldz
push ebx
push ebp
fst dword [esp + 0x10]
xor eax, eax
mov word [esp + 8], ax
fst dword [esp + 0x14]
push esi
fstp dword [esp + 0x1c]
push 0x104
xor ebp, ebp
call fcn.0040b23a
add esp, 4
push ebp
push 2
mov ebx, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x40193f
fld dword [esp + 0x14]
lea ecx, [esp + 0x20]
fld dword [esp + 0x14]
push ecx
fsubr qword [0x41f3e8]
mov dword [esp + 0x24], 0x128
push esi
fsub qword [0x41f3e0]
fsubp st(1)
fstp dword [esp + 0x1c]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401938
push edi
mov edi, ebx
lea edx, [esp + 0x48]
sub edi, edx
lea eax, [esp + 0x48]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x401845
push ebx
call fcn.0041e2e3
mov ecx, dword [esp + 0x158]
add esp, 4
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401881
test dl, dl
je 0x40187d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401881
add eax, 2
add ecx, 2
test dl, dl
jne 0x401861
xor eax, eax
jmp 0x401886
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4018cb
fld dword [esp + 0x1c]
fmul qword [0x41f3d8]
fstp dword [esp + 0x1c]
cmp dword [esp + 0x158], eax
je 0x4018e8
mov eax, dword [esp + 0x2c]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4018c7
push 0xffffffffffffffff
push esi
inc ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x2c], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401841
jmp 0x401937
mov edx, dword [0x4237c4]
sub edx, 0x7e9362f4
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
inc ebp
fld dword [esp + 0x20]
dec dword [0x4237c4]
fsub qword [0x41f3d0]
fucompp
fnstsw ax
test ah, 0x44
jp 0x40192b
mov ax, word [0x4256f8]
movzx ecx, word [esp + 0x10]
cwde
add ecx, eax
mov word [esp + 0x10], cx
jmp 0x401937
fld dword [0x41f3c8]
fstp dword [0x4249c4]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040b02e
mov ecx, dword [esp + 0x14c]
add esp, 4
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b675
add esp, 0x140
ret
Function at 0x401ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
fldz
push ebx
fst qword [esp + 0x10]
push esi
fldz
push edi
mov edi, dword [ebp + 0xc]
fstp dword [esp + 0x10]
push edi
fstp qword [esp + 0x14]
call fcn.0040b23a
mov ebx, dword [ebp + 8]
fld qword [0x41f420]
push edi
fstp qword [esp + 0x18]
mov esi, eax
push ebx
push esi
call fcn.0040b310
fld qword [0x4236d0]
fsub qword [0x41f418]
add esp, 0x10
add edi, esi
mov ecx, esi
fadd qword [0x4249d8]
fcomp qword [0x41f410]
fnstsw ax
fld qword [0x4236d0]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [0x4236d0]
test ah, 0x44
jnp 0x401b36
movzx eax, word [0x425614]
sub eax, 0x46f165d2
mov word [0x425614], ax
fsubr qword [0x423c50]
mov edx, dword [0x427844]
add edx, ebx
fstp qword [0x423c50]
fld qword [0x423c50]
fsub qword [0x41f408]
fld qword [0x4233a0]
fadd qword [0x41f400]
fsub qword [0x41f3f8]
fcompp
fnstsw ax
test ah, 5
jp 0x401b88
mov eax, dword [0x423710]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd qword [esp + 0x18]
fstp qword [esp + 0x18]
jmp 0x401b96
fld qword [0x423758]
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
sub edx, 0x423004
cmp esi, edi
je 0x401be0
mov eax, 1
jmp 0x401bb0
add dword [0x424940], eax
mov ebx, dword [0x424940]
sub ebx, 0xa577bbe
mov dword [esp + 0x10], ebx
fild dword [esp + 0x10]
fadd dword [0x423c7c]
mov bl, byte [edx]
xor byte [ecx], bl
add ecx, eax
add edx, eax
fstp qword [esp + 0x18]
cmp ecx, edi
jne 0x401bb0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
fldz
xor ecx, ecx
fstp dword [esp]
xor eax, eax
mov word [esp], ax
mov dword [esp], ecx
fld dword [0x423790]
fmul qword [0x41f448]
mov edx, 1
mov dword [esp + 0x14], 0x44
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], edx
fstp dword [0x423790]
fld qword [0x423cd0]
mov word [esp + 0x46], ax
fcomp qword [0x41f440]
mov dword [esp + 0x48], ecx
fnstsw ax
fld qword [0x423cd0]
fsub qword [0x41f358]
fstp qword [0x423cd0]
test ah, 5
jp 0x401e15
mov ax, word [0x423430]
add word [0x423430], dx
cwde
cmp eax, 0x99be6ba2
je 0x401e21
mov ax, word [0x424a04]
push esi
mov si, word [0x4236a8]
movsx esi, si
cwde
add eax, esi
mov esi, dword [0x4237fc]
lea eax, [esi + eax + 0x5d7340b7]
mov dword [0x4237fc], eax
dec word [0x424a04]
pop esi
jmp 0x401e21
fld qword [0x41f438]
fstp qword [0x4230e8]
mov word [esp + 0x44], dx
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push 8
push ecx
push ecx
push ecx
mov ecx, dword [esp + 0x80]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x58
ret
Function at 0x402ab0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
fldz
push ebp
mov dword [esp + 4], 0
fstp qword [esp + 0xc]
fldz
push 0x2e
push 0x4255c0
fstp dword [esp + 0xc]
call fcn.00401ab0
add esp, 8
mov ebp, eax
lea eax, [esp + 8]
push eax
push ebp
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402b4a
push esi
push edi
push 0x34
push 0x424a2c
call fcn.00401ab0
mov edx, dword [esp + 0x28]
mov esi, eax
mov eax, edx
add esp, 8
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b10
mov ecx, dword [esp + 0x10]
sub eax, edi
push eax
push edx
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edx, edx
push 0x34
push edx
mov word [esp + 0x14], dx
push esi
mov dword [esp + 0x18], edx
call fcn.0040b0c0
push esi
call fcn.0040b02e
add esp, 0x10
pop edi
pop esi
fld qword [esp + 0xc]
xor eax, eax
fmul qword [0x41f4b0]
push 0x2e
push eax
push ebp
fstp qword [esp + 0x18]
mov word [esp + 0x10], ax
mov dword [esp + 0x10], eax
call fcn.0040b0c0
push ebp
call fcn.0040b02e
mov ecx, dword [esp + 0x18]
add esp, 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
add esp, 0x10
ret
Function at 0x403940
Capabilities:
Write file on windows

Disassembly:
push ecx
fldz
push ebx
push esi
fstp dword [esp + 8]
push edi
xor eax, eax
xor ecx, ecx
push 3
mov word [esp + 0x10], ax
push 0x423700
mov word [esp + 0x14], cx
call fcn.00401ab0
mov ebx, dword [esp + 0x1c]
mov esi, eax
push esi
push ebx
call fcn.0040bd47
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x403995
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
call fcn.0040bd47
mov edi, eax
add esp, 8
test edi, edi
je 0x4039e9
push edi
push 1
lea edx, [esp + 0x20]
push 4
push edx
call fcn.0040bc01
push edi
call fcn.0040ba23
fld dword [0x42348c]
fsub qword [0x41f358]
add esp, 0x14
fstp dword [0x42348c]
mov ax, word [0x4233f0]
movsx ecx, ax
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fstp dword [esp + 0xc]
fld dword [0x42348c]
fsubr dword [esp + 0xc]
call fcn.0040b140
mov word [0x4233f0], ax
xor edx, edx
xor eax, eax
mov word [esp + 0xc], dx
mov word [esi], ax
push esi
mov dword [esp + 0x10], edx
mov byte [esi + 2], al
call fcn.0040b02e
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40b675
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426040]
jne 0x40b67f
repz ret
jmp fcn.0040f8a6

Function at 0x4166c4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040fa26
and dword [ebp - 4], 0
cmp dword [0x4282b4], 0
mov ebx, eax
jne 0x416775
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x416826
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420b18
push edi
call esi
test eax, eax
je 0x416826
push eax
call fcn.0040f9b4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4282b4], eax
call esi
push eax
call fcn.0040f9b4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4282b8], eax
call esi
push eax
call fcn.0040f9b4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4282bc], eax
call esi
push eax
call fcn.0040f9b4
pop ecx
mov dword [0x4282c4], eax
test eax, eax
je 0x416775
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f9b4
pop ecx
mov dword [0x4282c0], eax
mov eax, dword [0x4282c0]
cmp eax, ebx
je 0x4167cd
cmp dword [0x4282c4], ebx
je 0x4167cd
push eax
call fcn.0040fa2f
push dword [0x4282c4]
mov esi, eax
call fcn.0040fa2f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4167cd
test edi, edi
je 0x4167cd
call esi
test eax, eax
je 0x4167c4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4167c4
test byte [ebp - 0xc], 1
jne 0x4167cd
or dword [ebp + 0x10], 0x200000
jmp 0x416806
mov eax, dword [0x4282b8]
cmp eax, ebx
je 0x416806
push eax
call fcn.0040fa2f
pop ecx
test eax, eax
je 0x416806
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x416806
mov eax, dword [0x4282bc]
cmp eax, ebx
je 0x416806
push eax
call fcn.0040fa2f
pop ecx
test eax, eax
je 0x416806
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4282b4]
call fcn.0040fa2f
pop ecx
test eax, eax
je 0x416826
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416828
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x572c80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
push ebx
push esi
push ecx
push edx
mov edi, 0x5c
and edi, 0x887a
mov dword [ebp + 8], edi
mov ebx, dword [ebp - 0x1c]
sub ebx, 0x5e
or dword [0x43f676], ebx
jae 0x4024ac
ror dword [0x43f237], 6
ror dword [0x43f58f], 2
ror dword [0x43f231], 2
imul ebx, ebx, 0x1af6b7
and dword [0x43f50e], ebx
push 0
push 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
dec dword [0x43f5dd]
call esi
mov dword [0x43f4b3], eax
push 0x43f191
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
inc dword [0x43f0f4]
call edi
sub dword [0x43f023], eax
lea eax, [0x43f08a]
push eax
push 0
push 0x43f437
mov ecx, 0x6d6341
sub ecx, 0x29c235
or dword [0x43f103], 0x1d
call dword [ecx]
and dword [0x43f1fe], eax
push eax
push 0x43f490
push esi
push 0
call fcn.004020d4
and dword [0x43f6a3], eax
push 0
push 0x43f0cc
mov eax, dword [sym.imp.ole32.dll_CLSIDFromString]
call eax
add dword [0x43f3e3], eax
push 0
push 0x43f027
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [0x43f46f], eax
push 0
push 0
push 0
mov ecx, 0xd9d4cf
inc dword [0x43f4e8]
sub ecx, 0x96347f
call dword [ecx]
mov dword [0x43f563], eax
push dword [0x43f0bd]
push 0
push dword [0x43f0f4]
push 0x43f154
push ebx
push 0x3bdaa7
call dword [sym.imp.KERNEL32.dll_GetACP]
sub dword [0x43f1cf], eax
push eax
call fcn.0040112c
add dword [0x43f32b], eax
cmp eax, dword [ebp + 0x2c]
pop edx
pop ecx
pop esi
pop ebx
pop edi
sete al
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10054850
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1009f004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov esi, ecx
mov edi, edx
push 0x40
sub edi, esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100548cd
mov eax, dword [ebp + 8]
sub eax, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
cmp edi, 5
jle 0x100548a9
lea eax, [edi - 5]
push eax
lea eax, [esi + 5]
push 0x90
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100928e8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.100928e8
mov esp, ebp
pop ebp
ret
Function at 0x10055f10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
cmp ebx, eax
je 0x10056081
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
movzx eax, byte [ebx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 9]
push esi
push edi
mov edi, dword [edx + 0xc]
mov esi, ebx
xor ecx, eax
mov dword [ebp - 0x1c], edi
movzx eax, byte [ebx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [edx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 4], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
nop word [eax + eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 0xc]
call fcn.100560c0
push 0x2c
push edi
call fcn.10092926
mov edx, dword [ebp - 0x14]
add esp, 8
dec dword [edx + 8]
cmp ebx, dword [ebp - 0x10]
je 0x10055fdd
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x10055f90
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x10056077
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [edi], esi
mov dword [ecx], esi
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x10055ff1
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov dword [edi], eax
jmp 0x10055ff4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], ecx
cmp esi, eax
je 0x10056077
nop
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
mov eax, dword [ebp - 0x1c]
lea eax, [eax + ecx*8]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 0xc]
call fcn.100560c0
push 0x2c
push edi
call fcn.10092926
mov edx, dword [ebp - 0x14]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [edx + 8]
cmp ebx, dword [ebp - 0x10]
je 0x10056088
cmp esi, eax
jne 0x10056047
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
cmp esi, eax
jne 0x10056000
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005f950
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x74]
test eax, eax
je 0x1005f9cd
mov edi, dword [esi + 0x20]
add edi, eax
cmp dword [edi + 8], 6
je 0x1005f970
mov edx, 5
call fcn.1005fb90
mov edx, dword [esi + 8]
mov eax, dword [edx - 0x10]
mov ecx, dword [edx - 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [edx - 8]
mov dword [edx + 8], eax
mov edx, dword [esi + 8]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [edx - 0x10], eax
mov dword [edx - 0xc], ecx
mov eax, dword [edi + 8]
mov dword [edx - 8], eax
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 8]
cmp eax, 0x10
jg 0x1005f9b7
mov edx, dword [esi + 0x2c]
mov ecx, esi
cmp edx, 1
jl 0x1005f9b1
add edx, edx
jmp 0x1005f9b2
inc edx
call fcn.1005fc70
add dword [esi + 8], 0x10
mov ecx, esi
mov edx, dword [esi + 8]
push 1
add edx, 0xffffffe0
call fcn.100605f0
add esp, 4
mov edx, 2
mov ecx, esi
pop edi
pop esi
jmp fcn.1005fb90

Function at 0x1005fb90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x1005fbb3
mov dword [eax + 0x44], edx
mov eax, dword [esi + 0x70]
push 1
add eax, 4
push eax
call dword [sym.imp.VCRUNTIME140.dll_longjmp]
mov eax, dword [esi + 0x10]
mov byte [esi + 6], dl
cmp dword [eax + 0x58], 0
je 0x1005fbd0
call fcn.1005fab0
mov eax, dword [esi + 0x10]
push esi
mov eax, dword [eax + 0x58]
call eax
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x100631c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1009f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x20c], 0
push esi
mov dword [ebp - 0x214], eax
mov ebx, edx
mov dword [ebp - 0x208], eax
mov esi, 0x200
lea eax, [ebp - 0x204]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
lea ecx, [ebp - 0x210]
call fcn.10057ce0
test eax, eax
je 0x1006321e
lea ecx, [ebp - 0x210]
call fcn.10057d50
cmp esi, edi
mov eax, edi
push ebx
cmovbe eax, esi
mov esi, eax
lea eax, [ebp - 0x204]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add dword [ebp - 0x210], eax
add esp, 0x10
sub edi, eax
je 0x10063249
cmp eax, esi
je 0x10063204
lea ecx, [ebp - 0x210]
call fcn.10057ce0
mov esi, dword [ebp - 0x20c]
mov ebx, dword [ebp - 0x208]
cmp esi, 2
jl 0x1006329d
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x40]
jb 0x10063277
mov ecx, ebx
call fcn.100621c0
mov eax, dword [ebx + 8]
mov edx, esi
sub eax, dword [ebx + 0xc]
mov ecx, ebx
sar eax, 4
dec eax
push eax
call fcn.100747d0
shl esi, 4
mov eax, 0x10
sub eax, esi
add esp, 4
add dword [ebx + 8], eax
jmp 0x100632c2
test esi, esi
jne 0x100632c2
mov esi, dword [ebx + 8]
mov edx, 0x10096fb2
push 0
mov ecx, ebx
call fcn.1006e260
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 4
add dword [ebx + 8], 0x10
test edi, edi
mov dword [ebp - 0x20c], 1
pop edi
pop esi
pop ebx
je 0x100632f3
mov ecx, dword [ebp - 0x214]
or edx, 0xffffffff
call fcn.10056450
test eax, eax
jne 0x100632f3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100928e8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.100928e8
mov esp, ebp
pop ebp
ret
Function at 0x100637e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
mov eax, dword [0x1009f004]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov esi, 1
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
sar eax, 4
sub eax, esi
je 0x100638b5
dec eax
mov edx, ebx
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.100561f0
cmp eax, 0x10096918
je 0x100638e4
cmp dword [eax + 8], 3
jne 0x100638e4
test esi, esi
je 0x100638a6
mov edx, ebx
mov ecx, edi
call fcn.100561f0
mov ecx, dword [eax + 8]
cmp ecx, 3
je 0x10063881
cmp ecx, 4
jne 0x100638df
mov ecx, dword [eax]
lea edx, [esp + 0x20]
add ecx, 0x10
call fcn.10068350
test eax, eax
je 0x100638df
movsd xmm0, qword [esp + 0x20]
lea eax, [esp + 0x28]
movsd qword [esp + 0x28], xmm0
mov dword [esp + 0x30], 3
movsd xmm0, qword [eax]
sub esp, 8
movsd qword [esp], xmm0
push str._.14g
push dword [esp + 0x1c]
call fcn.10056c90
add esp, 0x10
test eax, eax
jg 0x1006396b
xor esi, esi
mov eax, dword [esp + 0x1c]
inc ebx
test eax, eax
jne 0x10063816
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
mov eax, dword [edi + 8]
test esi, esi
je 0x10063975
mov dword [eax], 1
mov dword [eax + 8], 1
mov eax, 1
jmp 0x100639b4
xorps xmm0, xmm0
jmp 0x10063885
lea eax, [esp + 0x18]
mov edx, ebx
push eax
mov ecx, edi
call fcn.10056370
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10063946
mov edx, ebx
mov ecx, edi
call fcn.100561f0
cmp eax, 0x10096918
je 0x1006391e
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x1006391e
mov eax, dword [eax*4 + 0x10096bd8]
jmp 0x10063923
mov eax, str.no_value
push eax
push dword [0x10096be8]
push str._s_expected__got__s
push edi
call fcn.10056550
push eax
mov edx, ebx
mov ecx, edi
call fcn.10056cc0
mov eax, dword [esp + 0x28]
add esp, 0x14
test esi, esi
je 0x100638a6
push dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, esi
jne 0x100638a6
mov esi, 1
jmp 0x100638a8
mov dword [eax + 8], 0
add dword [edi + 8], 0x10
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push 0x100972ac
push edi
call fcn.10056550
mov eax, dword [edi + 8]
add esp, 0xc
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mov dword [eax + 8], 3
movsd qword [eax], xmm0
mov eax, 3
add dword [edi + 8], 0x10
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100928e8
mov esp, ebp
pop ebp
ret