joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474122
Capabilities:
Inspect section memory permissions

Disassembly:
les edx, [eax]
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x47441c
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.00473b94
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x474193
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00473b94
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x474160
call fcn.00473c23
cmp ah, dh
aas
inc esi
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x474412
add eax, esi
mov dword [ebp - 0x44], eax
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x474207
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x4741c8
cmp dword [eax + 0xc], ebx
je 0x47426b
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00473c23
or dl, byte [esi - 0x6b]
loope 0x47421a
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
jge 0x474219
jmp 0x474210
call fcn.00473c23
test al, 0x3e
cmp dl, cl
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x474259
inc ebp
adc byte [ebx + 0x74c33b00], cl
aaa
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x474234
and eax, 0xffff
push eax
jmp 0x474238
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00473be8
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
invalid
test dl, al
add dword [eax], eax

Function at 0x47424f
Capabilities:
Inspect section memory permissions

Disassembly:
add byte [ebx + 0x458304c7], al
adc byte [ebx + ebp*8], al
rol byte [ebx - 0x74eb43bb], 0xbd
js 0x474260
invalid
invalid

Function at 0x47853a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00467fc9
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x478572
xor eax, eax
jmp 0x47859e
cmp esi, dword [ebp - 4]
je 0x47859b
cmp dword [ebp + 0xc], 0
je 0x47859b
push dword [edi + 0x9c]
call fcn.00478148
push dword [edi + 0x9c]
mov esi, eax
call fcn.00463ce5
pop ecx
pop ecx
cmp esi, eax
je 0x47856e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x102106ea
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 [0x102727d0], 0
mov byte [0x102727d4], 0
mov dword [0x102727c8], 0x17a8
mov dword [0x102727cc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10210759
mov dword [0x102727cc], 0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x1021078b
mov eax, dword [0x102727c8]
add eax, 0x20cc
mov dword [0x102727c4], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [0x102727c4], 0x1cfc
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102727cc]
add eax, 1
mov dword [0x102727cc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10210759
jmp 0x10210731
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x102727d8], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x102727c4], 0x1994
mov edi, dword [0x102727d0]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x102727d8], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x102727d0], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x102727d4], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov esi, dword [0x102727c8]
add esi, 0xfffff0f5
mov dword [0x102727c8], esi
mov cl, byte [0x102727d4]
mov esi, dword [0x102727d0]
mov byte [ebx + esi], cl
mov dword [0x102727c4], 0x195b
mov esi, dword [0x102727cc]
add esi, 1
mov dword [0x102727cc], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1021078b
jmp 0x10210742
Function at 0x10210c61
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 8]
mov ecx, dword [0x102727c4]
add ecx, 0xfffff1da
mov dword [0x102727c4], ecx
mov dword [ebp - 0x10], eax
call fcn.10210307
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10210caf
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x102727c8], 0x1650
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x10210ddc
jmp 0x10210d5b
mov al, byte [ebp - 0x31]
test al, 1
jne 0x10210dc3
jmp 0x10210d27
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, 0x20
setb cl
mov dl, byte [ebp - 0x3d]
cmp dl, 0
setne ch
mov dh, byte [ebp - 0x31]
and dh, ch
and dh, cl
test dh, 1
mov dword [ebp - 0x44], eax
jne 0x10210d91
jmp 0x10210cea
mov eax, dword [ebp - 0x48]
add eax, 1
mov ecx, dword [ebp - 0x4c]
add ecx, 2
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
xor eax, eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x30], eax
jb 0x10210d77
jmp 0x10210ddc
mov eax, dword [ebp - 0x24]
add eax, 0x24
mov dword [ebp - 0x60], eax
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x60]
add ecx, dword [ecx + edx]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov edx, dword [ebp - 0x64]
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 - 0x38], eax
mov byte [ebp - 0x3d], bh
mov byte [ebp - 0x31], cl
je 0x10210cea
jmp 0x10210cf7
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10210e36
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x102727c8], 0xec7
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10210e83
xor eax, eax
mov dword [0x102727c8], 0x552
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add esp, 0x24
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x10210ec3
jmp 0x10210eac
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10210f29
jmp 0x10210e6c
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x10210e83
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x10210e6c
mov dword [0x102727c8], 0x1ad2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10210e6c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
sete dl
mov byte [ebp - 0x21], dl
mov al, byte [ebp - 0x21]
test al, 1
jne 0x10210f11
jmp 0x10210e6c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x10210e9b
jmp 0x10210e6c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10210e6c
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x14], eax
je 0x10210e7b
jmp 0x10210e6c
Function at 0x10210f5c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x102727c8]
mov edi, esi
add edi, 0xfffff500
mov dword [0x102727c4], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x102135a0]
mov dh, byte [eax + 0x10213571]
sub dh, dl
mov byte [ebp + eax - 0x28], dh
cmp ecx, 0xe
mov dword [ebp - 0x38], ecx
jne 0x10210f8c
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
add ecx, 0xdf4
mov dword [0x102727c4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10211711
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
call fcn.1021046d
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
je 0x102110be
mov eax, dword [ebp - 0x40]
mov dword [0x102727c4], 0x2474
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 dword [0x102727c4], 0x21bd
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x48], eax
call fcn.102105b9
xor eax, eax
mov dword [0x102727c8], 0xc2e
mov ecx, dword [ebp - 0x48]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x1c], ecx
mov ecx, dword [0x102727c8]
mov esi, ecx
add esi, 0xfffff42a
mov dword [0x102727c8], esi
mov esi, dword [ebp - 0x48]
mov dword [edx + 0x48], esi
mov dword [0x102727c4], 0x13e6
cmp esi, 0
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], eax
je 0x102110be
mov eax, dword [ebp - 0x48]
add eax, 0x15c7
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
add eax, 0xffffdeeb
mov dword [0x102727c4], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x58
pop esi
pop edi
pop ebp
ret
Function at 0x1021125d
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 [0x102727cc], 0
mov dword [0x102727d0], 0
mov dword [0x102727dc], 0
mov ebx, dword [0x102727c8]
add ebx, 0xffffe838
mov dword [0x102727c4], ebx
mov dword [0x102727c8], 0x206a
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 0x102113e3
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x102727c4], 0x13d3
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102727cc], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x102727d0], edx
mov dword [0x102727c4], 0xfffff4f3
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x102727d4], cl
mov dword [0x102727c8], 0x1200
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x102727d4]
mov edx, dword [0x102727d0]
mov byte [edi + edx], cl
mov dword [0x102727c4], 0xa15
mov edx, dword [0x102727cc]
movzx edx, byte [edi + edx]
mov ebx, dword [0x102727d0]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x102727dc], ebx
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov byte [0x102727e1], ch
mov byte [0x102727e2], cl
xor ch, cl
mov byte [0x102727e0], ch
mov edx, dword [0x102727c8]
add edx, 0xfffffe57
mov dword [0x102727c4], edx
mov edx, dword [ebp - 0x1c]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x102113e3
mov eax, dword [0x102727cc]
mov ecx, dword [0x102727d0]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x102112d2
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1021152b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
call fcn.10001073
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x10211551
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.10210860
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x58], 0x158e00
mov ecx, dword [0x102727b0]
mov dword [esp + 0x88], ecx
mov ecx, dword [0x102727b4]
mov dword [esp + 0x60], ecx
mov dword [0x102727c8], 0x1c4a
mov ecx, dword [0x102727b8]
mov dword [esp + 0x48], ecx
mov ecx, dword [0x102727bc]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1c], eax
lea eax, [0x10210de7]
mov ecx, dword [0x102727c0]
mov dword [esp + 0x7c], ecx
mov dword [0x102727c4], 0x2267
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x102115ef
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x10211603
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x102115cc
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x38], edx
call fcn.10210e36
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x10211653
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10210f5c
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
jmp 0x10211549
Function at 0x407238
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 0x40727a
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 0x40729a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040aa2c
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x407494
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.00409c78
test esi, esi
jne 0x4074ca
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.00409e00
jmp 0x4074e8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004073d8
mov edi, eax
test esi, esi
je 0x4074e8
cmp dword [ebx], 0
je 0x4074e8
dec esi
jmp 0x4074d1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4088c0
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.00408d80
mov byte [esp], al
cmp byte [esp], 0
jne 0x408a49
test edi, edi
je 0x408a49
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408989
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408964
cmp edi, 0xffffffff
je 0x408925
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408925
mov byte [esp], 0
jmp 0x408a49
cmp dword [esi], 1
jg 0x408964
cmp dword [esi], 0
jne 0x408956
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408956
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408a49
lea eax, [esp + 0xc]
call fcn.00408594
dec ebp
test ebp, ebp
jg 0x40890a
cmp edi, 0xffffffff
je 0x408989
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408987
mov byte [esp], 0
jmp 0x408a49
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4088ce
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408989
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408ac4
mov edx, eax
mov ebx, dword [0xa798fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4089ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4089eb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4089ed
xor edi, edi
cmp byte [esp], 0
je 0x408a13
mov ebx, dword [esi]
test bl, 1
jne 0x408a29
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089f3
mov byte [esp + 1], 1
jmp 0x408a29
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a13
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4089a0
cmp byte [esp], 0
je 0x408a49
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 0x409910
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0xa7905c], 0
je 0x409977
cmp word [0xa79348], 0xd7b2
jne 0x409939
cmp dword [0xa79350], 0
jbe 0x409939
mov eax, 0xa79344
call dword [0xa79360]
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, 0x4099a4
call fcn.0040a650
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0xa59032], 0
jne 0x409993
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409b38
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 [0xa59034], 0
je 0x409b63
mov edx, edi
mov eax, esi
call dword [0xa59034]
mov ebx, eax
jmp 0x409b74
mov eax, 8
call fcn.00407094
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0xa7905d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b00
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 0x409ba4
mov eax, ebx
call fcn.004070b0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d734
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 0x40d89b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409c78
cmp si, word [0xa59a18]
jb 0x40d7cc
cmp si, word [0xa59c18]
ja 0x40d7cc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d7cc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0xa59a18]
jae 0x40d7a6
mov edi, ebx
dec edi
jmp 0x40d7c7
cmp si, word [ebx*8 + 0xa59a18]
jbe 0x40d7b6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d7c7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0xa59a1c]
call fcn.0040d650
jmp 0x40d7cc
cmp edi, dword [ebp - 8]
jae 0x40d790
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d87b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d87b
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.0040aa2c
push dword [ebp - 0x160]
push 0x40d8b8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aa2c
push dword [ebp - 0x164]
push 0x40d8c8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aa2c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ac64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d8a2
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409cd8
pop eax
jmp eax
Function at 0x40da50
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 0x40db56
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa7bc14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0xa7bc2c]
jne 0x40da9c
mov eax, esi
mov edx, 0xa7bc2e
mov ecx, 0x55
call fcn.0040aa2c
push 0xa7bc14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40db3e
push 0xa7bc14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409c78
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40db0b
cmp byte [0xa7bc10], 0
je 0x40dad0
mov edx, esi
mov eax, ebx
call fcn.0040d934
jmp 0x40db0b
mov edx, esi
mov eax, ebx
call fcn.0040d734
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40db0b
cmp dword [esi], 0
je 0x40daf4
mov eax, esi
mov edx, 0x40db70
call fcn.0040ab84
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d734
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ab84
push 0xa7bc14
call sub.kernel32.dll_EnterCriticalSection
mov word [0xa7bc2c], bx
mov eax, dword [esi]
call fcn.0040a974
mov ecx, eax
mov eax, 0xa7bc2e
mov edx, 0xaa
call fcn.0040d5b0
push 0xa7bc14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db5d
lea eax, [ebp - 4]
call fcn.00409c78
pop eax
jmp eax