joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010d4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010e6
mov eax, dword [0x44b08b]
shl eax, 2
mov dword [0x44b08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0040a24c
pop edx
call fcn.004095e8
call fcn.0040a250
push 0
call fcn.0040b7e8
pop ecx
push 0x44b034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x44b093], eax
push 0
jmp fcn.00411f00
Function at 0x402330
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40239f
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x402367
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4023bc
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov esi, dword [ebx]
mov eax, dword [ecx + 4]
mov dword [ebp - 4], esi
mov ecx, 0xc6ef3720
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40242e
mov esi, edx
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
sub eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
sub edx, esi
sub ecx, 0x9e3779b9
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x4023f6
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4025b8
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, 0x20
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov edi, dword [esi]
mov eax, dword [ecx + 4]
mov dword [ebp - 4], edi
mov ecx, 0xc6ef3720
mov edi, dword [esi + 4]
mov dword [ebp - 8], edi
mov edi, dword [esi + 8]
mov dword [ebp - 0xc], edi
mov esi, dword [esi + 0xc]
mov dword [ebp - 0x10], esi
jmp 0x40262a
mov esi, edx
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
sub eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
sub edx, esi
sub ecx, 0x9e3779b9
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x4025f2
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40294c
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
mov ecx, 0x82
lea eax, [ebp - 0x208]
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, str.SetupApi.dll
push esi
lea edi, [ebp - 0x208]
mov esi, 0x44b768
rep movsd dword es:[edi], dword [esi]
pop esi
lea edi, [ebp - 0x410]
push esi
mov esi, 0x44b971
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
pop esi
push 0x104
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
push esi
lea edx, [ebp - 0x208]
push edx
call sub.KERNEL32.DLL_lstrcatA
push 8
push 0
lea ecx, [ebp - 0x208]
push ecx
call sub.KERNEL32.DLL_LoadLibraryExA
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
je 0x402a06
lea eax, [esi + 0xe]
push eax
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x52dc4c], eax
lea edx, [esi + 0x23]
push edx
mov ecx, dword [ebx + 8]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x52dc50], eax
lea eax, [esi + 0x3f]
push eax
mov edx, dword [ebx + 8]
push edx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x52dc54], eax
lea ecx, [esi + 0x60]
push ecx
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x52dc58], eax
jmp 0x402a21
push 0x10
lea edx, [esi + 0x82]
push edx
lea ecx, [esi + 0x7d]
push ecx
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x402b14
push 0x104
lea edx, [ebp - 0x410]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea ecx, [esi + 0x9d]
push ecx
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.DLL_lstrcatA
push 8
push 0
lea edx, [ebp - 0x410]
push edx
call sub.KERNEL32.DLL_LoadLibraryExA
mov edi, eax
mov dword [ebx + 0xc], edi
test edi, edi
je 0x402af4
lea eax, [esi + 0xa6]
push eax
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x52dc5c], eax
lea edx, [esi + 0xb6]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x52dc60], eax
lea eax, [esi + 0xc6]
push eax
mov edx, dword [ebx + 0xc]
push edx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x52dc64], eax
lea ecx, [esi + 0xd6]
push ecx
mov eax, dword [ebx + 0xc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x52dc68], eax
lea edx, [esi + 0xec]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x52dc6c], eax
lea eax, [esi + 0xff]
push eax
mov edx, dword [ebx + 0xc]
push edx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x52dc70], eax
lea ecx, [esi + 0x116]
push ecx
mov eax, dword [ebx + 0xc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x52dc74], eax
jmp 0x402b0f
push 0x10
lea edx, [esi + 0x129]
push edx
lea ecx, [esi + 0x123]
push ecx
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x402b14
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403450
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebp - 8]
lea edx, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edx
lea ecx, [ebp - 0x114]
push ecx
push esi
mov eax, dword [ebp + 0xc]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x4034ee
mov dword [ebp - 0xc], 0xc8
push str.HIDVid_3689Pid_8762
call fcn.0040a6ec
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x110]
push eax
push 0x44bef8
call fcn.0040a9b4
add esp, 0xc
test eax, eax
jne 0x4034ee
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
jne 0x4034eb
push 0x44bf24
mov ecx, dword [ebp + 0x14]
push ecx
call sub.KERNEL32.DLL_lstrcpyA
lea eax, [ebp - 0x110]
push eax
mov edx, dword [ebp + 0x14]
push edx
call sub.KERNEL32.DLL_lstrcatA
mov eax, 1
jmp 0x4034f9
inc dword [ebp - 0x10]
inc esi
test ebx, ebx
je 0x40346c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404424
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x404493
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x40445b
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404ab0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, str.SetupApi.dll
push esi
mov esi, 0x44bc04
lea edi, [ebp - 0x64]
mov ecx, 0x19
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
mov esi, 0x44bc69
lea edi, [ebp - 0x78]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
mov esi, 0x44bc7e
lea edi, [ebp - 0x1a4]
mov ecx, 0x4b
rep movsd dword es:[edi], dword [esi]
pop esi
push ebx
push 0x104
lea eax, [ebp - 0x64]
push eax
lea edx, [esi + 0x3b9]
push edx
lea ecx, [esi + 0x3ae]
push ecx
lea eax, [esi + 0x3a0]
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push ebx
push 0x14
lea edx, [ebp - 0x78]
push edx
lea ecx, [esi + 0x3d6]
push ecx
lea eax, [esi + 0x3d1]
push eax
lea edx, [esi + 0x3c3]
push edx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push ebx
push 0x12c
lea ecx, [ebp - 0x1a4]
push ecx
lea eax, [esi + 0x3ee]
push eax
lea edx, [esi + 0x3e9]
push edx
lea ecx, [esi + 0x3db]
push ecx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea eax, [ebp - 0x78]
push eax
call fcn.0040ec4c
pop ecx
push eax
lea edx, [ebp - 0x1a4]
lea ecx, [ebp - 0x64]
push edx
push ecx
call dword [0x52dc3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40632c
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, 0xfffffba4
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0
mov edi, dword [ebp + 0x10]
je 0x406356
lea eax, [ebp - 0x45c]
push eax
call fcn.004065e0
pop ecx
test eax, eax
jne 0x406415
push 0x400
push 0
lea edx, [ebp - 0x45c]
push edx
call fcn.0040a56c
add esp, 0xc
lea ecx, [ebp - 0x45c]
push ecx
push 0x1ff
call sub.KERNEL32.DLL_GetTempPathA
push str.YShow3D.exe
lea eax, [ebp - 0x45c]
push eax
call sub.KERNEL32.DLL_lstrcatA
xor edx, edx
mov dword [ebp - 8], edx
push 4
push 0x44d810
lea ecx, [ebp - 8]
push ecx
call fcn.0040a4fc
add esp, 0xc
push 4
push 0x1000
mov eax, dword [ebp - 8]
push eax
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x4063c5
xor eax, eax
jmp 0x4064a4
push 0x293af
lea edx, [ebp - 8]
push 0x44d814
push edx
push ebx
call fcn.00417630
add esp, 0x10
lea ecx, [ebp - 0x45c]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x406415
push 0
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 8]
push edx
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x45c]
push eax
call sub.KERNEL32.DLL_lstrcatA
push 0x44
push 0
lea edx, [ebp - 0x4c]
push edx
call fcn.0040a56c
add esp, 0xc
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 1
push 0x10
push 0
lea ecx, [ebp - 0x5c]
push ecx
call fcn.0040a56c
add esp, 0xc
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x45c]
push eax
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x406483
xor eax, eax
jmp 0x4064a4
cmp dword [edi], 1
jne 0x406494
mov edx, dword [ebp - 0x54]
mov eax, 1
mov dword [edi], edx
jmp 0x4064a4
push 0xffffffffffffffff
mov edx, dword [ebp - 0x5c]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407d1c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x50af09]
mov edx, dword [0x50af11]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x50af0d]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x50af15]
mov dword [0x52dc0c], 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 0x407e60
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 0x407dcb
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x407e62
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.0040a7c4
add esp, 0xc
test eax, eax
je 0x407de5
xor eax, eax
jmp 0x407e62
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 0x407e0e
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x407e62
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x44b16c], 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 [0x44b16c]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x407e59
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x407e62
mov eax, 1
jmp 0x407e62
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4089ec
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 0x408a20
mov edx, dword [eax + 8]
test edx, edx
jne 0x408a0f
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x408a1c
add edx, esi
cmp ebx, edx
jb 0x408a2d
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x408a05
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x408d94
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 0x408dae
xor eax, eax
jmp 0x408f2e
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x408dc2
xor eax, eax
jmp 0x408f2e
cmp word [ebx + 0x14], 0xe0
jne 0x408dd2
cmp word [ebx + 0x18], 0x10b
je 0x408dd9
xor eax, eax
jmp 0x408f2e
mov dword [0x52de94], 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.004089ec
add esp, 8
test eax, eax
jne 0x408e04
xor eax, eax
jmp 0x408f2e
mov edx, dword [0x52de94]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00408a34
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x408e36
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x408f2e
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 0x408f00
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x408ef2
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x408eed
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 0x408ee4
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x408ed9
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 0x408ed9
test cl, cl
je 0x408ece
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x408ed9
add eax, 2
add edx, 2
test cl, cl
jne 0x408eb2
jne 0x408ed9
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x408f2e
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 0x408e98
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x408e70
jmp 0x408f2c
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x408f24
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x408f20
cmp dword [eax], 0
je 0x408f20
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x408f2e
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x408f07
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408f38
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop ebx
pop ebp
ret
Function at 0x409f40
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 0x40ba50
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 0x40ba6c
call fcn.0040ce1c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x40ba87
test bl, 1
je 0x40ba87
mov dword [0x50d2f4], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40bc34
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 0x40bc53
mov eax, dword [0x50c41c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x40bc60
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x40bc8d
je 0x40bc9f
sub ecx, 0x100
je 0x40bcad
sub ecx, 0x100
je 0x40bcb4
sub ecx, 0x100
je 0x40bca6
jmp 0x40bcbb
sub ecx, 0x600
je 0x40bcb4
sub ecx, 0x100
je 0x40bc9f
jmp 0x40bcbb
mov edi, 1
jmp 0x40bcc0
mov edi, 2
jmp 0x40bcc0
mov edi, 4
jmp 0x40bcc0
mov edi, 5
jmp 0x40bcc0
mov edi, 3
test byte [ebp + 0xd], 1
je 0x40bce7
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x50be94]
test al, 0x80
je 0x40bce0
mov ebx, 0x80
jmp 0x40bcf9
mov ebx, 1
jmp 0x40bcf9
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40bcf9
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x40bd0b
je 0x40bd14
dec eax
je 0x40bd1d
jmp 0x40bd26
mov dword [ebp - 4], 0x80000000
jmp 0x40bd35
mov dword [ebp - 4], 0x40000000
jmp 0x40bd35
mov dword [ebp - 4], 0xc0000000
jmp 0x40bd35
push 1
call fcn.0040cdb8
pop ecx
mov ebx, eax
jmp 0x40be25
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x40bd51
sub eax, 0x10
je 0x40bd58
sub eax, 0x10
je 0x40bd61
sub eax, 0x10
je 0x40bd6a
jmp 0x40bd6a
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x40bd71
mov dword [ebp - 8], 1
jmp 0x40bd71
mov dword [ebp - 8], 2
jmp 0x40bd71
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 0x40bdde
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x40bdd3
test byte [ebp + 0xd], 1
je 0x40bdce
mov ebx, 0x50
jmp 0x40bdd3
mov ebx, 2
push ebx
call fcn.0040cdb8
pop ecx
mov ebx, eax
jmp 0x40be25
mov edi, esi
push edi
call fcn.0040bba4
pop ecx
test eax, eax
je 0x40bdf2
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x40bdfe
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0040cafc
add esp, 8
mov ebx, eax
inc eax
jne 0x40be25
push 4
call fcn.0040cdb8
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 0x410cec
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 0x410d4e
call fcn.00410c9c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0040a6ec
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.0040a6ec
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 0x410db4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x50d2fc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x410e8e
cmp dword [0x50d2f8], 0
jne 0x410e8e
cmp dword [0x50d4ec], 0
je 0x410e48
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.00410b9c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x410e2e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00410b9c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x410e2e
lea ebx, [ebp - 0x84]
jmp 0x410e2f
inc ebx
call fcn.00410d70
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x410ec9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x50d300
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040a6ec
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x50d303
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x410ec9
cmp dword [0x50d2f8], 0
je 0x410ea8
cmp dword [0x50d2f8], 0xffffffff
je 0x410ec9
push esi
call dword [0x50d2f8]
pop ecx
mov eax, dword [0x50d2fc]
test eax, eax
je 0x410ec9
cmp dword [0x50d2fc], 0xffffffff
je 0x410ec9
cmp byte [eax], 0
je 0x410ec9
push esi
push eax
call fcn.00410cec
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret