joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414470
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push edi
mov edi, 0x482018
mov esi, 0x484880
push 0x485ee0
push 0x100
push esi
push 0x471334
push dword [edi]
mov word [esi], 0x40
push 0x471338
call ebx
add esi, 0x104
lea edi, [edi + 4]
cmp esi, 0x4852a8
jl 0x414483
xor edi, edi
mov esi, 0x484880
nop dword [eax]
cmp byte [esi], 0x40
je 0x4144ca
push 0
push esi
jmp 0x4144d2
push 1
push dword [0x4839a0]
push edi
call fcn.00414be0
add esi, 0x104
add esp, 0xc
inc edi
cmp esi, 0x4852a8
jl 0x4144c0
pop edi
pop esi
pop ebx
ret

Function at 0x4153d0
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SetScrollInfo]
push edi
mov edi, ecx
push 1
lea ebx, [edi + 8]
mov dword [ebx], 0x1c
push ebx
mov dword [edi + 0xc], 3
mov dword [edi + 0x10], 0
mov eax, dword [0x4821a0]
push 0
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 4
push dword [0x485d5c]
call esi
push 1
push ebx
push 1
mov dword [ebx], 0x1c
mov dword [edi + 0xc], 3
mov dword [edi + 0x14], 0x3c
mov dword [edi + 0x18], 4
push dword [0x485d5c]
call esi
push 0x485ee0
push 0x21
push str.VPOS
push str.WINDOW
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 1
push ebx
push 1
mov dword [edi + 4], eax
mov dword [edi + 0xc], 4
mov dword [edi + 0x1c], eax
push dword [0x485d5c]
call esi
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x415cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x482230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x3c], eax
mov esi, 8
movsx edi, bl
mov ecx, dword [edi*4 + 0x485d18]
test ecx, ecx
je 0x415d00
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi*4 + 0x485d18], 0
sub esi, 1
jne 0x415ce4
push 0x4711e8
push dword [ebp - 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x415dfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0x24
movlpd qword [ebp - 0x14], xmm0
lea edi, [ebx*4 + 0x485d18]
movlpd qword [ebp - 0xc], xmm0
lea edx, [ebp - 0x28]
mov dword [ebp - 0x24], 0x80e2
lea eax, [esi + 0x14]
mov ecx, dword [esi + 0x36]
mov dword [ebp - 0x18], eax
mov eax, dword [0x48530c]
push 0
push edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x415dfe
mov eax, dword [edi]
lea edx, [ebp - 0x30]
push 0
push edx
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x38]
push edx
push dword [esi + 0x36]
push 0
push eax
call dword [ecx + 0x2c]
push dword [ebp - 0x2c]
lea eax, [esi + 0x3a]
push eax
push dword [ebp - 0x38]
call fcn.0041c5d0
mov edx, dword [ebp - 0x30]
add esp, 0xc
test edx, edx
je 0x415dcc
mov eax, dword [ebp - 0x2c]
add eax, 0x3a
push edx
add eax, esi
push eax
push dword [ebp - 0x34]
call fcn.0041c5d0
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov eax, dword [edi]
push edx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
mov ecx, dword [eax]
push dword [ebp - 0x38]
push eax
call dword [ecx + 0x4c]
mov eax, dword [edi]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aab7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041aab7
mov esp, ebp
pop ebp
ret

Function at 0x415f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp dword [0x485308], 0
jne 0x415f5b
push 0x10000
call fcn.00428275
add esp, 4
mov dword [0x485308], eax
push 0x4711e8
push 0x47138c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x415f72
ret
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x6400
push eax
push dword [0x485308]
call fcn.0041c5d0
add esp, 0xc
mov eax, 1
ret
Function at 0x457a5c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00457654

Function at 0x457a67
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004577de

Function at 0x45bc0b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045b5c9

Function at 0x45d783
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045d657
Function at 0x4010d4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010e6
mov eax, dword [0x44308b]
shl eax, 2
mov dword [0x44308f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00405c08
pop edx
call fcn.00404fa4
call fcn.00405c0c
push 0
call fcn.0040715c
pop ecx
push 0x443034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x443093], eax
push 0
jmp fcn.0040d868

