joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427f80
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x427f9e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x427f93
pop esi
ret

Function at 0x42bf60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x42bf81
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x42bfdb
inc edi
cmp edi, esi
jl 0x42bf75
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x42c010
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x42bfca
cmp byte [eax], bl
je 0x42bfe5
cmp byte [eax + 1], bl
je 0x42bfee
cmp byte [eax + 2], bl
je 0x42bff8
cmp byte [eax + 3], bl
je 0x42c004
add eax, 4
cmp eax, edi
jb 0x42bfa1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x43ac73
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x441ee8
call fcn.004301ac
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004403d8
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x43acb2
call fcn.004403d8
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43acc0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x43acce
or eax, 0xffffffff
jmp 0x43adb6
mov ecx, esi
call fcn.0043abe9
mov dword [ebp - 0x14], eax
call fcn.0043bc5d
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x43ad05
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x43ad05
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0043bc11
push dword [ebp - 0x14]
call fcn.0043b742
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0043a981
cmp eax, edi
je 0x43ad78
test byte [esi + 0x24], 0x10
je 0x43ad46
push 4
mov ecx, esi
pop ebx
call fcn.0043b142
test ah, 1
je 0x43ad3e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0043d768
cmp dword [esi + 0x1c], edi
je 0x43ad78
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0043b176
jmp 0x43ad78
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x43ad8c
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x43ada5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x43ada5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0043ac23
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x43d616
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x43d658
call fcn.004403d8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43d658
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43d64f
xor eax, eax
jmp 0x43d660
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043d666
pop edi
pop esi
pop ebx
ret 4
Function at 0x44096e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44099c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4409ba
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004408d4
jmp 0x4409ba
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4409ba
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004408d4
test edi, edi
mov eax, edi
jne 0x4409a4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x425c7f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add al, 0
add byte [ebx], al
mov eax, dword [esi + 0xc]
mov eax, dword [esi + 0xc]
Function at 0x4282a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xf
xor eax, eax
mov esi, 0x45fcfc
pop ebx
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], ebx
mov byte [ebp + 0x78], al
call 0x45377f
pop ecx
push eax
push esi
lea ecx, [ebp + 0x78]
call fcn.0042ab2c
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], ebx
mov byte [ebp + 0x30], al
lea eax, [ebp + 0x78]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0x30]
call fcn.00429ee4
movaps xmm0, xmmword [0x4610b0]
lea eax, [ebp - 0x10]
push 2
pop edi
push eax
lea eax, [ebp + 0x30]
mov dword [ebp + 0x58], edi
or ebx, 0xffffffff
mov ecx, 0x46ee80
push eax
movups xmmword [ebp + 0x48], xmm0
mov dword [ebp + 0x5c], ebx
call fcn.0043e793
lea ecx, [ebp + 0x30]
call fcn.0042aa8d
lea ecx, [ebp + 0x78]
invalid
Function at 0x428717
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [ebp + 0x60]
call fcn.0042ab2c
xor eax, eax
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], eax
mov byte [ebp], al
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0x25
push eax
lea ecx, [ebp]
call fcn.00429ee4
movaps xmm0, xmmword [0x461120]
movups xmmword [ebp + 0x18], xmm0
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
lea eax, [ebp - 0x14]
mov ecx, 0x46f054
push eax
lea eax, [ebp]
push eax
call fcn.0043e793
lea ecx, [ebp]
call fcn.0042aa8d
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 0x27
call fcn.0042aa8d
xor eax, eax
mov dword [ebp + 0x8c], edi
mov esi, 0x45fe8c
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp + 0x88], eax
mov byte [ebp + 0x78], al
call 0x45377f
pop ecx
push eax
push esi
lea ecx, [ebp + 0x78]
call fcn.0042ab2c
xor eax, eax
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x40], eax
mov byte [ebp + 0x30], al
lea eax, [ebp + 0x78]
mov byte [ebp - 4], 0x29
push eax
lea ecx, [ebp + 0x30]
call fcn.00429ee4
movaps xmm0, xmmword [0x4610f0]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x30]
mov dword [ebp + 0x58], ebx
push eax
mov ecx, 0x46f088
mov dword [ebp + 0x5c], ebx
movups xmmword [ebp + 0x48], xmm0
call fcn.0043e793
lea ecx, [ebp + 0x30]
call fcn.0042aa8d
lea ecx, [ebp + 0x78]
mov byte [ebp - 4], 0x2b
call fcn.0042aa8d
xor eax, eax
mov dword [ebp + 0x74], edi
mov esi, 0x45feb4
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp + 0x70], eax
mov byte [ebp + 0x60], al
call 0x45377f
pop ecx
push eax
push esi
lea ecx, [ebp + 0x60]
call fcn.0042ab2c
xor eax, eax
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], eax
mov byte [ebp], al
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0x2d
push eax
lea ecx, [ebp]
call fcn.00429ee4
movaps xmm0, xmmword [0x461120]
movups xmmword [ebp + 0x18], xmm0
mov dword [ebp + 0x28], ebx
lea eax, [ebp - 0x14]
mov dword [ebp + 0x2c], ebx
push eax
lea eax, [ebp]
mov ecx, 0x46f0bc
push eax
call fcn.0043e793
lea ecx, [ebp]
call fcn.0042aa8d
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 0x2f
call fcn.0042aa8d
xor eax, eax
mov dword [ebp + 0x8c], edi
mov esi, 0x45fedc
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp + 0x88], eax
mov byte [ebp + 0x78], al
call 0x45377f
pop ecx
push eax
push esi
lea ecx, [ebp + 0x78]
call fcn.0042ab2c
xor eax, eax
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x40], eax
mov byte [ebp + 0x30], al
lea eax, [ebp + 0x78]
mov byte [ebp - 4], 0x31
push eax
lea ecx, [ebp + 0x30]
call fcn.00429ee4
movaps xmm0, xmmword [0x461110]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x30]
mov dword [ebp + 0x58], ebx
push eax
mov ecx, 0x46f0f0
mov dword [ebp + 0x5c], ebx
movups xmmword [ebp + 0x48], xmm0
call fcn.0043e793
lea ecx, [ebp + 0x30]
call fcn.0042aa8d
lea ecx, [ebp + 0x78]
mov byte [ebp - 4], 0x33
call fcn.0042aa8d
xor eax, eax
mov dword [ebp + 0x74], edi
mov esi, 0x45ff04
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp + 0x70], eax
mov byte [ebp + 0x60], al
call 0x45377f
pop ecx
push eax
push esi
lea ecx, [ebp + 0x60]
call fcn.0042ab2c
xor eax, eax
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], eax
mov byte [ebp], al
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0x35
push eax
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40105b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448004]
jne 0x401065
repz ret
jmp fcn.00401708

Function at 0x406f5a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x448004]
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.00404664
and dword [ebp - 0x14], 0
cmp dword [0x44a94c], 0
mov dword [ebp - 0x18], eax
jne 0x40700d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4070b5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4070b5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44a94c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44a950], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44a954], eax
call edi
push eax
call esi
mov dword [0x44a95c], eax
test eax, eax
je 0x40700d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44a958], eax
mov eax, dword [0x44a958]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407066
cmp dword [0x44a95c], ecx
je 0x407066
push eax
call esi
push dword [0x44a95c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407066
test ebx, ebx
je 0x407066
call edi
test eax, eax
je 0x40705d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40705d
test byte [ebp - 8], 1
jne 0x407066
or dword [ebp + 0x10], 0x200000
jmp 0x407099
mov eax, dword [0x44a950]
cmp eax, dword [ebp - 0x18]
je 0x407099
push eax
call esi
test eax, eax
je 0x407099
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407099
mov eax, dword [0x44a954]
cmp eax, dword [ebp - 0x18]
je 0x407099
push eax
call esi
test eax, eax
je 0x407099
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44a94c]
call esi
test eax, eax
je 0x4070b5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4070b7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040105b
leave
ret
Function at 0x4015cf
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_wcsncpy]
push edi
mov edi, dword [esp + 0x18]
push 0x100
mov esi, 0x4030e4
push dword [edi]
push esi
call ebx
push 0x4030c0
push esi
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 0x14
jmp loc.00408000

Function at 0x40170f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402088
push 0x401850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403cf8], 0xffffffff
or dword [0x403cfc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403cf4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403cf0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403d00], eax
call fcn.00401841
cmp dword [0x4030b0], 0
jne 0x401792
push 0x40183e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040182c
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403cec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403ce8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004015cf
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x2d2e713f
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x62207366
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x407114
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407156
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407176
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040a5e4
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x40736c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004098c0
test esi, esi
jne 0x4073a2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409a48
jmp 0x4073c0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004072b0
mov edi, eax
test esi, esi
je 0x4073c0
cmp dword [ebx], 0
je 0x4073c0
dec esi
jmp 0x4073a9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x7b3008], 0x8088405
inc edx
mov dword [ebx + 0x7b3008], edx
fld qword [ebx + 0x7b3798]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret
Function at 0x4084d4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408960
mov byte [esp], al
cmp byte [esp], 0
jne 0x40865d
test edi, edi
je 0x40865d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40859d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408578
cmp edi, 0xffffffff
je 0x408539
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408539
mov byte [esp], 0
jmp 0x40865d
cmp dword [esi], 1
jg 0x408578
cmp dword [esi], 0
jne 0x40856a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40856a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40865d
lea eax, [esp + 0xc]
call fcn.004081ac
dec ebp
test ebp, ebp
jg 0x40851e
cmp edi, 0xffffffff
je 0x40859d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40859b
mov byte [esp], 0
jmp 0x40865d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4084e2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40859d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004086cc
mov edx, eax
mov ebx, dword [0x7ee8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408601
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4085ff
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408601
xor edi, edi
cmp byte [esp], 0
je 0x408627
mov ebx, dword [esi]
test bl, 1
jne 0x40863d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408607
mov byte [esp + 1], 1
jmp 0x40863d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408627
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4085b4
cmp byte [esp], 0
je 0x40865d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409558
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7ee05c], 0
je 0x4095bf
cmp word [0x7ee348], 0xd7b2
jne 0x409581
cmp dword [0x7ee350], 0
jbe 0x409581
mov eax, 0x7ee344
call dword [0x7ee360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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
mov eax, 0x4095ec
call fcn.0040a1cc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x7b3036], 0
jne 0x4095db
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x7b3038], 0
je 0x4097ab
mov edx, edi
mov eax, esi
call dword [0x7b3038]
mov ebx, eax
jmp 0x4097bc
mov eax, 8
call fcn.00406f20
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7ee05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409748
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4097ec
mov eax, ebx
call fcn.00406f3c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40ca80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40cbe5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004098c0
cmp si, word [0x7b3a10]
jb 0x40cb18
cmp si, word [0x7b3c10]
ja 0x40cb18
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40cb18
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x7b3a10]
jae 0x40caf2
mov edi, ebx
dec edi
jmp 0x40cb13
cmp si, word [ebx*8 + 0x7b3a10]
jbe 0x40cb02
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40cb13
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x7b3a14]
call fcn.0040c9a0
jmp 0x40cb18
cmp edi, dword [ebp - 8]
jae 0x40cadc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40cbc7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cbc7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a5e4
push dword [ebp - 0x160]
push 0x40cc00
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a5e4
push dword [ebp - 0x164]
push 0x40cc10
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a5e4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a81c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbec
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409920
ret