joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bbf60
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.10090df0
lea ecx, [ebp - 4]
call fcn.100bbf30
movzx eax, al
test eax, eax
jne 0x100bbf9d
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.100bbe70
mov eax, dword [ebp - 0x18]
jmp 0x100bc0c5
lea ecx, [ebp - 4]
call fcn.1008faf0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.100bbef0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.1008faf0
push eax
push 0
push 0
call fcn.100b9a20
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100bc003
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.100bbe70
mov eax, dword [ebp - 0x20]
jmp 0x100bc0c5
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10094430
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.10085e00
lea ecx, [ebp - 8]
call fcn.10086480
movzx edx, al
test edx, edx
jne 0x100bc04c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.10086460
lea ecx, [ebp - 4]
call fcn.100bbe70
mov eax, dword [ebp - 0x24]
jmp 0x100bc0c5
lea ecx, [ebp - 8]
call fcn.10085e70
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.1008faf0
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.100b9a20
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x100bc0a7
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.10086460
lea ecx, [ebp - 4]
call fcn.100bbe70
mov eax, dword [ebp - 0x34]
jmp 0x100bc0c5
lea ecx, [ebp - 8]
call fcn.10091cd0
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.10086460
lea ecx, [ebp - 4]
call fcn.100bbe70
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x100c4e90
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.100cb4f0
mov eax, dword [0x100f7040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x100fa1e0]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x100c5068
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x100c4fb7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x100c4fb7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x100c4f95
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x100c4f19
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100c5021
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x100c5088
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x100c5063
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x100c5088
jmp 0x100c4ef2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100892c0
mov esp, ebp
pop ebp
ret
Function at 0x100c50a0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.100cb4f0
mov eax, dword [0x100f7040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x100fa1e0]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x100c528b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x100c51d6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x100c51d6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x100c51b2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x100c5129
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100c5244
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x100c52ab
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x100c5286
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x100c52ab
jmp 0x100c5102
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100892c0
mov esp, ebp
pop ebp
ret
Function at 0x10001120
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10007d20
mov eax, dword [0x10018070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call section..text
cmp dword [0x100191b0], 0xffffffff
je 0x10001295
push 0x800
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.100044b0
add esp, 0xc
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x100e]
push esi
push eax
movzx eax, word [ebp - 0x1010]
push eax
movzx eax, word [ebp - 0x1012]
push eax
movzx eax, word [ebp - 0x1014]
push eax
movzx eax, word [ebp - 0x1016]
push eax
movzx eax, word [ebp - 0x101a]
push eax
movzx eax, word [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1008]
push str._d__d__d__d:_d:_d:_d____s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x1008]
add esp, 0x28
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100011c6
push 0
push 0
push 0x800
sub ecx, edx
lea eax, [ebp - 0x808]
push eax
sar ecx, 1
push ecx
lea eax, [ebp - 0x1008]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x808]
mov dword [ebp - 0x100c], 0
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001210
push 0
lea eax, [ebp - 0x100c]
push eax
sub ecx, edx
push ecx
lea eax, [ebp - 0x808]
push eax
push dword [0x100191b0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x100191b0]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [0x100191b0]
cmp eax, 0xffffffff
je 0x10001280
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [0x100191b0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100191b0], 0xffffffff
cmp esi, 0x80000
jbe 0x10001280
push 0x1001a0e8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x100c]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002e67
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10002e67
mov esp, ebp
pop ebp
ret
Function at 0x10007be2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [esi - 0x3a]
test dword [edi + 0x40fffffc], esi
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10007394
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10007349
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.10007394
invalid
call [ecx + 0x50]
Function at 0x100099c1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10018070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10006611
mov dword [ebp - 0x14], eax
cmp dword [0x1001a05c], edi
jne 0x10009ab2
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10009a3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10009b92
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10009b92
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10009b92
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1001a05c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1001a060], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1001a064], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1001a06c], eax
test eax, eax
je 0x10009aaf
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1001a068], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10009ad7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10009aca
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10009aec
push 4
pop eax
jmp 0x10009b94
cmp dword [ebp - 0x14], edi
je 0x10009aec
push dword [0x1001a05c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10009ad1
mov eax, dword [0x1001a068]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10009b4a
cmp dword [0x1001a06c], esi
je 0x10009b4a
push eax
call ebx
push dword [0x1001a06c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10009b4a
test eax, eax
je 0x10009b4a
call ecx
test eax, eax
je 0x10009b3f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10009b3f
test byte [ebp - 8], 1
jne 0x10009b4a
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10009b7a
mov eax, dword [0x1001a060]
cmp eax, esi
je 0x10009b77
push eax
call ebx
test eax, eax
je 0x10009b77
call eax
mov edi, eax
test edi, edi
je 0x10009b77
mov eax, dword [0x1001a064]
cmp eax, esi
je 0x10009b77
push eax
call ebx
test eax, eax
je 0x10009b77
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1001a05c]
call ebx
test eax, eax
je 0x10009b92
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10009b94
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002e67
leave
ret
Function at 0x418200
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov edx, dword [0x63303c]
mov dword [0x636acc], eax
mov eax, dword [0x633038]
mov dword [esp + 0xc], 0
lea ecx, [eax + eax]
or ecx, edx
mov dword [esp + 8], ecx
fild qword [esp + 8]
fadd qword [0x633050]
fstp qword [0x633050]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, dword [0x636acc]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov edx, dword [0x636acc]
add edx, eax
lea eax, [esp + 4]
push eax
push esi
mov dword [0x636acc], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, 0x190
pop esi
add esp, 0xc
ret

Function at 0x62b8a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x633380
cmp edx, dword [eax]
je 0x62b8cb
add eax, 8
inc ecx
cmp eax, 0x633410
jl 0x62b8bc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x633380]
jne 0x62b9f9
mov eax, dword [0x637d10]
cmp eax, 1
je 0x62b9d3
test eax, eax
jne 0x62b8fc
cmp dword [0x6332a8], 1
je 0x62b9d3
cmp edx, 0xfc
je 0x62b9f9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62b933
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062c290
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062c720
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62b976
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062c720
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x63086c
push edi
call fcn.0062e5f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062c290
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062c2a0
lea eax, [ebp - 0xa0]
push 0x63084c
push eax
call fcn.0062c2a0
push dword [esi + 0x633384]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062c2a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062e564
add esp, 0x2c
pop edi
jmp 0x62b9f9
lea eax, [ebp + 8]
lea esi, [esi + 0x633384]
push 0
push eax
push dword [esi]
call fcn.0062c720
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402f98
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404408
test esi, esi
jne 0x402fce
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004044f8
jmp 0x402fec
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402e9c
mov edi, eax
test esi, esi
je 0x402fec
cmp dword [ebx], 0
je 0x402fec
dec esi
jmp 0x402fd5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403020
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x419008], 0x8088405
inc edx
mov dword [ebx + 0x419008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403858
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41901c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038d0
xor eax, eax
push ebp
push 0x4038c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40390c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4038d0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x41901c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41901c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404288
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42f03c], 0
je 0x4042e9
cmp word [0x42f210], 0xd7b2
jne 0x4042b1
cmp dword [0x42f218], 0
jbe 0x4042b1
mov eax, 0x42f20c
call dword [0x42f228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404310
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x419028], 0
jne 0x404305
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405cc4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx ecx, byte [eax + 1]
push ebx
push esi
push edi
mov eax, dword [ecx + eax + 0xb]
movzx ebx, byte [edx]
mov eax, dword [eax]
xor edi, edi
movzx ecx, byte [eax + 1]
or ebx, ebx
mov esi, dword [ecx + eax + 7]
lea eax, [ecx + eax + 0xf]
je 0x405cf8
movzx ecx, byte [eax]
cmp ecx, ebx
je 0x405cff
cmp edi, esi
lea edi, [edi + 1]
lea eax, [ecx + eax + 1]
jne 0x405ce6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
push eax
push edx
inc eax
inc edx
mov ch, byte [eax]
xor ch, byte [edx]
and ch, 0xdf
jne 0x405d16
dec cl
jne 0x405d01
pop edx
pop edx
mov eax, edi
jmp 0x405cfb
pop edx
pop eax
mov ecx, ebx
jmp 0x405ced
Function at 0x40823c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov dword [ebx + 0x24], 0xffffff
cmp dword [ebx + 0x88], 0
jne 0x408269
mov dword [ebx + 0x88], 0x420100c0
cmp byte [ebx + 0x84], 0x2a
jne 0x408269
or dword [ebx + 0x88], 0x20
mov eax, dword [ebx + 0x88]
push eax
mov eax, dword [ebx + 0x44]
push eax
mov eax, dword [ebx + 0x48]
push eax
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x68]
push eax
push 0
mov eax, dword [0x4317e8]
push eax
push 0
mov edx, 0x4082ec
mov ecx, dword [ebx + 0x40]
mov eax, 0x10200
call fcn.00405700
mov edx, eax
mov eax, ebx
call fcn.004077b4
mov eax, dword [ebx + 0x40]
push eax
push 0
push 0xc
mov eax, dword [ebx + 0x68]
push eax
call sub.user32.dll_SendMessageA
cmp byte [ebx + 0x54], 0
jne 0x4082ce
push 0
mov eax, dword [ebx + 0x68]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebx + 0x85], 0
je 0x4082e9
push 0
push 1
push 0xcf
mov eax, dword [ebx + 0x68]
push eax
call sub.user32.dll_SendMessageA
pop ebx
ret

Function at 0x4089fc
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x408a0b
or edx, 0x200
test eax, 0x20000000
je 0x408a3f
test eax, 0x40000000
je 0x408a2a
test eax, 0x80000000
je 0x408a25
or edx, 0x40
jmp 0x408a66
or edx, 0x20
jmp 0x408a66
test eax, 0x80000000
je 0x408a39
or edx, 0x80
jmp 0x408a66
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x408a57
test eax, 0x80000000
je 0x408a52
or edx, 4
jmp 0x408a66
or edx, 2
jmp 0x408a66
test eax, 0x80000000
je 0x408a63
or edx, 8
jmp 0x408a66
or edx, 1
mov eax, edx
ret
Function at 0x4095a0
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov eax, esp
xor ecx, ecx
mov edx, 0x94
call fcn.004034ec
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 6
jb 0x4095ce
or ebx, 0xffffffff
mov eax, ebx
add esp, 0x94
pop ebx
ret