joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 4], 0
push 0
push 0x1000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call fcn.00403754
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x138], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x8000
push 0
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4010f6
mov ecx, dword [0x42e0e0]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
push edx
call dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push eax
call fcn.00401000
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401196
add esp, 8
test eax, eax
jne 0x40111a
xor eax, eax
jmp 0x401190
push 0x6d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_HideCaret]
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
push 1
push 0
push 1
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jbe 0x401175
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowCaret]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401196
Capabilities:
Copy file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x42e574], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x42e510
push 0x42e4ac
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4011de
xor eax, eax
jmp 0x401207
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401405
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 8], 0xb0
jae 0x4014a3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x118]
push eax
call fcn.00401405
add esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
jne 0x40145f
mov byte [ebp - 0x114], 0
jmp 0x4014a1
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
jne 0x401483
lea edx, [ebp - 0x104]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4014a1
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0xd
div ecx
test edx, edx
jne 0x4014a1
mov byte [ebp - 0x112], 0x4d
mov byte [ebp - 0x111], 0
jmp 0x4014ac
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x402fba
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x184], 0
mov ecx, 5
mov esi, 0x42dbdc
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xec], eax
push 0x94
push 0
lea eax, [ebp - 0x180]
push eax
call fcn.004261a0
add esp, 0xc
mov word [ebp - 0x32], 0x66
lea ecx, [ebp - 0x38]
push ecx
call fcn.004014c6
add esp, 4
mov dword [ebp - 0xc], eax
mov word [ebp - 0x2a], 0x37
mov word [ebp - 0x28], 0x32
push 0xa8
push 0
lea edx, [ebp - 0xe0]
push edx
call fcn.004261a0
add esp, 0xc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov eax, dword [ebp - 0xec]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xec], 0
lea ecx, [ebp - 0x20]
push ecx
push 0x65
call fcn.004014ff
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 0x184], 0
jne 0x4030e2
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
cmp eax, 0x41
je 0x4030e2
mov ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx + 1]
cmp edx, 0x42
je 0x4030e2
push 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00426200
add esp, 0xc
push 0
push 0x402f95
push 0
mov edx, dword [ebp - 0xec]
push edx
call dword [sym.imp.GDI32.dll_EnumObjects]
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x42dbc4]
mov dword [eax + 0x158], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.00401565
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xf8]
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x15c], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x15c], 0
je 0x40315a
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xd4], 0
push 0x8000
push 0
mov edx, dword [ebp - 0xe8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xf8]
mov dword [0x42e0e0], ecx
mov eax, dword [ebp - 4]
jmp 0x403176
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xa
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40317c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0x64
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x42a864]
mov dword [ecx + 0xc8], edx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x42dbc0]
mov dword [eax + 0xc0], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 4]
mov dword [edx + 0xe0], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1cc], 0xaafcb052
push 0x8000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xe0], 0
je 0x40321e
mov edx, dword [ebp - 8]
add edx, 0x7c
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c0], 0x42a86c
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ecx + 0x1d4], edx
jmp 0x4032bf
mov eax, dword [str.appinitcmd.ini]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x42dbf4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x42dbf8]
mov dword [ebp - 0x18], edx
mov ax, word [0x42dbfc]
mov word [ebp - 0x14], ax
mov cl, byte [0x42dbfe]
mov byte [ebp - 0x12], cl
push 0
push 0
push 4
push 0
push 0
push 1
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4032bf
push 4
push 0x1000
push 0x12c
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4032bf
push 0
lea eax, [ebp - 8]
push eax
push 4
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jne 0x4032bf
push 0
lea eax, [ebp - 8]
push eax
push 4
mov ecx, dword [ebp - 4]
add ecx, 0x780
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
mov dword [eax + 0x11c], 0x4b803e11
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xe0]
mov dword [ecx + 0xcc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x42a868]
mov dword [ecx + 0xc4], edx
push 0x2bc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
mov ecx, dword [0x42dbbc]
mov dword [eax + 0xbc], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a4], 0x42a030
mov eax, dword [ebp - 4]
push eax
call fcn.0040394d
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x403754
Capabilities:
Copy file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
push 1
push 0xd
call fcn.004033aa
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x40379d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x18], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0
je 0x4037bd
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov eax, dword [ebp - 8]
jmp 0x403949
mov dword [ebp - 0x484], 0
mov edx, dword [str.setting.ini]
mov dword [ebp - 0x47c], edx
mov eax, dword [0x42dc04]
mov dword [ebp - 0x478], eax
mov ecx, dword [0x42dc08]
mov dword [ebp - 0x474], ecx
mov edx, dword [str.existing]
mov dword [ebp - 0x470], edx
mov eax, dword [0x42dc10]
mov dword [ebp - 0x46c], eax
mov cl, byte [0x42dc14]
mov byte [ebp - 0x468], cl
push 0
lea edx, [ebp - 0x470]
push edx
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x80
push 4
push 0
push 1
push 4
lea ecx, [ebp - 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40384f
xor eax, eax
jmp 0x403949
cmp dword [ebp - 0x484], 0xffffffff
jne 0x40388b
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.setini.xml
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0xffffffff
jne 0x40388b
xor eax, eax
jmp 0x403949
push 0
lea edx, [ebp - 0x48c]
push edx
push 0x448
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403920
push 2
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x488], eax
push 0
mov eax, dword [ebp - 0x48c]
push eax
push 0
mov ecx, dword [ebp - 0x488]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x464]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov ecx, dword [ebp - 0x48c]
push ecx
push 0
mov edx, dword [ebp - 0x488]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0x48c], 0x448
je 0x40384f
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4271b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42dd40
cmp edx, dword [eax]
je 0x4271d7
add eax, 8
inc ecx
cmp eax, 0x42ddd0
jl 0x4271c8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42dd40]
jne 0x427305
mov eax, dword [0x42e580]
cmp eax, 1
je 0x4272df
test eax, eax
jne 0x427208
cmp dword [0x42dc94], 1
je 0x4272df
cmp edx, 0xfc
je 0x427305
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42723f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00427f80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00426120
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x427282
lea eax, [ebp - 0x1a4]
push eax
call fcn.00426120
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4294a8
push edi
call fcn.00428170
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00427f80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00427f90
lea eax, [ebp - 0xa0]
push 0x429488
push eax
call fcn.00427f90
push dword [esi + 0x42dd44]
lea eax, [ebp - 0xa0]
push eax
call fcn.00427f90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004280e4
add esp, 0x2c
pop edi
jmp 0x427305
lea eax, [ebp + 8]
lea esi, [esi + 0x42dd44]
push 0
push eax
push dword [esi]
call fcn.00426120
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 0x1c39dd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17fc000]
push edi
jmp 0x1c39dea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1c39df1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c39de0
mov eax, 1
add ebx, ebx
jne 0x1c39e03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1c39e14
jne 0x1c39e33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c39e33
dec eax
add ebx, ebx
jne 0x1c39e20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1c39df8
add ebx, ebx
jne 0x1c39e2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1c39e85
xor ecx, ecx
sub eax, 3
jb 0x1c39e4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1c39eba
sar eax, 1
mov ebp, eax
jmp 0x1c39e56
add ebx, ebx
jne 0x1c39e56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c39e24
inc ecx
add ebx, ebx
jne 0x1c39e64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c39e24
add ebx, ebx
jne 0x1c39e71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1c39e66
jne 0x1c39e82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1c39e66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1c39ea4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1c39e96
jmp 0x1c39de6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1c39ea4
add edi, ecx
jmp 0x1c39de6
pop esi
mov edi, esi
mov ecx, 0x2745
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1c39ec2
cmp byte [edi], 0x16
jne 0x1c39ec2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1c39ec7
lea edi, [esi + 0x1835000]
mov eax, dword [edi]
or eax, eax
je 0x1c39f3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2feebb4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2feecb4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1c39ef4
mov ecx, edi
jns 0x1c39f23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2feecbc]
or eax, eax
je 0x1c39f39
mov dword [ebx], eax
add ebx, 4
jmp 0x1c39f11
call dword [esi + 0x2feecb8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1c39f70
cmp al, 0xef
ja 0x1c39f63
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1c39f45
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1c39f52
mov ebp, dword [esi + 0x2feecc0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1c39fa4
sub esp, 0xffffff80
jmp 0x4301aa
Function at 0x402b68
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004041ec
test esi, esi
jne 0x402b9f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004042dc
jmp 0x402bc0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402a04
mov dword [esp], eax
test esi, esi
je 0x402bc0
cmp dword [ebx], 0
je 0x402bc0
dec esi
jmp 0x402ba7
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403728
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037a0
xor eax, eax
push ebp
push 0x403799
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 0x4037dc
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 0x4037a0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40b014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403fec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c034], 0
je 0x40404d
cmp word [0x40c208], 0xd7b2
jne 0x404015
cmp dword [0x40c210], 0
jbe 0x404015
mov eax, 0x40c204
call dword [0x40c220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b080
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 0x404074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b020], 0
jne 0x404069
push 0
push 0x40b078
push 0x40b080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4041a8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402884
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x40c035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404170
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404c4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404cb2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040444c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004034cc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404c9c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404cb9
lea eax, [ebp - 0x10]
call fcn.004041ec
ret

Function at 0x405298
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404654
xor eax, eax
push ebp
push 0x4052ed
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.00404464
push eax
lea eax, [ebp - 4]
call fcn.004046bc
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.wsock32.dll_send
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4052f4
lea eax, [ebp - 4]
call fcn.004041ec
ret
Function at 0x4074a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebx
mov ebx, eax
lea eax, [ebx + 0x44]
push eax
mov dl, 1
mov al, 2
call fcn.00405078
push eax
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 0x30], eax
mov word [ebx + 0x34], 2
mov ax, word [ebx + 4]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x36], ax
mov eax, dword [ebx + 8]
call fcn.00404664
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebx + 0x38], eax
push 0x10
lea eax, [ebx + 0x34]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x40750a
mov eax, ebx
call fcn.0040738c
mov eax, ebx
call fcn.00405694
call sub.wsock32.dll_WSACleanup
cmp dword [ebx + 0x2c], 0
jne 0x4074a3
pop ebx
ret
Function at 0x407b54
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x407c2f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea edx, [ebp - 8]
mov eax, 0x407c44
call fcn.00409454
mov eax, dword [ebp - 8]
call fcn.00404664
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
je 0x407b96
mov eax, dword [0x40b16c]
add dword [eax], 0xa
mov ebx, 0xa
lea edx, [ebp - 0xc]
mov eax, 0x407c54
call fcn.00409454
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.00407dcc
push dword [ebp - 0x10]
push 0x407c68
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404524
push 0
mov eax, dword [ebp - 4]
call fcn.00404664
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402b68
mov eax, dword [ebp - 0x14]
call fcn.00404664
push eax
call sub.kernel32.dll_CopyFileA
mov eax, 0x64
call fcn.00403150
cmp eax, 0x1e
jle 0x407c11
mov eax, 5
call fcn.00403150
mov edx, eax
shl edx, 0xa
mov eax, dword [ebp - 4]
call fcn.00408ad0
dec ebx
jne 0x407b9b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c36
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404210
ret
Function at 0x408e20
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
mov ebx, eax
mov eax, ebx
mov edx, 0x408f50
call fcn.00404240
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x408f32
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x408eba
dec ecx
jne 0x408f24
cmp eax, 4
jg 0x408e76
mov eax, ebx
mov edx, 0x408f60
call fcn.00404240
jmp 0x408f3e
cmp eax, 5
jne 0x408e90
test edx, edx
jne 0x408e90
mov eax, ebx
mov edx, 0x408f70
call fcn.00404240
jmp 0x408f3e
cmp eax, 5
jne 0x408ea9
dec edx
jne 0x408ea9
mov eax, ebx
mov edx, 0x408f80
call fcn.00404240
jmp 0x408f3e
mov eax, ebx
mov edx, 0x408f50
call fcn.00404240
jmp 0x408f3e
cmp eax, 4
jne 0x408ed1
test edx, edx
jne 0x408ed1
mov eax, ebx
mov edx, 0x408f90
call fcn.00404240
jmp 0x408f3e
cmp eax, 4
jne 0x408efe
cmp edx, 0xa
jne 0x408efe
cmp byte [esp + 0x15], 0x41
jne 0x408ef0
mov eax, ebx
mov edx, 0x408fa0
call fcn.00404240
jmp 0x408f3e
mov eax, ebx
mov edx, 0x408fb0
call fcn.00404240
jmp 0x408f3e
cmp eax, 4
jne 0x408f16
cmp edx, 0x5a
jne 0x408f16
mov eax, ebx
mov edx, 0x408fc0
call fcn.00404240
jmp 0x408f3e
mov eax, ebx
mov edx, 0x408f50
call fcn.00404240
jmp 0x408f3e
mov eax, ebx
mov edx, 0x408f50
call fcn.00404240
jmp 0x408f3e
mov eax, ebx
mov edx, 0x408f50
call fcn.00404240
add esp, 0x94
pop ebx
ret

Function at 0x408fc8
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebx
push ecx
mov ebx, eax
mov dword [esp], 2
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x408ffa
mov eax, dword [esp]
and eax, 2
cmp eax, 2
jne 0x408ffa
mov eax, ebx
mov edx, 0x409034
call fcn.00404240
mov dword [esp], 1
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x409028
mov eax, dword [esp]
and eax, 1
cmp eax, 1
jne 0x409028
mov eax, ebx
mov edx, 0x409040
call fcn.00404240
pop edx
pop ebx
ret