joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408adc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
or eax, 0xffffffff
mov esi, ebx
and esi, 3
cmp esi, 2
ja 0x408b32
mov edx, ebx
and edx, 0xf0
shr edx, 4
cmp edx, 0x40
ja 0x408b32
push 0
push 0x80
push 3
push 0
mov eax, ebx
and eax, 0xf0
shr eax, 4
mov eax, dword [eax*4 + 0x461120]
push eax
mov eax, dword [esi*4 + 0x461114]
push eax
mov eax, edi
call fcn.00404a5c
push eax
call sub.user32.dll_GetWindowTextA
pop edi
pop esi
pop ebx
ret

Function at 0x408b38
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, eax
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, ebx
call fcn.00404a5c
push eax
call sub.user32.dll_GetWindowTextA
pop ebx
ret

Function at 0x408bbc
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.user32.dll_SetClipboardData
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x41e1fc
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 0x41e202
ret

Function at 0x41fb4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x10]
mov dl, byte [0x41fb90]
mov eax, ebx
call fcn.0041fe88
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push edi
push esi
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x420694
Capabilities:
Log keystrokes

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.user32.dll_MapVirtualKeyA
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4206e5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4206cc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4206bc
jmp 0x4206e5
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 0x4206cd
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4206ec
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
mov word [ebp - 0x408], 0x300
mov word [ebp - 0x406], 0x10
lea edx, [ebp - 0x404]
mov ecx, pe_nt_image_headers32
call fcn.004028f8
push 0
call fcn.00407038
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4207e9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x68
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_FillRect
mov ebx, eax
cmp ebx, 0x10
jl 0x4207d0
lea eax, [ebp - 0x404]
push eax
push 8
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetClipboardData
cmp dword [ebp - 0x3e8], 0xc0c0c0
jne 0x4207b2
lea eax, [ebp - 0x3e8]
push eax
push 1
mov eax, ebx
sub eax, 8
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetClipboardData
movzx eax, word [ebp - 0x406]
lea eax, [ebp + eax*4 - 0x420]
push eax
push 7
sub ebx, 7
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetClipboardData
lea eax, [ebp - 0x3e4]
push eax
push 1
push 7
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetClipboardData
jmp 0x4207d0
movzx eax, word [ebp - 0x406]
lea eax, [ebp + eax*4 - 0x424]
push eax
push 8
sub ebx, 8
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4207f0
mov eax, dword [ebp - 4]
push eax
push 0
call fcn.00407280
ret

