joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100012e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [ebx]
shl eax, 2
test eax, eax
je 0x10001313
mov edi, dword [ebp + 8]
mov edx, esi
sub edi, esi
nop
mov al, byte [edi + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
inc ecx
mov eax, dword [ebx]
shl eax, 2
cmp ecx, eax
jb 0x10001300
mov eax, dword [ebx + 4]
mov edi, dword [ebx]
inc eax
shl edi, 2
shl eax, 4
cmp edi, eax
jae 0x100014b7
nop word [eax + eax]
mov al, byte [esi + edi - 2]
xor edx, edx
mov cl, byte [esi + edi - 4]
mov ch, byte [esi + edi - 3]
mov byte [ebp - 1], al
mov al, byte [esi + edi - 1]
mov esi, dword [ebx]
mov byte [ebp - 2], al
mov eax, edi
shr eax, 2
div esi
mov byte [ebp + 0xb], cl
mov byte [ebp - 3], ch
test edx, edx
jne 0x100013eb
mov dl, cl
shl esi, 2
movzx ecx, ch
mov eax, ecx
and ecx, 0xf
and eax, 0xfffffff0
mov cl, byte [eax + ecx + 0x10012dc0]
mov byte [ebp + 0xb], cl
movzx ecx, byte [ebp - 1]
mov eax, ecx
and ecx, 0xf
and eax, 0xfffffff0
mov al, byte [eax + ecx + 0x10012dc0]
movzx ecx, byte [ebp - 2]
mov byte [ebp - 3], al
mov eax, ecx
and eax, 0xfffffff0
and ecx, 0xf
mov al, byte [eax + ecx + 0x10012dc0]
mov byte [ebp - 1], al
movzx ecx, dl
xor edx, edx
mov eax, ecx
and ecx, 0xf
and eax, 0xfffffff0
mov al, byte [eax + ecx + 0x10012dc0]
mov cl, 1
mov byte [ebp - 2], al
mov eax, edi
div esi
mov esi, eax
sub esi, 1
je 0x100013e4
nop dword [eax]
mov dl, cl
add cl, cl
shr dl, 7
movzx eax, dl
imul eax, eax, 0x1b
xor cl, al
sub esi, 1
jne 0x100013d0
xor byte [ebp + 0xb], cl
mov esi, dword [ebx]
jmp 0x1000144c
cmp esi, 6
jbe 0x1000144c
cmp edx, 4
jne 0x1000144c
movzx ecx, cl
mov eax, ecx
and ecx, 0xf
and eax, 0xfffffff0
mov al, byte [eax + ecx + 0x10012dc0]
movzx ecx, byte [ebp - 3]
mov byte [ebp + 0xb], al
mov eax, ecx
and eax, 0xfffffff0
and ecx, 0xf
mov al, byte [eax + ecx + 0x10012dc0]
movzx ecx, byte [ebp - 1]
mov byte [ebp - 3], al
mov eax, ecx
and eax, 0xfffffff0
and ecx, 0xf
mov al, byte [eax + ecx + 0x10012dc0]
movzx ecx, byte [ebp - 2]
mov byte [ebp - 1], al
mov eax, ecx
and eax, 0xfffffff0
and ecx, 0xf
mov al, byte [eax + ecx + 0x10012dc0]
mov byte [ebp - 2], al
lea eax, [esi*4]
mov ecx, edi
mov esi, dword [ebp + 0xc]
sub ecx, eax
movzx eax, byte [ecx + esi]
xor al, byte [ebp + 0xb]
mov byte [esi + edi], al
mov eax, edi
mov ecx, dword [ebx]
shl ecx, 2
sub eax, ecx
movzx eax, byte [eax + esi + 1]
xor al, byte [ebp - 3]
mov byte [esi + edi + 1], al
mov eax, edi
mov ecx, dword [ebx]
shl ecx, 2
sub eax, ecx
movzx eax, byte [eax + esi + 2]
xor al, byte [ebp - 1]
mov byte [esi + edi + 2], al
mov eax, edi
mov ecx, dword [ebx]
shl ecx, 2
sub eax, ecx
mov cl, byte [ebp - 2]
movzx eax, byte [eax + esi + 3]
xor al, cl
mov byte [esi + edi + 3], al
add edi, 4
mov eax, dword [ebx + 4]
inc eax
shl eax, 4
cmp edi, eax
jb 0x10001330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10001540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
add ecx, 2
xor esi, esi
push edi
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], ecx
nop dword [eax + eax]
mov al, byte [ebp + esi - 0x16]
xor edi, edi
mov bl, byte [ebp + esi - 0x18]
mov bh, byte [ebp + esi - 0x17]
mov byte [ebp - 1], al
mov al, byte [ebp + esi - 0x15]
mov byte [ebp - 2], al
mov eax, ecx
nop word [eax + eax]
movzx edx, byte [esi + edi + 0x10012cb0]
lea eax, [eax + 4]
movzx ecx, byte [eax - 6]
inc edi
shl edx, 8
xor bl, byte [ecx + edx + 0x10012ec0]
movzx ecx, byte [eax - 5]
mov byte [ebp - 3], bl
mov bl, byte [ebp - 1]
xor bh, byte [ecx + edx + 0x10012ec0]
movzx ecx, byte [eax - 4]
xor bl, byte [ecx + edx + 0x10012ec0]
movzx ecx, byte [eax - 3]
mov byte [ebp - 1], bl
mov bl, byte [ebp - 2]
xor bl, byte [ecx + edx + 0x10012ec0]
mov byte [ebp - 2], bl
mov bl, byte [ebp - 3]
cmp edi, 4
jb 0x10001580
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
mov byte [ebp + esi - 0x16], al
mov al, byte [ebp - 2]
mov byte [ebp + esi - 0x18], bl
mov byte [ebp + esi - 0x17], bh
mov byte [ebp + esi - 0x15], al
add esi, 4
cmp esi, 0x10
jb 0x10001560
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10001690
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push edi
push 0
push 0
mov eax, edx
mov edi, ecx
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_114.0.0.0_Safari_537.36_Edg_114.0.1823.41
mov dword [ebp - 0x20], eax
mov dword [eax], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x100016e6
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
push 9
push str.https:__
push edi
mov esi, 0x80000000
call fcn.1000533f
add esp, 0xc
mov dword [ebp - 0x18], 0
test eax, eax
mov ecx, 0x80800000
lea eax, [ebp - 0x18]
cmove esi, ecx
push eax
push esi
push 0xffffffffffffffff
push 0
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1000173f
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
push ecx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x100017b9
mov ecx, dword [ebp - 0x10]
mov eax, ebx
sub eax, edi
lea edx, [ecx + esi]
cmp edx, eax
jb 0x10001785
push edx
lea ecx, [ebp - 0x2c]
call fcn.100019d0
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [edi + esi]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100017b9
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100017b9
push 0
add esi, eax
lea eax, [ebp - 0x10]
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x10001765
push dword [ebp - 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
xor esi, esi
sub ebx, edi
je 0x100017ea
mov eax, dword [ebp - 0x20]
push ebx
mov dword [eax], ebx
call fcn.10001cca
push ebx
mov esi, eax
push edi
push esi
call fcn.1000cd70
add esp, 0x10
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x2c]
call fcn.10001620
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10001970
Capabilities:
Create thread
Terminate process

