joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058b0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x404
lea ecx, [esp + 4]
push ebx
push ebp
push esi
sub esi, esi
push edi
sub eax, eax
mov dword [ecx], eax
inc eax
add ecx, 4
cmp eax, 0x100
jl 0x4058c2
mov ebx, dword [esp + 0x424]
mov ebp, dword [esp + 0x41c]
xor ecx, ecx
lea edi, [esp + 0x14]
push ecx
pop eax
xor edx, edx
div ebx
xor eax, eax
mov al, byte [edx + ebp]
mov edx, dword [edi]
add eax, edx
add esi, eax
and esi, 0x800000ff
jns 0x405904
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [edi]
mov eax, dword [esp + esi*4 + 0x14]
mov byte [esp + 0x10], dl
mov dword [edi], eax
mov edx, dword [esp + 0x10]
add edi, 4
and edx, 0xff
inc ecx
cmp ecx, 0x100
mov dword [esp + esi*4 + 0x14], edx
jl 0x4058e3
mov eax, dword [esp + 0x420]
xor edx, edx
test eax, eax
jbe 0x4059b2
mov ebp, dword [esp + 0x418]
inc ecx
and ecx, 0x800000ff
jns 0x40594f
dec ecx
or ecx, 0xffffff00
inc ecx
mov edi, dword [esp + ecx*4 + 0x14]
add esi, edi
and esi, 0x800000ff
jns 0x405965
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esp + ecx*4 + 0x14]
mov edi, dword [esp + esi*4 + 0x14]
mov byte [esp + 0x10], bl
mov dword [esp + ecx*4 + 0x14], edi
mov edi, dword [esp + 0x10]
and edi, 0xff
mov dword [esp + esi*4 + 0x14], edi
mov ebx, dword [esp + ecx*4 + 0x14]
add ebx, edi
and ebx, 0x800000ff
jns 0x405999
dec ebx
or ebx, 0xffffff00
inc ebx
mov bl, byte [esp + ebx*4 + 0x14]
xor byte [edx + ebp], bl
inc edx
cmp edx, eax
jb 0x40593e
pop edi
push ebp
pop eax
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
mov eax, dword [esp + 0x418]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
Function at 0x40a090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40b56b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push ecx
pop esi
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40c658
mov eax, dword [esi + 0x30]
sub ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x40a120
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
push edi
pop ebx
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x40a0e7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
or eax, eax
jne 0x40a111
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40a126
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40a126
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x40c324
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
push esi
pop ecx
mov dword [edi], 0x40c310
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040b03c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40b10f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c7c0
push 0x40b296
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
sub ebx, ebx
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x440fac], 0xffffffff
or dword [0x440fb0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x440fa0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x440f9c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x440fa8], eax
call fcn.0040b295
cmp dword [0x440ec0], ebx
jne 0x40b192
push 0x40b292
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040b280
push 0x40e014
push 0x40e010
call sub.MSVCRT.dll__initterm
mov eax, dword [0x440f98]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x440f94]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40e00c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40b225
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x40b1f9
cmp al, 0x22
jne 0x40b1eb
cmp byte [esi], 0x22
jne 0x40b202
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x40b20c
cmp al, 0x20
jbe 0x40b1fe
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40b230
movzx eax, word [ebp - 0x2c]
jmp 0x40b233
cmp byte [esi], 0x20
jbe 0x40b202
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40b225
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], 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 - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x433005
Capabilities:
Encode data using xor

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x2dd77823
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x1e7147d7
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401fee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [0x4824b8]
xor ecx, ecx
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402063
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004029b8
lea ecx, [esp + 0x14]
call fcn.00401e1e
cmp eax, 0x8aafdc01
je 0x40207a
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402a45
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x10]
jb 0x40202a
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406c93
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402d84
push eax
call fcn.00402ffd
mov eax, dword [ebx + 0x24]
pop ecx
mov ecx, dword [esp + 0xc]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402a45
jmp 0x402065
Function at 0x413736
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004133d8

Function at 0x413741
Capabilities:
Read file on windows

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