Function at 0x42089c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffbfc
mov edi, eax
xor esi, esi
mov word [esp], 0x300
test edi, edi
je 0x4208eb
push 0
call sub.user32.dll_DestroyCursor
mov ebx, eax
push edi
push ebx
call sub.user32.dll_GetMenuItemCount
mov edi, eax
lea eax, [esp + 4]
push eax
push 0x100
push 0
push ebx
call sub.user32.dll_EnumWindows
mov word [esp + 2], ax
push edi
push ebx
call sub.user32.dll_GetMenuItemCount
push ebx
call sub.user32.dll_DrawIconEx
jmp 0x4208fe
mov word [esp + 2], cx
mov eax, edx
lea edx, [esp + 4]
shl ecx, 2
call fcn.004028f8
cmp word [esp + 2], 0
je 0x420931
cmp word [esp + 2], 0x10
jne 0x420919
mov eax, esp
call fcn.00420804
test al, al
jne 0x420927
movzx edx, word [esp + 2]
lea eax, [esp + 4]
call fcn.00420694
mov eax, esp
push eax
call sub.user32.dll_DrawEdge
mov esi, eax
mov eax, esi
add esp, 0x404
pop edi
pop esi
pop ebx
ret
Function at 0x42105c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
mov edx, ebx
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.00420f0c
xor eax, eax
mov dword [ebp - 8], eax
push 0
call sub.user32.dll_DestroyCursor
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4210f9
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4210b0
push 0
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetMenuItemID
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyboardLayout
push 0
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebx + 8]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_EqualRect
test eax, eax
setne byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421100
cmp dword [ebp - 8], 0
je 0x4210ef
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetMenuItemID
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_DrawIconEx
ret
Function at 0x4301bc
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404a4c
xor eax, eax
push ebp
push 0x4302ea
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call fcn.00407230
test eax, eax
je 0x4302bd
xor eax, eax
push ebp
push 0x4302b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404864
inc eax
push eax
push 0x2002
call sub.user32.dll_OpenClipboard
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43028b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_PtInRect
mov ebx, eax
xor eax, eax
push ebp
push 0x43027a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404864
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404a5c
mov edx, ebx
pop ecx
call fcn.004028f8
call fcn.00406fa0
mov eax, dword [ebp - 8]
push eax
push 1
call fcn.004072c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430281
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_RegisterClipboardFormatA
ret
mov ecx, dword [0x461e3c]
mov dl, 1
mov eax, dword [0x4078c4]
call fcn.0040a3b0
call fcn.0040400c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4302f1
lea eax, [ebp - 4]
call fcn.004045ac
ret
Function at 0x4302f8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4304a9
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404c4c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x4304c0
call fcn.004048b0
mov eax, ebx
call fcn.0041c21c
mov edi, eax
dec edi
test edi, edi
jl 0x4303b0
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041c1f0
mov edx, dword [0x42a7f4]
call fcn.004039cc
test al, al
je 0x4303ac
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041c1f0
lea edx, [ebp - 0x14]
call fcn.00437110
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404c4c
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404924
inc esi
dec edi
jne 0x43035e
mov al, byte [0x4304c4]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x4304d0
mov eax, dword [ebp - 0xc]
call fcn.0040b434
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404644
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00437110
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x4304c0
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f0]
call fcn.00437110
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x4304c0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x4304c0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x4304dc
call fcn.004094e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4304b0
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004045d0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004045d0
lea eax, [ebp - 0x14]
call fcn.004045ac
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004045d0
ret
Function at 0x441564
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov ebx, eax
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x441647
mov eax, dword [esi + 0x14]
cmp byte [eax + 0x10], 1
jne 0x4415c2
mov edx, 2
mov eax, esi
call fcn.0043f598
mov dword [esp], eax
mov eax, dword [ebx + 0xc]
sar eax, 1
jns 0x441598
adc eax, 0
mov edx, dword [ebx + 0x54]
sub edx, eax
mov dword [esp + 4], edx
mov edx, 2
mov eax, dword [ebx + 0x60]
call fcn.0043f604
add eax, dword [esp]
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
add eax, dword [ebx + 0xc]
mov dword [esp + 0xc], eax
jmp 0x441603
mov eax, dword [ebx + 0xc]
sar eax, 1
jns 0x4415cc
adc eax, 0
mov edx, dword [ebx + 0x50]
sub edx, eax
mov dword [esp], edx
mov edx, 1
mov eax, esi
call fcn.0043f598
mov dword [esp + 4], eax
mov eax, dword [esp]
add eax, dword [ebx + 0xc]
mov dword [esp + 8], eax
mov edx, 1
mov eax, dword [ebx + 0x60]
call fcn.0043f604
add eax, dword [esp + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x10]
call fcn.0041f6d8
push eax
mov eax, dword [ebx + 0x58]
push eax
call sub.user32.dll_GetMenuItemCount
mov esi, eax
push 0x5a0049
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
sub ecx, eax
push ecx
push edx
push eax
mov eax, dword [ebx + 0x58]
push eax
call sub.user32.dll_GetKeyNameTextA
push esi
mov eax, dword [ebx + 0x58]
push eax
call sub.user32.dll_GetMenuItemCount
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push str.C:Program_Files__x86_Common_Files
call esi
push 0
push str.C:Program_Files__x86_Common_FilesAdobe
call esi
push 0
push str.C:Program_Files__x86_Common_FilesAdobeAdobe_Desktop_Common
call esi
push 0
push str.C:Program_Files__x86_Common_FilesAdobeAdobe_Desktop_CommonIPCBox
call esi
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push str.C:Program_Files__x86_Common_FilesAdobeAdobe_Desktop_CommonIPCBoxAdobeIPCBroker.exe
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop esi
cmp eax, 0xffffffff
je 0x401055
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x40172d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40176c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40176c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40176c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40176c
cmp dword [ecx + 0x74], 0xe
jbe 0x40176c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4072c3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x407360
push ebx
push esi
call fcn.0040728c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00407220
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40730d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40735f
push edi
push eax
call fcn.00407ee0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40732d
call fcn.00405d81
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40735e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407220
add esp, 0x20
test eax, eax
jne 0x40734c
push edi
call fcn.00405d81
jmp 0x407354
push ebx
call fcn.00405d81
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40865d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410118
push 0x410110
push str.FlsAlloc
push 0x1f
call fcn.0040851c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408691
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e114]
call esi
jmp 0x408697
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4086db
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410128
push 0x410120
push str.FlsGetValue
push 0x21
call fcn.0040851c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408712
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40871a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410130
push 0x410128
push str.FlsSetValue
push 0x22
call fcn.0040851c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408754
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e114]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40dbb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dbdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dbdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409b38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x409b47
pop dword [ebp - 0x3c]
mov eax, 0x94571fea
sub eax, 0x941684a3
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x2789f7df
sub dword [ebp - 0x4c], 0xd937b294
mov dword [ebp - 0x48], 0x48891a9f
add dword [ebp - 0x48], 0xe9aa31a6
mov dword [ebp - 0x44], 0x3cbcb389
add dword [ebp - 0x44], 0xf8f90a5
mov dword [ebp - 0x40], 0xb7e7fd40
sub dword [ebp - 0x40], 0xb7e7fd40
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xc3a50fd3
sub dword [ebp - 0x4c], 0x4f32a67d
mov dword [ebp - 0x48], 0xffaab373
add dword [ebp - 0x48], 0x41c1ae02
mov dword [ebp - 0x44], 0x397cc251
sub dword [ebp - 0x44], 0xd60d55e5
mov dword [ebp - 0x40], 0xdd90f2c6
sub dword [ebp - 0x40], 0xdd90f2c6
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a17e
push 0
call eax
mov ecx, 0xe10f7ea1
sub ecx, 0xe10f346d
mov esi, eax
mov edi, 0x7aa137f
add edi, 0xf8979c81
add edi, dword [ebp - 0x3c]
mov edx, 0x7e0fd6cd
sub edx, 0xef5baf14
sub dword [ebp - 0x18], eax
mov ebx, dword [edi]
add ebx, edx
xor dword [ebp - 0x38], 0xeaaa38c8
mov dword [esi], ebx
xor dword [ebp - 0x28], 0xcb36c993
add esi, 0xbd2295c4
sub esi, 0xbd2295c0
add edi, 4
loop 0x409c5f
add eax, 0x66fce5fa
add eax, 0x990435a9
mov ebx, eax
add eax, 0x7e643da3
sub eax, 0x7e643d9e
mov ecx, 0xfe8d0d87
sub ecx, 0xfe4d0d87
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4027b8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x405ad8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00403498
push eax
mov eax, esi
call fcn.0040365c
push eax
mov eax, ebx
call fcn.00403498
push eax
mov eax, ebx
call fcn.0040365c
push eax
push 1
push 0x400
call sub.KERNEL32.DLL_GetCommandLineA
sub eax, 2
pop esi
pop ebx
ret

