joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402520
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push ebx
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402553
mov eax, ebx
call fcn.00403800
cmp eax, edi
jne 0x402553
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x200000
call fcn.0040b149
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
push ebp
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], 0x200000
call fcn.00405e50
add esp, 8
test eax, eax
je 0x40261e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040b71a
add esp, 4
call fcn.0040b727
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x41ff88]
fmul qword [0x41ffb0]
fadd qword [0x41ffa8]
call fcn.00417740
mov esi, dword [esp + 0x14]
lea ebx, [esi + ebp]
mov edi, eax
call fcn.00403a30
add edi, esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
call fcn.0040aad0
mov esi, eax
cmp esi, 0xffffffff
je 0x40261c
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
cmp eax, edi
jne 0x4025fb
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
jne 0x40261c
push ebp
mov esi, ebx
call fcn.0040b749
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor esi, esi
push ebp
call fcn.0040b749
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x402b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x434
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, dword [esp + 0x438]
push ebp
push esi
push edi
push eax
mov dword [esp + 0x14], ecx
call fcn.0040a210
add esp, 4
test eax, eax
mov dword [esp + 0xc], eax
jne 0x402d66
push 0x206
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x34], ax
call fcn.0040ef00
add esp, 0xc
push 0x206
lea edx, [esp + 0x236]
push 0
push edx
mov word [esp + 0x23c], 0
call fcn.0040ef00
add esp, 0xc
lea esi, [esp + 0x28]
call fcn.00402ee0
push 0x41dc18
mov eax, esi
push 0x104
push eax
call fcn.0040ab8d
add esp, 0xc
xor eax, eax
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov ebp, 0x4247a8
cmp word [ebp], 0
je 0x402ce6
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x234]
push 0x104
push edx
call fcn.0040ac07
add esp, 0xc
push ebp
lea eax, [esp + 0x234]
push 0x104
push eax
call fcn.0040ab8d
lea ecx, [esp + 0x23c]
add esp, 0xc
push ecx
lea edi, [esp + 0x18]
call fcn.00405420
add esp, 4
test eax, eax
je 0x402ce6
mov eax, 0x14
lea ecx, [ebp + 0x104]
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x402c7f
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x402c67
test eax, eax
je 0x402cdc
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x402cce
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x402cdc
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x402cce
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x402cdc
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x402cce
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x402cdc
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x402cdc
test esi, esi
mov eax, 1
jg 0x402cde
or eax, 0xffffffff
jmp 0x402cde
xor eax, eax
test eax, eax
jne 0x402ce6
mov word [ebp], ax
add ebp, 0x118
cmp ebp, 0x424d20
jl 0x402c03
mov edi, dword [esp + 0x444]
mov ebp, dword [esp + 0x10]
mov esi, 0x4247a8
cmp word [esi], 0
je 0x402d25
mov eax, dword [esi + 0x100]
push edi
push ebp
mov ecx, esi
mov dword [0x42479c], eax
call fcn.0040a410
add esp, 8
add esi, 0x118
cmp esi, 0x424d20
jl 0x402d08
push 0x4253e8
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call fcn.0040ab8d
add esp, 0xc
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402d62
mov dword [esp + 0xc], 2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040ab4e
add esp, 0x434
ret
Function at 0x402f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.0040b727
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x41ff88]
fadd qword [0x41ffa0]
call fcn.00417740
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x4030a0
call fcn.0040b727
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x41ff88]
fmul qword [0x41ff98]
fadd qword [0x41ff90]
call fcn.00417740
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x403088
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x403079
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403070
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x403037
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0x4030b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41dd58
mov edi, eax
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x403123
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.0040b9d2
push esi
mov edi, eax
push 0
push edi
call fcn.0040ef00
push esi
push ebp
push edi
call fcn.004100b0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4032b0
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], eax
xor eax, eax
mov edi, edx
xor ebx, ebx
push 0x288
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], 0xffffffff
mov word [esp + 0x30], bx
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
xor ebp, ebp
call fcn.0040b149
add esp, 4
lea edx, [esp + 0x1c]
mov esi, eax
push edx
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x288
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40334c
push esi
call fcn.0040b749
mov eax, dword [esp + 0x20]
push eax
call fcn.0040b149
add esp, 8
mov dword [esp + 0x18], eax
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x403432
cmp esi, ebx
mov eax, esi
mov dword [esp + 0x14], esi
je 0x403432
jmp 0x403378
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
add dword [esp + 0x10], 1
cmp edi, ebx
je 0x403394
mov edx, dword [eax + 0x194]
mov dword [edi], edx
mov cx, word [eax + 0x198]
mov word [edi + 4], cx
lea edi, [eax + 0x1ac]
cmp edi, ebx
je 0x403420
lea esi, [edi + 4]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4033b0
sub eax, edx
mov ecx, eax
cmp ecx, 0x10
jle 0x4033c7
mov ecx, 0x10
xor eax, eax
cmp ecx, ebx
jl 0x4033e7
cmp eax, ecx
jne 0x4033d6
mov word [esp + eax*2 + 0x2c], bx
movsx dx, byte [esi + eax]
mov word [esp + eax*2 + 0x2c], dx
add eax, 1
cmp eax, ecx
jle 0x4033cf
lea eax, [esp + 0x2c]
push eax
call fcn.00403500
add esp, 4
test eax, eax
je 0x40340f
mov edx, dword [esp + 0x28]
mov eax, dword [edx + ebp*4]
lea ecx, [esp + 0x2c]
push ecx
push 0x10
push eax
call fcn.0040ac07
add esp, 0xc
mov edi, dword [edi]
add ebp, 1
cmp edi, ebx
jne 0x4033a2
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ebp, ebx
jg 0x403432
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x403370
cmp esi, ebx
mov ecx, dword [esp + 0x24]
mov dword [ecx], ebp
je 0x403445
push esi
call fcn.0040b749
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ab4e
add esp, 0x40
ret
Function at 0x403700
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0040ef00
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4037d9
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x4037a5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40377e
cmp word [esp + 0x118], 4
jb 0x4037d9
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ab4e
add esp, 0x120
ret
cmp eax, 2
jae 0x403788
cmp eax, 1
jne 0x4037d9
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ab4e
add esp, 0x120
ret
cmp eax, 6
jne 0x4037d9
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4037cf
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ab4e
add esp, 0x120
ret
cmp eax, 1
jne 0x4037d9
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040ab4e
add esp, 0x120
ret