Function at 0x413b3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407bb0
mov eax, dword [0x428040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004125cd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413b7d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413cd9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d260
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x482180]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414d0b
mov ecx, dword [esi*4 + 0x482180]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x413cd2
cmp eax, dword [edi + ecx + 0x24]
jne 0x413cd2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413cd2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414d0b
add esp, 0x14
test edx, edx
jl 0x413cd2
jg 0x413c48
test eax, eax
jb 0x413cd2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413cd2
jl 0x413c62
cmp dword [ebp - 0x1008], eax
ja 0x413cd2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413c80
test ebx, ebx
je 0x413cb9
cmp ecx, edi
jae 0x413cb9
mov al, byte [ecx]
cmp al, 0xd
jne 0x413c9a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413ca6
cmp byte [ecx + 1], 0xa
jne 0x413ca6
inc ecx
jmp 0x413ca6
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413c80
cmp edx, ebx
jne 0x413c80
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413cd7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406c93
leave
ret
Function at 0x4141a9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x482180]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4141e9
cmp byte [ebx], 0xa
jne 0x4141e9
or byte [eax + edi + 0x28], 4
jmp 0x4141ee
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4142ec
mov al, byte [edx]
cmp al, 0x1a
je 0x4142ce
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41421d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414242
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41424c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4141ff
jmp 0x4142ec
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4142c9
cmp dword [ebp - 0xc], 0
je 0x4142c9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482180]
test byte [eax + edi + 0x28], 0x48
je 0x4142a3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41428e
mov byte [esi], dl
jmp 0x41429f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482180]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4142ec
cmp byte [ebp - 1], 0xa
jne 0x4142b2
cmp esi, ebx
jne 0x4142b2
mov byte [esi], 0xa
jmp 0x4142eb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414d29
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4142ec
mov byte [esi], 0xd
jmp 0x4142eb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482180]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4142e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4142ec
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4142f5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x482180]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414338
cmp word [esi], dx
jne 0x414338
or byte [edi + eax + 0x28], 4
jmp 0x41433d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x414490
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x414470
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41437f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4143b5
cmp eax, edx
jae 0x4143c1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x414357
jmp 0x414490
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41446c
cmp dword [ebp - 0x14], 0
je 0x41446c
mov eax, dword [ebx*4 + 0x482180]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x414444
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41440d
mov word [esi], cx
jmp 0x414440
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x482180]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x482180]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x482180]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x414490
pop ebx
cmp word [ebp - 4], bx
jne 0x414455
cmp esi, dword [ebp + 0xc]
jne 0x414455
mov word [esi], bx
jmp 0x41448d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414d29
add esp, 0x10
cmp word [ebp - 4], bx
je 0x414490
push 0xd
jmp 0x414489
mov ecx, dword [ebx*4 + 0x482180]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414487
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414490
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x406698
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 0x4066da
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 0x4066fa
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040b45c
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x406950
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.0040a2d8
test esi, esi
jne 0x406986
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.0040a460
jmp 0x4069a4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406834
mov edi, eax
test esi, esi
je 0x4069a4
cmp dword [ebx], 0
je 0x4069a4
dec esi
jmp 0x40698d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xa7e008], 0x8088405
inc edx
mov dword [ebx + 0xa7e008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x408fc4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040939c
mov byte [esp], al
cmp byte [esp], 0
jne 0x409144
test edi, edi
je 0x409144
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409084
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40905f
cmp edi, 0xffffffff
je 0x409023
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409023
mov byte [esp], 0
jmp 0x409144
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40905f
test ebx, ebx
jne 0x409055
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409055
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409144
call 0x4094bc
dec ebp
test ebp, ebp
jg 0x409008
cmp edi, 0xffffffff
je 0x409084
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409082
mov byte [esp], 0
jmp 0x409144
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408fd2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409084
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004091b0
mov edx, eax
mov ebx, dword [reloc.gdi32.dll_ExtTextOutW]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4090e8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4090e6
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4090e8
xor edi, edi
cmp byte [esp], 0
je 0x40910e
mov ebx, dword [esi]
test bl, 1
jne 0x409124
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4090ee
mov byte [esp + 1], 1
jmp 0x409124
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40910e
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40909b
cmp byte [esp], 0
je 0x409144
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409f38
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0xa90058], 0
je 0x409f9f
cmp word [0xa90344], 0xd7b2
jne 0x409f61
cmp dword [reloc.kernel32.dll_ExitThread], 0
jbe 0x409f61
mov eax, 0xa90340
call dword [0xa9035c]
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, 0x409fcc
call fcn.0040adbc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0xa7e034], 0
jne 0x409fbb
push 0
push 0xa7e9f2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a198
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 [0xa7e038], 0
je 0x40a1c3
mov edx, edi
mov eax, esi
call dword [0xa7e038]
mov ebx, eax
jmp 0x40a1d4
mov eax, 8
call fcn.004064f4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0xa90059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a160
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 0x40a204
mov eax, ebx
call fcn.00406510
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d254
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 0x40d3b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a2d8
cmp si, word [0xa7ea30]
jb 0x40d2ec
cmp si, word [0xa7ec30]
ja 0x40d2ec
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d2ec
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0xa7ea30]
jae 0x40d2c6
mov edi, ebx
dec edi
jmp 0x40d2e7
cmp si, word [ebx*8 + 0xa7ea30]
jbe 0x40d2d6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d2e7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0xa7ea34]
call fcn.0040d174
jmp 0x40d2ec
cmp edi, dword [ebp - 8]
jae 0x40d2b0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d39b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d39b
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.0040b45c
push dword [ebp - 0x160]
push 0x40d3d4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b45c
push dword [ebp - 0x164]
push 0x40d3e4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b45c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3c0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a338
ret
Function at 0x40d56c
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 0x40d66f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa92b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0xa92ba0]
jne 0x40d5b8
mov eax, esi
mov edx, 0xa92ba2
mov ecx, 0x55
call fcn.0040b45c
push 0xa92b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d659
push 0xa92b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a2d8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d627
cmp byte [0xa92b84], 0
je 0x40d5ec
mov edx, esi
mov eax, ebx
call fcn.0040d450
jmp 0x40d627
mov edx, esi
mov eax, ebx
call fcn.0040d254
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d627
cmp dword [esi], 0
je 0x40d610
mov eax, esi
mov edx, 0x40d688
call fcn.0040b5b4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d254
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b5b4
push 0xa92b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0xa92ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040b3a0
push eax
push 0xa92ba2
call sub.kernel32.dll_lstrcpynW
push 0xa92b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d676
lea eax, [ebp - 4]
call fcn.0040a2d8
ret