Function at 0x405afe
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00403498
push eax
mov eax, esi
call fcn.0040365c
push eax
mov eax, ebx
call fcn.00403498
push eax
mov eax, ebx
call fcn.0040365c
push eax
push 1
push 0x400
call sub.KERNEL32.DLL_GetCommandLineA
sub eax, 2
pop esi
pop ebx
ret

Function at 0x405b98
Capabilities:
Get geographical location

Disassembly:
push ebx
mov ebx, eax
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, ebx
call fcn.0040365c
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
pop ebx
ret

Function at 0x406b9c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
push 0x1c
lea eax, [ebp - 0x330]
push eax
push ebx
call sub.KERNEL32.DLL_TlsGetValue
cmp dword [ebp - 0x320], 0x1000
jne 0x406be6
push 0x105
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 0x32c]
push eax
call sub.KERNEL32.DLL_VirtualFree
test eax, eax
jne 0x406c0b
push 0x105
lea eax, [ebp - 0x212]
push eax
mov eax, dword [0x40d2e0]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualFree
mov eax, ebx
call fcn.00406b90
mov dword [ebp - 8], eax
jmp 0x406c14
sub ebx, dword [ebp - 0x32c]
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x212]
mov dl, 0x5c
call fcn.00407650
mov edx, eax
inc edx
lea eax, [ebp - 0x10d]
mov ecx, 0x104
call fcn.00405d38
mov ebx, 0x406d20
mov edi, 0x406d20
mov eax, esi
mov edx, dword [0x405028]
call fcn.00402ac4
test al, al
je 0x406c70
mov eax, dword [esi + 4]
call fcn.0040365c
mov ebx, eax
mov eax, ebx
call fcn.00405ce4
test eax, eax
je 0x406c70
cmp byte [ebx + eax - 1], 0x2e
je 0x406c70
mov edi, 0x406d24
push 0x100
lea eax, [ebp - 0x312]
push eax
mov eax, 0x405890
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40d2e0]
mov eax, dword [eax]
call fcn.00403da4
push eax
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 0x458]
mov eax, dword [esi]
call fcn.004029ec
lea eax, [ebp - 0x458]
mov dword [ebp - 0x358], eax
mov byte [ebp - 0x354], 4
lea eax, [ebp - 0x10d]
mov dword [ebp - 0x350], eax
mov byte [ebp - 0x34c], 6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x348], eax
mov byte [ebp - 0x344], 5
mov dword [ebp - 0x340], ebx
mov byte [ebp - 0x33c], 6
mov dword [ebp - 0x338], edi
mov byte [ebp - 0x334], 6
lea eax, [ebp - 0x358]
push eax
push 4
lea ecx, [ebp - 0x312]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004061f0
mov eax, dword [ebp - 4]
call fcn.00405ce4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406d28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbbc
xor ecx, ecx
mov dword [ebp - 0x444], ecx
xor ecx, ecx
push ebp
push 0x406ddf
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x440]
call fcn.00406b9c
mov eax, dword [0x40d2f0]
cmp byte [eax], 0
je 0x406d7d
lea edx, [ebp - 0x440]
mov eax, dword [0x40d2bc]
call fcn.00404900
call fcn.00404883
call fcn.004025f8
jmp 0x406dc6
push pe_nt_image_headers32
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x444]
mov eax, 0x405898
call fcn.004040dc
mov eax, dword [ebp - 0x444]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40d2e0]
mov eax, dword [eax]
call fcn.00403da4
push eax
call sub.KERNEL32.DLL_SetFilePointer
push 0x2010
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x440]
push eax
push 0
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406de6
lea eax, [ebp - 0x444]
call fcn.00403240
ret