Function at 0x403800
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403834
or eax, eax
or edx, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x40384d
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret

Function at 0x403990
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.0040ef00
add esp, 0xc
cmp dword [0x4230c0], 3
jne 0x4039f1
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc18
lea edx, [esp + 4]
push 0x104
push edx
call fcn.0040ab8d
add esp, 0xc
jmp 0x403a00
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea ecx, [esp + 4]
push ecx
push 0x41ddbc
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040ab4e
add esp, 0x20c
ret
Function at 0x403ac0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x41ddd0
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0040c1e9
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.0040bdd4
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.0040c1a0
add esp, 0x14
test eax, eax
je 0x403b4b
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403c4e
mov eax, 0x423680
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403b80
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403ba0
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403bb4
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040b9d2
push edi
mov esi, eax
push 0
push esi
call fcn.0040ef00
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x423680
push edi
push esi
call fcn.0040c1cd
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403c05
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x41dddc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x403c4c
push esi
call fcn.0040b7d7
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.0040ab4e
add esp, 0x314
ret

Function at 0x403c70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
je 0x403cc1
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x403e90
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x403fae
push 0xc00
call fcn.0040b9d2
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403fa1
mov eax, dword [esi + 0x3c]
test eax, eax
mov ecx, dword [esi + 0x38]
jl 0x403f09
jg 0x403efd
test ecx, ecx
jbe 0x403f09
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x403f0d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x403f37
jg 0x403f23
cmp ecx, edx
jbe 0x403f37
mov ebx, dword [esi + 0xd0]
mov ebp, dword [esi + 0xd4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x15c]
cmp eax, edi
mov ecx, dword [esi + 0x158]
jl 0x403f61
jg 0x403f4d
cmp ecx, edx
jbe 0x403f61
mov ebx, dword [esi + 0x160]
mov ebp, dword [esi + 0x164]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
cmp eax, edi
mov ecx, dword [esi + 0x1e8]
jl 0x403f8b
jg 0x403f77
cmp ecx, edx
jbe 0x403f8b
mov ebx, dword [esi + 0x1f0]
mov ebp, dword [esi + 0x1f4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00417610
mov dword [esp + 0x10], eax
test esi, esi
je 0x403fae
push esi
call fcn.0040b7d7
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x403ff0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, 0xffffffff
push edi
mov dword [esp + 0x14], ebp
je 0x404212
push 0x400
call fcn.0040b9d2
add esp, 4
push 0x400
mov ebx, eax
push ebp
push ebx
mov dword [esp + 0x24], ebx
call fcn.0040ef00
add esp, 0xc
push esi
call fcn.00403e90
add esp, 4
push ebx
push eax
call fcn.00403c70
add esp, 8
test eax, eax
je 0x404205
lea edi, [ebx + 4]
mov eax, 4
mov ecx, 0x41de20
mov edx, edi
mov ebp, dword [edx]
cmp ebp, dword [ecx]
jne 0x40406c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x404054
test eax, eax
je 0x4040d5
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x4040bb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4040d1
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x4040bb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4040d1
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x4040bb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4040d1
movzx eax, byte [ecx]
movzx ebx, byte [edx]
sub ebx, eax
je 0x4040d1
mov ebp, dword [esp + 0x14]
test ebx, ebx
mov ebx, dword [esp + 0x18]
mov eax, 1
jg 0x4040db
or eax, 0xffffffff
jmp 0x4040db
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
xor eax, eax
test eax, eax
jne 0x404105
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
jmp 0x4040f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4040f0
sub eax, edx
sar eax, 1
jne 0x4041f1
lea ecx, [esp + 0x1c]
push ecx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push 0x400
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0x3c00
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404205
mov eax, 4
mov ecx, 0x41de20
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x40416e
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x404156
test eax, eax
je 0x4041cb
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4041bd
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4041cb
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4041bd
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4041cb
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4041bd
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4041cb
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x4041cb
test esi, esi
mov eax, 1
jg 0x4041cd
or eax, 0xffffffff
jmp 0x4041cd
xor eax, eax
test eax, eax
jne 0x404205
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4041e0
sub eax, edx
sar eax, 1
je 0x404205
mov edi, dword [esp + 0x34]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebp, 1
test ebx, ebx
je 0x404212
push ebx
call fcn.0040b7d7
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x404220
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.0040ef00
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx edx, word [esp + 8]
sub edx, 0x41
push edx
lea ebx, [esp + 8]
call fcn.00403d80
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00403cd0
cmp eax, 0xffffffff
jne 0x4042a3
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040ab4e
add esp, 0x218
ret
push esi
call fcn.00403ff0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0040ab4e
add esp, 0x218
ret

Function at 0x405420
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.004169c0
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x41dc34
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.0040ad98
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x40548b
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.0040ab4e
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.0040ae6f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b08c
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.0040ae6f
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.0040b469
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x405536
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00405280
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.0040b469
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x405501
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00405330
mov edx, dword [esp + 0x10]
push edx
call fcn.0040b4f7
add esp, 8
cmp ebp, dword [esp + 0x10]
pop esi
jb 0x405464
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040ab4e
add esp, 0x1068
ret