joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418200
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov edx, dword [0x63303c]
mov dword [0x636acc], eax
mov eax, dword [0x633038]
mov dword [esp + 0xc], 0
lea ecx, [eax + eax]
or ecx, edx
mov dword [esp + 8], ecx
fild qword [esp + 8]
fadd qword [0x633050]
fstp qword [0x633050]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, dword [0x636acc]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov edx, dword [0x636acc]
add edx, eax
lea eax, [esp + 4]
push eax
push esi
mov dword [0x636acc], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, 0x190
pop esi
add esp, 0xc
ret

Function at 0x62b8a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x633380
cmp edx, dword [eax]
je 0x62b8c7
add eax, 8
inc ecx
cmp eax, 0x633410
jl 0x62b8b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x633380]
jne 0x62b9f5
mov eax, dword [0x637d10]
cmp eax, 1
je 0x62b9cf
test eax, eax
jne 0x62b8f8
cmp dword [0x6332ac], 1
je 0x62b9cf
cmp edx, 0xfc
je 0x62b9f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62b92f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062c290
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062c720
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62b972
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062c720
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x63086c
push edi
call fcn.0062e5f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062c290
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062c2a0
lea eax, [ebp - 0xa0]
push 0x63084c
push eax
call fcn.0062c2a0
push dword [esi + 0x633384]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062c2a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062e564
add esp, 0x2c
pop edi
jmp 0x62b9f5
lea eax, [ebp + 8]
lea esi, [esi + 0x633384]
push 0
push eax
push dword [esi]
call fcn.0062c720
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x24
mov eax, dword [ecx + 4]
push ebx
push esi
mov dword [esp + 0x14], edx
lea esi, [ecx + 4]
mov edx, dword [ecx]
add esi, 4
xor eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
movd xmm0, edx
mov edi, eax
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x20], xmm0
test al, 3
je 0x403350
and edi, 0xfffffffc
add edi, 4
mov eax, dword [0x40e494]
test eax, eax
jne 0x403374
mov ecx, 0x9bab0b12
call fcn.00403f00
mov edx, 0x7facde30
mov ecx, eax
call fcn.00403e60
mov dword [0x40e494], eax
call eax
mov ebx, eax
mov eax, dword [0x40dd18]
test eax, eax
jne 0x40339c
mov ecx, 0x9bab0b12
call fcn.00403f00
mov edx, 0x9ff0609c
mov ecx, eax
call fcn.00403e60
mov dword [0x40dd18], eax
push edi
push 8
push ebx
call eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x403452
shr edi, 2
xor edx, edx
lea ecx, [esi + edi*4]
mov edi, eax
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
mov ecx, eax
cmova ebx, edx
test ebx, ebx
je 0x403442
cmp ebx, 8
jb 0x403427
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
cmp ecx, eax
ja 0x4033e6
lea eax, [ecx - 4]
lea eax, [eax + ebx*4]
cmp eax, esi
jae 0x403427
movdqa xmm1, xmmword [esp + 0x20]
mov eax, ebx
and eax, 7
mov dword [esp + 0xc], ebx
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [ecx]
movdqu xmm0, xmmword [esi]
add edx, 8
pxor xmm0, xmm1
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [esi + 0x10]
add esi, 0x20
pxor xmm0, xmm1
movdqu xmmword [edi + 0x10], xmm0
add edi, 0x20
cmp edx, eax
jb 0x403400
cmp edx, ebx
jae 0x403442
sub edi, esi
lea ecx, [ecx]
mov eax, dword [esi]
lea esi, [esi + 4]
xor eax, dword [esp + 0x14]
inc edx
mov dword [edi + esi - 4], eax
cmp edx, ebx
jb 0x403430
mov edx, dword [esp + 0x18]
test edx, edx
je 0x403450
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4034c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push esi
lea esi, [ecx + 4]
mov dword [esp + 8], edx
lea ebx, [eax + 1]
mov dword [esp + 0x10], eax
add esi, 4
push edi
test bl, 3
je 0x4034e9
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x40e494]
test eax, eax
jne 0x40350d
mov ecx, 0x9bab0b12
call fcn.00403f00
mov edx, 0x7facde30
mov ecx, eax
call fcn.00403e60
mov dword [0x40e494], eax
call eax
mov edi, eax
mov eax, dword [0x40dd18]
test eax, eax
jne 0x403535
mov ecx, 0x9bab0b12
call fcn.00403f00
mov edx, 0x9ff0609c
mov ecx, eax
call fcn.00403e60
mov dword [0x40dd18], eax
lea ecx, [ebx + ebx]
push ecx
push 8
push edi
call eax
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x4035b5
shr ebx, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, edi
lea ecx, [esi + ebx*4]
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
cmova ebx, eax
test ebx, ebx
je 0x4035aa
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [esi]
lea edx, [edx + 8]
xor ecx, edi
lea esi, [esi + 4]
movzx eax, cl
inc ebp
mov word [edx - 8], ax
mov eax, ecx
shr eax, 8
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
mov word [edx - 4], ax
shr ecx, 8
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, ebx
jb 0x403570
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor ecx, ecx
pop ebp
mov word [edi + eax*2], cx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x4035c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push ebp
push esi
lea esi, [ecx + 4]
mov dword [esp + 0xc], edx
lea ebx, [eax + 1]
mov dword [esp + 0x14], eax
add esi, 4
push edi
test bl, 3
je 0x4035ea
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x40e494]
test eax, eax
jne 0x40360e
mov ecx, 0x9bab0b12
call fcn.00403f00
mov edx, 0x7facde30
mov ecx, eax
call fcn.00403e60
mov dword [0x40e494], eax
call eax
mov edi, eax
mov eax, dword [0x40dd18]
test eax, eax
jne 0x403636
mov ecx, 0x9bab0b12
call fcn.00403f00
mov edx, 0x9ff0609c
mov ecx, eax
call fcn.00403e60
mov dword [0x40dd18], eax
push ebx
push 8
push edi
call eax
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4036a2
shr ebx, 2
xor eax, eax
xor edi, edi
mov ecx, ebp
lea edx, [esi + ebx*4]
mov ebx, edx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, edx
cmova ebx, eax
test ebx, ebx
je 0x40369a
mov ebp, dword [esp + 0x10]
lea esp, [esp]
mov edx, dword [esi]
lea ecx, [ecx + 4]
xor edx, ebp
lea esi, [esi + 4]
mov byte [ecx - 4], dl
mov eax, edx
shr eax, 8
inc edi
shr edx, 0x10
mov byte [ecx - 3], al
mov byte [ecx - 2], dl
shr edx, 8
mov byte [ecx - 1], dl
cmp edi, ebx
jb 0x403670
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov byte [eax + ebp], 0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x403bb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov dword [esp], 0x4090
or dword [esp], 0x31656b5b
imul eax, dword [esp], 0x51
push ebx
mov ebx, ecx
mov dword [esp + 4], eax
mov eax, 0xb02c0b03
mov edx, dword [esp + 4]
mul edx
shr edx, 6
mov dword [esp + 4], edx
shl dword [esp + 4], 0x10
or dword [esp + 4], 0xecb0ddf8
add dword [esp + 4], 0x637e
xor dword [esp + 4], 0xeef54176
mov dword [esp + 8], 0x5ef
add dword [esp + 8], 0x6fab
or dword [esp + 8], 0x1ac9183b
shl dword [esp + 8], 8
shr dword [esp + 8], 2
xor dword [esp + 8], 0x325f6ec6
mov dword [esp + 8], 0xc1f4
add dword [esp + 8], 0x1c7b
or dword [esp + 8], 0x28c630b6
add dword [esp + 8], 0xffff17a2
shl dword [esp + 8], 0xb
xor dword [esp + 8], 0x30b50810
cmp byte [ebx], 0
je 0x403cf3
push esi
push edi
lea ecx, [ecx]
mov edi, dword [esp + 0xc]
lea ebx, [ebx + 1]
mov dword [esp + 0x10], 0x5ef
add dword [esp + 0x10], 0x6fab
or dword [esp + 0x10], 0x1ac9183b
shl dword [esp + 0x10], 8
shr dword [esp + 0x10], 2
xor dword [esp + 0x10], 0x325f6ec6
movzx ecx, byte [esp + 0x10]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], 0xc1f4
add dword [esp + 0x10], 0x1c7b
or dword [esp + 0x10], 0x28c630b6
add dword [esp + 0x10], 0xffff17a2
shl dword [esp + 0x10], 0xb
xor dword [esp + 0x10], 0x30b50810
shl esi, cl
movzx ecx, byte [esp + 0x10]
mov edx, dword [esp + 0xc]
movsx eax, byte [ebx - 1]
mov dword [esp + 0xc], eax
add dword [esp + 0xc], esi
shl edx, cl
add dword [esp + 0xc], edx
sub dword [esp + 0xc], edi
cmp byte [ebx], 0
jne 0x403c60
pop edi
pop esi
mov eax, dword [esp + 4]
pop ebx
add esp, 8
ret
Function at 0x403e60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, 0x78
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
mov eax, dword [edi + ebx + 0x1c]
add edi, ebx
add eax, ebx
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, ebx
add eax, ebx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x18], esi
jbe 0x403ebc
lea esp, [esp]
mov ecx, dword [ebp + esi*4]
add ecx, ebx
call fcn.00403bb0
xor eax, 0x3b993195
cmp eax, dword [esp + 0x10]
je 0x403ec6
inc esi
cmp esi, dword [edi + 0x18]
jb 0x403ea0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, edi
jb 0x403ef4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add eax, edi
cmp ecx, eax
jae 0x403ef4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp 0x4040b0
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
sub esp, 0x104
lea edx, [esp]
push esi
mov esi, ecx
push edi
mov al, byte [esi]
test al, al
je 0x4040d6
cmp al, 0x2e
je 0x4040d3
inc esi
mov byte [edx], al
inc edx
mov al, byte [esi]
test al, al
jne 0x4040c3
jmp 0x4040d6
mov byte [edx], 0
mov eax, dword [0x40e470]
test eax, eax
jne 0x4040fa
mov ecx, 0x9bab0b12
call fcn.00403f00
mov edx, 0xcca18ea2
mov ecx, eax
call fcn.00403e60
mov dword [0x40e470], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x404141
mov eax, dword [0x40e2f4]
test eax, eax
jne 0x40412b
mov ecx, 0x9bab0b12
call fcn.00403f00
mov edx, 0xe4b28a79
mov ecx, eax
call fcn.00403e60
mov dword [0x40e2f4], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x404141
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esi + 1]
call fcn.00403bb0
xor eax, 0x3b993195
mov ecx, edi
mov edx, eax
call fcn.00403e60
pop edi
pop esi
add esp, 0x104
ret
Function at 0x403f00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov dword [esp + 0x18], ecx
push edi
mov dword [esp + 0x18], ebx
mov ebp, dword [ebx]
cmp ebp, ebx
je 0x40408d
mov esi, dword [ebp + 0x30]
mov dword [esp + 0x10], 0x4090
or dword [esp + 0x10], 0x31656b5b
imul eax, dword [esp + 0x10], 0x51
mov dword [esp + 0x10], eax
mov eax, 0xb02c0b03
mov ecx, dword [esp + 0x10]
mul ecx
shr edx, 6
mov dword [esp + 0x10], edx
shl dword [esp + 0x10], 0x10
or dword [esp + 0x10], 0xecb0ddf8
add dword [esp + 0x10], 0x637e
xor dword [esp + 0x10], 0xeef54176
mov dword [esp + 0x14], 0x5ef
add dword [esp + 0x14], 0x6fab
or dword [esp + 0x14], 0x1ac9183b
shl dword [esp + 0x14], 8
shr dword [esp + 0x14], 2
xor dword [esp + 0x14], 0x325f6ec6
mov dword [esp + 0x14], 0xc1f4
add dword [esp + 0x14], 0x1c7b
or dword [esp + 0x14], 0x28c630b6
add dword [esp + 0x14], 0xffff17a2
shl dword [esp + 0x14], 0xb
xor dword [esp + 0x14], 0x30b50810
cmp word [esi], 0
je 0x404073
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], 0x5ef
add dword [esp + 0x14], 0x6fab
or dword [esp + 0x14], 0x1ac9183b
shl dword [esp + 0x14], 8
shr dword [esp + 0x14], 2
xor dword [esp + 0x14], 0x325f6ec6
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], 0xc1f4
add dword [esp + 0x14], 0x1c7b
or dword [esp + 0x14], 0x28c630b6
add dword [esp + 0x14], 0xffff17a2
shl dword [esp + 0x14], 0xb
xor dword [esp + 0x14], 0x30b50810
shl edx, cl
movzx ecx, byte [esp + 0x14]
mov edi, dword [esp + 0x10]
movzx eax, word [esi]
shl edi, cl
cmp eax, 0x41
jb 0x404052
cmp eax, 0x5a
ja 0x404052
add eax, 0x20
mov dword [esp + 0x10], eax
add esi, 2
add dword [esp + 0x10], edx
add dword [esp + 0x10], edi
sub dword [esp + 0x10], ebx
cmp word [esi], 0
jne 0x403fd1
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
xor eax, 0x14d5ed60
cmp eax, dword [esp + 0x1c]
je 0x404097
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x403f25
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404370
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x40450e
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x40450e
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x40450e
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x40450e
mov eax, dword [0x40e2a4]
test eax, eax
jne 0x4043db
mov ecx, 0x9bab0b12
call fcn.00403f00
mov edx, 0x24897df
mov ecx, eax
call fcn.00403e60
mov dword [0x40e2a4], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x404505
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [0x40e1e0]
test eax, eax
jne 0x40443b
mov ecx, 0xc6fbcd74
call fcn.00403f00
mov edx, 0x624eee2
mov ecx, eax
call fcn.00403e60
mov dword [0x40e1e0], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x4044be
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x40e1e0]
test eax, eax
jne 0x4044a6
mov ecx, 0xc6fbcd74
call fcn.00403f00
mov edx, 0x624eee2
mov ecx, eax
call fcn.00403e60
mov dword [0x40e1e0], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x404465
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.00404640
mov edx, edi
mov ecx, ebx
call fcn.00404550
pop esi
test eax, eax
jne 0x404505
mov eax, dword [0x40e3cc]
test eax, eax
jne 0x4044f9
mov ecx, 0x9bab0b12
call fcn.00403f00
mov edx, 0xc16beec2
mov ecx, eax
call fcn.00403e60
mov dword [0x40e3cc], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x4067f0
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.004091bc
test esi, esi
jne 0x406826
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.00409344
jmp 0x406844
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004066d4
mov edi, eax
test esi, esi
je 0x406844
cmp dword [ebx], 0
je 0x406844
dec esi
jmp 0x40682d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x407e60
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.00408238
mov byte [esp], al
cmp byte [esp], 0
jne 0x407fe0
test edi, edi
je 0x407fe0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407f20
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407efb
cmp edi, 0xffffffff
je 0x407ebf
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407ebf
mov byte [esp], 0
jmp 0x407fe0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407efb
test ebx, ebx
jne 0x407ef1
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407ef1
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407fe0
call 0x408358
dec ebp
test ebp, ebp
jg 0x407ea4
cmp edi, 0xffffffff
je 0x407f20
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407f1e
mov byte [esp], 0
jmp 0x407fe0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407e6e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f20
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040804c
mov edx, eax
mov ebx, dword [0x55a8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407f84
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407f82
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407f84
xor edi, edi
cmp byte [esp], 0
je 0x407faa
mov ebx, dword [esi]
test bl, 1
jne 0x407fc0
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f8a
mov byte [esp + 1], 1
jmp 0x407fc0
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407faa
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407f37
cmp byte [esp], 0
je 0x407fe0
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 0x408e58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55a058], 0
je 0x408ebf
cmp word [0x55a344], 0xd7b2
jne 0x408e81
cmp dword [0x55a34c], 0
jbe 0x408e81
mov eax, 0x55a340
call dword [0x55a35c]
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, 0x408eec
call fcn.00409ac8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x555032], 0
jne 0x408edb
push 0
push 0x5559ea
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40907c
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 [0x555034], 0
je 0x4090a7
mov edx, edi
mov eax, esi
call dword [0x555034]
mov ebx, eax
jmp 0x4090b8
mov eax, 8
call fcn.00406410
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x55a059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409044
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 0x4090e8
mov eax, ebx
call fcn.0040642c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40baa8
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 0x40bc0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004091bc
cmp si, word [0x555a28]
jb 0x40bb40
cmp si, word [0x555c28]
ja 0x40bb40
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bb40
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x555a28]
jae 0x40bb1a
mov edi, ebx
dec edi
jmp 0x40bb3b
cmp si, word [ebx*8 + 0x555a28]
jbe 0x40bb2a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bb3b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x555a2c]
call fcn.0040b9c8
jmp 0x40bb40
cmp edi, dword [ebp - 8]
jae 0x40bb04
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bbef
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bbef
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.00409f30
push dword [ebp - 0x160]
push 0x40bc28
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409f30
push dword [ebp - 0x164]
push 0x40bc38
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409f30
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc14
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040921c
ret
Function at 0x40bdc0
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 0x40bec3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x55cb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x55cba0]
jne 0x40be0c
mov eax, esi
mov edx, 0x55cba2
mov ecx, 0x55
call fcn.00409f30
push 0x55cb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bead
push 0x55cb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004091bc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40be7b
cmp byte [0x55cb84], 0
je 0x40be40
mov edx, esi
mov eax, ebx
call fcn.0040bca4
jmp 0x40be7b
mov edx, esi
mov eax, ebx
call fcn.0040baa8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40be7b
cmp dword [esi], 0
je 0x40be64
mov eax, esi
mov edx, 0x40bedc
call fcn.0040a088
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040baa8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a088
push 0x55cb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x55cba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00409e74
push eax
push 0x55cba2
call sub.kernel32.dll_lstrcpynW
push 0x55cb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40beca
lea eax, [ebp - 4]
call fcn.004091bc
ret