Disassembly:
push 0
push 0
push 0
push 0x10001810
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call fcn.10005329
int3
Function at 0x4014be
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x405060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea eax, [ebp - 0x20c]
push edi
push 0xffffffffffffffff
push ecx
push 0x104
push eax
mov edi, edx
call esi
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add eax, 2
lea ecx, [ebp - 4]
push 0xffffffffffffffff
sub ecx, eax
push edi
sar ecx, 1
push ecx
push eax
call esi
add esp, 0x24
lea ecx, [ebp - 0x20c]
call fcn.00401463
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40152f
and dword [0x405784], 0
jmp 0x401536
call edi
mov dword [0x405784], eax
test esi, esi
je 0x401543
and dword [0x405780], 0
jmp 0x40155a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x405780], eax
cmp eax, 0xffffffff
je 0x401563
and dword [0x40577c], 0
jmp 0x40156a
call edi
mov dword [0x40577c], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00401ffe
mov esp, ebp
pop ebp
ret

Function at 0x40157c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x405060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40160e
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x40160e
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea ecx, [ebp - 0x20c]
mov edx, esi
call fcn.004014be
jmp 0x401610
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401ffe
mov esp, ebp
pop ebp
ret

Function at 0x40163f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x405060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
push 2
push esi
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40169e
cmp dword [ebp - 0x210], 4
jb 0x40169e
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.004014be
jmp 0x4016a0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401ffe
mov esp, ebp
pop ebp
ret
Function at 0x4022c2
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x403f18
call fcn.0040281c
push 1
call fcn.00402599
pop ecx
test al, al
jne 0x402179
push 7
call fcn.00402a30
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00402564
mov byte [ebp - 0x24], al
mov eax, dword [0x405338]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x402172
test eax, eax
jne 0x4021e3
mov dword [0x405338], ecx
push 0x4032a4
push 0x40328c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4021c6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4022bc
push 0x403288
push 0x403274
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x405338], 2
jmp 0x4021e8
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00402706
pop ecx
call fcn.00402a24
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402218
push esi
call fcn.0040267c
pop ecx
test al, al
je 0x402218
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004027cc
call esi
call fcn.00402a2a
mov esi, eax
cmp dword [esi], edi
je 0x402236
push esi
call fcn.0040267c
pop ecx
test al, al
je 0x402236
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00402b46
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00402b79
test al, al
jne 0x402261
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x40226a
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00402723
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4022bc
call fcn.00402861
ret
call fcn.0040200b
jmp 0x40215a
Function at 0x1001dbf
Capabilities:
Create thread

Disassembly:
push section..data
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1001e0a
push edi
push 4
call fcn.010016cc
pop ecx
mov edi, eax
push edi
call fcn.0100172f
test eax, eax
je 0x1001e04
push 0
push 0
push edi
push 0x1001d8f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1001e04
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001e09
call fcn.01001ab6
pop edi
mov eax, dword [section..data]
ret

Function at 0x1002407
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1002c88
call fcn.010025b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1004680
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10021c2
cmp eax, esi
jne 0x10021b5
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10021c5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100219c
xor esi, esi
inc esi
mov eax, dword [0x100467c]
cmp eax, esi
jne 0x10021d8
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002207
mov eax, dword [0x100467c]
test eax, eax
jne 0x1002201
mov dword [0x100467c], esi
push 0x1001178
push 0x100116c
call fcn.010020fe
pop ecx
pop ecx
test eax, eax
je 0x1002207
jmp 0x100232b
mov dword [0x10042bc], esi
mov eax, dword [0x100467c]
cmp eax, esi
jne 0x100222b
push 0x1001168
push 0x1001160
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100467c], 2
cmp dword [ebp - 0x20], ebx
jne 0x1002238
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004684], ebx
je 0x1002259
push 0x1004684
call fcn.01002529
pop ecx
test eax, eax
je 0x1002259
push ebx
push 2
push ebx
call dword [0x1004684]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100232b
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10022c3
cmp cx, bx
je 0x100227e
cmp dword [ebp - 0x1c], ebx
jne 0x10022c3
movzx ecx, word [eax]
cmp cx, bx
je 0x1002293
cmp cx, 0x20
ja 0x1002293
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100227e
test byte [ebp - 0x40], 1
je 0x100229f
movzx ecx, word [ebp - 0x3c]
jmp 0x10022a2
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10042b8], eax
cmp dword [0x10042ac], ebx
jne 0x1002308
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10022d4
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1002268
cmp dword [0x10042bc], ebx
jne 0x1002316
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10042b8]
jmp 0x1002337
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010025f9
ret
call fcn.010026f9
jmp 0x100215f
Function at 0x40741c
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.0040b460
test esi, esi
jne 0x407452
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.0040b5f8
jmp 0x407470
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004072fc
mov edi, eax
test esi, esi
je 0x407470
cmp dword [ebx], 0
je 0x407470
dec esi
jmp 0x407459
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40a06c
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.0040a52c
mov byte [esp], al
cmp byte [esp], 0
jne 0x40a1f5
test edi, edi
je 0x40a1f5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40a135
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40a110
cmp edi, 0xffffffff
je 0x40a0d1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a0d1
mov byte [esp], 0
jmp 0x40a1f5
cmp dword [esi], 1
jg 0x40a110
cmp dword [esi], 0
jne 0x40a102
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40a102
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40a1f5
lea eax, [esp + 0xc]
call fcn.00409d1c
dec ebp
test ebp, ebp
jg 0x40a0b6
cmp edi, 0xffffffff
je 0x40a135
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a133
mov byte [esp], 0
jmp 0x40a1f5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40a07a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a135
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a270
mov edx, eax
mov ebx, dword [0x6748fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40a199
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40a197
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40a199
xor edi, edi
cmp byte [esp], 0
je 0x40a1bf
mov ebx, dword [esi]
test bl, 1
jne 0x40a1d5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a19f
mov byte [esp + 1], 1
jmp 0x40a1d5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a1bf
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40a14c
cmp byte [esp], 0
je 0x40a1f5
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 0x40b0bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x67405c], 0
je 0x40b123
cmp word [0x674348], 0xd7b2
jne 0x40b0e5
cmp dword [0x674350], 0
jbe 0x40b0e5
mov eax, 0x674344
call dword [0x674360]
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, 0x40b150
call fcn.0040bd2c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x669036], 0
jne 0x40b13f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40b320
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 [0x669038], 0
je 0x40b34b
mov edx, edi
mov eax, esi
call dword [0x669038]
mov ebx, eax
jmp 0x40b35c
mov eax, 8
call fcn.00406ffc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x67405d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b2e8
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 0x40b38c
mov eax, ebx
call fcn.00407018
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40ee34
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 0x40ef9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b460
cmp si, word [0x669a38]
jb 0x40eecc
cmp si, word [0x669c38]
ja 0x40eecc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40eecc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x669a38]
jae 0x40eea6
mov edi, ebx
dec edi
jmp 0x40eec7
cmp si, word [ebx*8 + 0x669a38]
jbe 0x40eeb6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40eec7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x669a3c]
call fcn.0040ed50
jmp 0x40eecc
cmp edi, dword [ebp - 8]
jae 0x40ee90
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ef7b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ef7b
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.0040c074
push dword [ebp - 0x160]
push 0x40efb8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040c074
push dword [ebp - 0x164]
push 0x40efc8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c074
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040c2ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40efa2
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040b4c0
pop eax
jmp eax
Function at 0x40f150
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 0x40f256
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x676c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x676c2c]
jne 0x40f19c
mov eax, esi
mov edx, 0x676c2e
mov ecx, 0x55
call fcn.0040c074
push 0x676c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40f23e
push 0x676c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040b460
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f20b
cmp byte [0x676c10], 0
je 0x40f1d0
mov edx, esi
mov eax, ebx
call fcn.0040f034
jmp 0x40f20b
mov edx, esi
mov eax, ebx
call fcn.0040ee34
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40f20b
cmp dword [esi], 0
je 0x40f1f4
mov eax, esi
mov edx, 0x40f270
call fcn.0040c1cc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ee34
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040c1cc
push 0x676c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x676c2c], bx
mov eax, dword [esi]
call fcn.0040bfd8
mov ecx, eax
mov eax, 0x676c2e
mov edx, 0xaa
call fcn.0040ecb0
push 0x676c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f25d
lea eax, [ebp - 4]
call fcn.0040b460
pop eax
jmp eax