Function at 0x4015a8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x492c21]
mov edx, dword [0x492c29]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x492c25]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x492c2d]
mov dword [0x4ab298], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4016ec
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401657
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4016ee
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.00406180
add esp, 0xc
test eax, eax
je 0x401671
xor eax, eax
jmp 0x4016ee
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40169a
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4016ee
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x49216c], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x49216c]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4016e5
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4016ee
mov eax, 1
jmp 0x4016ee
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40178c
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
lea eax, [ebp - 0x458]
push eax
call fcn.004016f8
pop ecx
test eax, eax
jne 0x401836
lea edx, [ebp - 0x458]
push edx
push 0x1ff
call sub.KERNEL32.DLL_GetTempPathA
push str.YShow3D.exe
lea ecx, [ebp - 0x458]
push ecx
call sub.KERNEL32.DLL_lstrcatA
push 4
push 0x1000
push 0xf000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x4017ee
xor eax, eax
jmp 0x4018b4
push ebx
push 0x4830a4
call fcn.00410148
add esp, 8
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x458]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x401836
push 0
lea eax, [ebp - 4]
push eax
push 0xf000
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x458]
push ecx
call sub.KERNEL32.DLL_lstrcatA
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00405f28
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
push 0x10
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.00405f28
add esp, 0xc
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x458]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x4018a4
xor eax, eax
jmp 0x4018b4
push 0xffffffffffffffff
mov edx, dword [ebp - 0x58]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a44
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x403a78
mov edx, dword [eax + 8]
test edx, edx
jne 0x403a67
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x403a74
add edx, esi
cmp ebx, edx
jb 0x403a85
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x403a5d
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x403ac0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x403ada
xor eax, eax
jmp 0x403c5a
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x403aee
xor eax, eax
jmp 0x403c5a
cmp word [ebx + 0x14], 0xe0
jne 0x403afe
cmp word [ebx + 0x18], 0x10b
je 0x403b05
xor eax, eax
jmp 0x403c5a
mov dword [0x4aaf44], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403a44
add esp, 8
test eax, eax
jne 0x403b30
xor eax, eax
jmp 0x403c5a
mov edx, dword [0x4aaf44]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403a8c
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x403b62
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x403c5a
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x403c2c
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x403c1e
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403c19
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x403c10
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403c05
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403c05
test cl, cl
je 0x403bfa
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403c05
add eax, 2
add edx, 2
test cl, cl
jne 0x403bde
jne 0x403c05
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x403c5a
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403bc4
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403b9c
jmp 0x403c58
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x403c50
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x403c4c
cmp dword [eax], 0
je 0x403c4c
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x403c5a
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403c33
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403e18
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401d0c
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403ecb
mov eax, fcn.00401950
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403ecb
mov eax, fcn.00404038
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403ecb
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403ecb
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403e93
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403ee8
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401d0c
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403f9e
mov eax, fcn.00401950
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403f9e
mov eax, fcn.00403ee8
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403f9e
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403f9e
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403f66
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404088
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401d0c
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x40413e
mov eax, fcn.00401950
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x40413e
mov eax, fcn.00404038
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x40413e
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x40413e
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x404106
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4058fc
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x4073c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4073e0
call fcn.00408790
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4073fb
test bl, 1
je 0x4073fb
mov dword [0x49569c], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4075a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4075c7
mov eax, dword [0x4947c4]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4075d4
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x407601
je 0x407613
sub ecx, 0x100
je 0x407621
sub ecx, 0x100
je 0x407628
sub ecx, 0x100
je 0x40761a
jmp 0x40762f
sub ecx, 0x600
je 0x407628
sub ecx, 0x100
je 0x407613
jmp 0x40762f
mov edi, 1
jmp 0x407634
mov edi, 2
jmp 0x407634
mov edi, 4
jmp 0x407634
mov edi, 5
jmp 0x407634
mov edi, 3
test byte [ebp + 0xd], 1
je 0x40765b
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x49423c]
test al, 0x80
je 0x407654
mov ebx, 0x80
jmp 0x40766d
mov ebx, 1
jmp 0x40766d
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40766d
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x40767f
je 0x407688
dec eax
je 0x407691
jmp 0x40769a
mov dword [ebp - 4], 0x80000000
jmp 0x4076a9
mov dword [ebp - 4], 0x40000000
jmp 0x4076a9
mov dword [ebp - 4], 0xc0000000
jmp 0x4076a9
push 1
call fcn.0040872c
pop ecx
mov ebx, eax
jmp 0x407799
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4076c5
sub eax, 0x10
je 0x4076cc
sub eax, 0x10
je 0x4076d5
sub eax, 0x10
je 0x4076de
jmp 0x4076de
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4076e5
mov dword [ebp - 8], 1
jmp 0x4076e5
mov dword [ebp - 8], 2
jmp 0x4076e5
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x407752
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x407747
test byte [ebp + 0xd], 1
je 0x407742
mov ebx, 0x50
jmp 0x407747
mov ebx, 2
push ebx
call fcn.0040872c
pop ecx
mov ebx, eax
jmp 0x407799
mov edi, esi
push edi
call fcn.00407518
pop ecx
test eax, eax
je 0x407766
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x407772
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00408470
add esp, 8
mov ebx, eax
inc eax
jne 0x407799
push 4
call fcn.0040872c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c654
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x40c6b6
call fcn.0040c604
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004060a8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004060a8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40c71c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4956a4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40c7f6
cmp dword [0x4956a0], 0
jne 0x40c7f6
cmp dword [0x495894], 0
je 0x40c7b0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0040c504
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40c796
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0040c504
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40c796
lea ebx, [ebp - 0x84]
jmp 0x40c797
inc ebx
call fcn.0040c6d8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x40c831
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4956a8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004060a8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4956ab
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x40c831
cmp dword [0x4956a0], 0
je 0x40c810
cmp dword [0x4956a0], 0xffffffff
je 0x40c831
push esi
call dword [0x4956a0]
pop ecx
mov eax, dword [0x4956a4]
test eax, eax
je 0x40c831
cmp dword [0x4956a4], 0xffffffff
je 0x40c831
cmp byte [eax], 0
je 0x40c831
push esi
push eax
call fcn.0040c654
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret