joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1fb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x10
push esi
call fcn.004b26f0
push 6
push 1
push 2
mov dword [0x534a0c], eax
call sub.WS2_32.dll_socket
mov ecx, dword [esp + 0x18]
mov esi, eax
xor eax, eax
push ecx
mov dword [esp + 8], eax
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call sub.WS2_32.dll_inet_addr
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], eax
push edx
call sub.WS2_32.dll_htons
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
jge 0x4b201f
push esi
call sub.WS2_32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x4b3830
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x4b383c
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x4b38cf
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x4b3899
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.004b38e0
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x4b386e
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret
Function at 0x4b3900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x4b39fd
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x4b3952
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x4b397e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004b38e0
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x4b39bf
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x4b3941
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4b49e0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5238a4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4b49f3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4b4a34
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x52394c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4b4a66
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4b4a6a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4b4a5b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4b4a88
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4b4a8c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4b4a7d
xor ecx, ecx
mov eax, 0x5238b4
xor ebx, ebx
mov bl, byte [ecx + 0x52395c]
cmp byte [esp + ebx + 0x14], 0
je 0x4b4ab7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x523974]
cmp byte [esp + ebx + 0x14], 0
je 0x4b4ace
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4b4a9e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4b4a27
lea edx, [esp + 0x84]
push edx
call fcn.004b4b10
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x486e18
Capabilities:
Execute syscall

Disassembly:
inc edx
mov dword [0x714872ce], edx
sub esp, eax
sysenter
ret 0xd568
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..3ean
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x16624062
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..7LWLf
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2d83503e
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10016a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp + 8]
call fcn.100169c0
mov ecx, eax
call fcn.10017840
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10016aa7
mov dword [ebp - 4], 1
jmp 0x10016aae
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1003a260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ed17c
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x101d6014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1040862c]
and eax, 1
jne 0x1003a2d3
mov ecx, dword [0x1040862c]
or ecx, 1
mov dword [0x1040862c], ecx
push 0
push 5
push 0x10408408
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1003a2c6
mov byte [ebp - 0xd], 1
jmp 0x1003a2ca
mov byte [ebp - 0xd], 0
mov dl, byte [ebp - 0xd]
mov byte [0x10408630], dl
movzx eax, byte [0x10408630]
test eax, eax
je 0x1003a43c
mov ecx, dword [0x1040862c]
and ecx, 2
jne 0x1003a421
mov edx, dword [0x1040862c]
or edx, 2
mov dword [0x1040862c], edx
mov dword [ebp - 4], 0
push 0
push str.ucp.ini
lea ecx, [ebp - 0x78]
call fcn.1003ab20
mov byte [ebp - 4], 1
push 0
push str.Config
lea ecx, [ebp - 0x60]
call fcn.1003ab20
mov byte [ebp - 4], 2
push 0
push 0x10128350
lea ecx, [ebp - 0x48]
call fcn.1003ab20
mov byte [ebp - 4], 3
push 0
push 0x10408408
lea ecx, [ebp - 0xc0]
call fcn.100265e0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.1002fa60
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 5
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.1002fa60
add esp, 0xc
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 6
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x10408638
call fcn.1002fa60
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x90]
call fcn.10018440
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa8]
call fcn.10018440
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc0]
call fcn.10018440
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.10018440
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.10018440
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.10018440
push 0x100f4eb0
call fcn.100c5ccc
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x10408638
mov ecx, dword [ebp + 8]
call fcn.10018480
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
jmp 0x1003a466
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp + 8]
call fcn.10018460
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1003d1b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ed455
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x101d6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.1003d130
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x30]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x10], 1
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x11], 1
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.10035f70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.1001fdf0
movzx eax, al
test eax, eax
jne 0x1003d24e
lea ecx, [ebp - 0x2c]
push ecx
call fcn.10018bf0
add esp, 4
movzx edx, al
test edx, edx
jne 0x1003d24e
lea eax, [ebp - 0x2c]
push eax
call fcn.10036210
add esp, 4
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x1003d25f
mov dword [ebp - 0x34], 0x10128824
jmp 0x1003d266
mov dword [ebp - 0x34], 0x10128830
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp + 8]
call fcn.10018420
push eax
call fcn.100cd739
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 8], 0
je 0x1003d328
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003d328
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x14], 0xef
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x14], 0xbb
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x14], 0xbf
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
push eax
push 1
push 3
lea ecx, [ebp - 0x14]
push ecx
call fcn.100cdccc
add esp, 0x10
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
push eax
call fcn.100cd261
add esp, 4
push 0x1012882c
mov ecx, dword [ebp + 8]
call fcn.10018420
push eax
call fcn.100cd739
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 8], 0
je 0x1003d328
push 0x40000
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
push ecx
call fcn.100ce1d5
add esp, 4
push eax
call fcn.100cdff6
add esp, 8
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10018440
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c563c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100bec60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100bec81
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x100bec81
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100bec81
push dword [ebp + 0xc]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100d6763
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d6426

Function at 0x100d676e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d65a7
Function at 0x100e31c0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100e31d0

Function at 0x100e3450
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100e345c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.100e3470

Function at 0x100e7bbe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101d6014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x100e7be3
xor eax, eax
jmp 0x100e7c3f
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x100e7c10
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x100e7c10
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x100e7cc6
cmp dword [edi + 0x4c], 0
je 0x100e7c39
mov ecx, edi
call fcn.100e783c
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x100e7c4f
push dword [edi + 0x4c]
push ebx
call fcn.100e714d
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x100e7c3e
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100c563c
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x100f6188]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x100e7c99
sub eax, 1
je 0x100e7c99
dec eax
sub eax, 1
jne 0x100e7c39
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x100e7c2b
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x100e7cb6
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.100cdccc
add esp, 0x10
cmp esi, eax
jne 0x100e7c39
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x100e7c39
mov ax, bx
jmp 0x100e7c3e

Function at 0x100e89c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100e89ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100e89ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406c04
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.0040956c
test esi, esi
jne 0x406c3a
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.004096f4
jmp 0x406c58
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406ae8
mov edi, eax
test esi, esi
je 0x406c58
cmp dword [ebx], 0
je 0x406c58
dec esi
jmp 0x406c41
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4082cc
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.004086b0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408456
test edi, edi
je 0x408456
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408396
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408371
cmp edi, 0xffffffff
je 0x408331
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408331
mov byte [esp], 0
jmp 0x408456
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408371
test ebx, ebx
jne 0x408363
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408363
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408456
lea eax, [esp + 0xc]
call fcn.00407fac
dec ebp
test ebp, ebp
jg 0x408316
cmp edi, 0xffffffff
je 0x408396
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408394
mov byte [esp], 0
jmp 0x408456
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4082da
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408396
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004084c4
mov edx, eax
mov ebx, dword [0x6778fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4083fa
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4083f8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4083fa
xor edi, edi
cmp byte [esp], 0
je 0x408420
mov ebx, dword [esi]
test bl, 1
jne 0x408436
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408400
mov byte [esp + 1], 1
jmp 0x408436
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408420
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4083ad
cmp byte [esp], 0
je 0x408456
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 0x4091fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x67705c], 0
je 0x409263
cmp word [0x677348], 0xd7b2
jne 0x409225
cmp dword [0x677350], 0
jbe 0x409225
mov eax, 0x677344
call dword [0x677360]
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, 0x409290
call fcn.00409de0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x66d032], 0
jne 0x40927f
push 0
push 0x66d9ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40942c
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 [0x66d034], 0
je 0x409457
mov edx, edi
mov eax, esi
call dword [0x66d034]
mov ebx, eax
jmp 0x409468
mov eax, 8
call fcn.004067ec
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x67705d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4093f4
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 0x409498
mov eax, ebx
call fcn.00406808
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40bcc4
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 0x40be29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040956c
cmp si, word [0x66da08]
jb 0x40bd5c
cmp si, word [0x66dc08]
ja 0x40bd5c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bd5c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x66da08]
jae 0x40bd36
mov edi, ebx
dec edi
jmp 0x40bd57
cmp si, word [ebx*8 + 0x66da08]
jbe 0x40bd46
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bd57
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x66da0c]
call fcn.0040bbe4
jmp 0x40bd5c
cmp edi, dword [ebp - 8]
jae 0x40bd20
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40be0b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40be0b
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.0040a1e0
push dword [ebp - 0x160]
push 0x40be44
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a1e0
push dword [ebp - 0x164]
push 0x40be54
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a1e0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a418
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be30
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004095cc
ret
Function at 0x40bfdc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c0e0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x679b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x679ba4]
jne 0x40c028
mov eax, esi
mov edx, 0x679ba6
mov ecx, 0x55
call fcn.0040a1e0
push 0x679b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c0ca
push 0x679b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040956c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c097
cmp byte [0x679b88], 0
je 0x40c05c
mov edx, esi
mov eax, ebx
call fcn.0040bec0
jmp 0x40c097
mov edx, esi
mov eax, ebx
call fcn.0040bcc4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c097
cmp dword [esi], 0
je 0x40c080
mov eax, esi
mov edx, 0x40c0f8
call fcn.0040a338
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bcc4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a338
push 0x679b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x679ba4], bx
mov eax, dword [esi]
call fcn.0040a13c
mov ecx, eax
mov eax, 0x679ba6
mov edx, 0xaa
call fcn.0040bb44
push 0x679b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0e7
lea eax, [ebp - 4]
call fcn.0040956c
ret