Function at 0x4071b8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40735c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 4]
cmp dword [ebx + 0x14], 0
jne 0x4071fd
lea edx, [ebp - 4]
mov eax, 0x4058c8
call fcn.004040dc
jmp 0x40720a
lea edx, [ebp - 4]
mov eax, 0x4058d0
call fcn.004040dc
mov esi, dword [ebx + 0x18]
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp dword [ebp - 0x10], 0x1000
jne 0x4072dc
push 0x105
lea eax, [ebp - 0x125]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_VirtualFree
test eax, eax
je 0x4072dc
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x148], eax
mov byte [ebp - 0x144], 5
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x125]
mov ecx, 0x105
call fcn.0040346c
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00405cac
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x140], eax
mov byte [ebp - 0x13c], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0xb
mov dword [ebp - 0x130], esi
mov byte [ebp - 0x12c], 5
lea eax, [ebp - 0x148]
push eax
push 3
lea edx, [ebp - 0x150]
mov eax, 0x405918
call fcn.004040dc
mov ecx, dword [ebp - 0x150]
mov dl, 1
mov eax, dword [0x4054c0]
call fcn.00406e20
mov ebx, eax
jmp 0x407336
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x168], eax
mov byte [ebp - 0x164], 5
mov eax, dword [ebp - 4]
mov dword [ebp - 0x160], eax
mov byte [ebp - 0x15c], 0xb
mov dword [ebp - 0x158], esi
mov byte [ebp - 0x154], 5
lea eax, [ebp - 0x168]
push eax
push 2
lea edx, [ebp - 0x14c]
mov eax, 0x405870
call fcn.004040dc
mov ecx, dword [ebp - 0x14c]
mov dl, 1
mov eax, dword [0x4054c0]
call fcn.00406e20
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407363
lea eax, [ebp - 0x150]
mov edx, 2
call fcn.00403264
lea eax, [ebp - 4]
call fcn.00403240
ret