joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100143e0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x1002e134]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x100143f3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x10014434
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x1002e1dc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x10014466
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1001446a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x1001445b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x10014488
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1001448c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x1001447d
xor ecx, ecx
mov eax, 0x1002e144
xor ebx, ebx
mov bl, byte [ecx + 0x1002e1ec]
cmp byte [esp + ebx + 0x14], 0
je 0x100144b7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x1002e204]
cmp byte [esp + ebx + 0x14], 0
je 0x100144ce
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x1001449e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x10014427
lea edx, [esp + 0x84]
push edx
call fcn.10014510
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x430004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x66bb7677
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x33cc2e06
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40131b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_VirtualAlloc
sub esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40137d
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], eax
mov dword [esp + 4], str.VirtualAlloc_failed:__lu_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 1
call sym._exit
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call eax
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualFree
sub esp, 0xc
leave
ret

Function at 0x401ad0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x401a70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x405034]
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x45
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
cmp eax, 6
pop edi
ja 0x401abf
jne 0x401acf
cmp dword [ebp - 0x110], 1
jb 0x401acf
push 0x401250
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x405060], eax
mov ecx, dword [ebp - 4]
call fcn.00403525
mov esp, ebp
pop ebp
ret

Function at 0x401fe0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push 0x24
lea ecx, [ebp - 0x24]
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40202c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x18], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x4020e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x405034]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x40212d
lea eax, [ebp - 0x104]
push 0x4013d4
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea ecx, [ebp - 0x104]
push esi
push ecx
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
jmp 0x402151
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x40217c
push ebx
lea ecx, [ebp - 0x104]
push 0x401380
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [section..data]
push 0x30
push edx
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.00403525
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push 4
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
mov dword [eax], edi
mov dword [eax + 4], esi
je 0x4021d0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push eax
push 0x401db0
push 0
push 0
call esi
push 0
push 0
push edi
push fcn.00401cd0
push 0
push 0
call esi
jmp 0x4021d7
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.00403525
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402820
Capabilities:
Initialize winsock library
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x405034]
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
mov ebx, 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40286f
mov ecx, dword [section..data]
push 0x30
push ecx
push 0x40165c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.00403525
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x405060]
test ecx, ecx
push esi
mov esi, dword [sym.imp.WS2_32.dll_bind]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, esi
je 0x402897
push 0x401654
push ecx
call edi
test eax, eax
jne 0x402897
mov eax, esi
push 0x402640
push eax
push 0x401654
call sub.SbieDll.dll__SbieDll_Hook_12
test eax, eax
mov dword [0x4050b0], eax
jne 0x4028b2
xor ebx, ebx
mov ecx, dword [0x405060]
test ecx, ecx
mov esi, dword [sym.imp.WS2_32.dll_listen]
mov eax, esi
je 0x4028d2
push 0x40164c
push ecx
call edi
test eax, eax
jne 0x4028d2
mov eax, esi
push 0x402650
push eax
push 0x40164c
call sub.SbieDll.dll__SbieDll_Hook_12
test eax, eax
mov dword [0x4050b4], eax
jne 0x4028ed
xor ebx, ebx
mov ecx, dword [0x405060]
test ecx, ecx
mov esi, dword [sym.imp.WS2_32.dll_WSASocketW]
mov eax, esi
je 0x40290d
push 0x401640
push ecx
call edi
test eax, eax
jne 0x40290d
mov eax, esi
push 0x402660
push eax
push 0x401640
call sub.SbieDll.dll__SbieDll_Hook_12
test eax, eax
mov dword [0x4050b8], eax
jne 0x402928
xor ebx, ebx
mov ecx, dword [0x405060]
test ecx, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov eax, esi
je 0x402948
push 0x401630
push ecx
call edi
test eax, eax
jne 0x402948
mov eax, esi
push 0x402680
push eax
push 0x401630
call sub.SbieDll.dll__SbieDll_Hook_12
test eax, eax
mov dword [0x4050bc], eax
jne 0x402963
xor ebx, ebx
mov ecx, dword [0x405060]
test ecx, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, esi
je 0x402983
push 0x401620
push ecx
call edi
test eax, eax
jne 0x402983
mov eax, esi
push 0x4026e0
push eax
push 0x401620
call sub.SbieDll.dll__SbieDll_Hook_12
test eax, eax
mov dword [0x4050c0], eax
jne 0x40299e
xor ebx, ebx
mov ecx, dword [0x405060]
test ecx, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, esi
je 0x4029be
push 0x40160c
push ecx
call edi
test eax, eax
jne 0x4029be
mov eax, esi
push 0x402780
push eax
push 0x40160c
call sub.SbieDll.dll__SbieDll_Hook_12
test eax, eax
pop edi
mov dword [0x4050c4], eax
pop esi
je 0x4029dd
test ebx, ebx
jne 0x402a02
mov edx, dword [section..data]
push 0x30
push edx
push 0x4015c0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.00403525
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
call fcn.00403525
mov esp, ebp
pop ebp
ret
Function at 0x402d50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x405034]
push 0x4016e0
push 0
push 0x1f0001
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x402d86
push 0x4016e0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x402da3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402da3
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.00403525
mov esp, ebp
pop ebp
ret 0x10
push 0x4014e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4014c8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402dc7
push 0x402200
push 1
call eax
call sub.SbieDll.dll__SbieDll_IsOpenCOM_0
test al, al
jne 0x402e5c
call fcn.00401a70
call fcn.00402b00
test eax, eax
je 0x402e49
call fcn.00402480
test eax, eax
je 0x402e49
call fcn.00402820
test eax, eax
je 0x402e49
mov eax, dword [0x405014]
push eax
push 0x2000
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x4050ac], eax
call fcn.00402a20
test eax, eax
je 0x402e49
lea ecx, [ebp - 0x24]
push 0x401838
push ecx
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 8
push 1
push 0x4016b4
push 0x401824
lea edx, [ebp - 0x24]
push edx
call fcn.004020e0
test eax, eax
jne 0x402e70
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.00403525
mov esp, ebp
pop ebp
ret 0x10
push 0x401374
mov dword [0x405064], 4
call fcn.00401cd0
call fcn.00402f00
mov ecx, dword [ebp - 4]
call fcn.00403525
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403525
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x405034]
jne 0x403536
test ecx, 0xffff0000
jne 0x403536
ret
jmp fcn.00403540

Function at 0x403625
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4019a0
call fcn.00403850
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x403679
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x403679
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x403691
cmp ecx, 0x20b
je 0x40367e
mov dword [ebp - 0x1c], ebx
jmp 0x4036a8
cmp dword [eax + 0x400084], 0xe
jbe 0x403679
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x4036a2
cmp dword [eax + 0x400074], 0xe
jbe 0x403679
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x4053f4], edi
mov dword [0x4053f8], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4053f0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4053ec]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4053fc], eax
call fcn.00403846
cmp dword [0x405038], ebx
jne 0x403705
push fcn.00403846
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040382f
push 0x40119c
push 0x401198
call sub.msvcrt.dll__initterm
mov eax, dword [0x4053e8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4053e4]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x401194
push 0x40118c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x403790
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x403770
cmp cl, 0x22
jne 0x403761
cmp byte [eax], 0x22
jne 0x403779
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x403784
cmp cl, 0x20
jbe 0x403775
test byte [ebp - 0x54], 1
je 0x40379b
movzx ecx, word [ebp - 0x50]
jmp 0x40379e
cmp byte [eax], 0x20
jbe 0x403779
inc eax
mov dword [ebp - 0x20], eax
jmp 0x403790
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00402d50
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4037bc
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4037f8
mov eax, esi
jmp 0x40380c
call fcn.0040388b
ret
Function at 0x405138
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.00407494
test esi, esi
jne 0x40516e
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.0040761c
jmp 0x40518c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040501c
mov edi, eax
test esi, esi
je 0x40518c
cmp dword [ebx], 0
je 0x40518c
dec esi
jmp 0x405175
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x671008], 0x8088405
inc edx
mov dword [ebx + 0x671008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4061c8
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.004065a0
mov byte [esp], al
cmp byte [esp], 0
jne 0x406348
test edi, edi
je 0x406348
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406288
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x406263
cmp edi, 0xffffffff
je 0x406227
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406227
mov byte [esp], 0
jmp 0x406348
mov ebx, dword [esi]
cmp ebx, 1
jg 0x406263
test ebx, ebx
jne 0x406259
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x406259
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406348
call 0x4066c0
dec ebp
test ebp, ebp
jg 0x40620c
cmp edi, 0xffffffff
je 0x406288
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406286
mov byte [esp], 0
jmp 0x406348
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4061d6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406288
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004063b4
mov edx, eax
mov ebx, dword [0x6898f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4062ec
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4062ea
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4062ec
xor edi, edi
cmp byte [esp], 0
je 0x406312
mov ebx, dword [esi]
test bl, 1
jne 0x406328
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4062f2
mov byte [esp + 1], 1
jmp 0x406328
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406312
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40629f
cmp byte [esp], 0
je 0x406348
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 0x407130
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x689058], 0
je 0x407197
cmp word [0x689344], 0xd7b2
jne 0x407159
cmp dword [0x68934c], 0
jbe 0x407159
mov eax, 0x689340
call dword [0x68935c]
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, 0x4071c4
call fcn.00407edc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x671034], 0
jne 0x4071b3
push 0
push 0x6719ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407354
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 [0x671038], 0
je 0x40737f
mov edx, edi
mov eax, esi
call dword [0x671038]
mov ebx, eax
jmp 0x407390
mov eax, 8
call fcn.00404d58
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x689059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40731c
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 0x4073c0
mov eax, ebx
call fcn.00404d74
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40a18c
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 0x40a2f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407494
cmp si, word [0x671a08]
jb 0x40a224
cmp si, word [0x671c08]
ja 0x40a224
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a224
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x671a08]
jae 0x40a1fe
mov edi, ebx
dec edi
jmp 0x40a21f
cmp si, word [ebx*8 + 0x671a08]
jbe 0x40a20e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a21f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x671a0c]
call fcn.0040a0ac
jmp 0x40a224
cmp edi, dword [ebp - 8]
jae 0x40a1e8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a2d3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a2d3
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.004083b8
push dword [ebp - 0x160]
push 0x40a30c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004083b8
push dword [ebp - 0x164]
push 0x40a31c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004083b8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004085f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a2f8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004074f4
ret
Function at 0x40a4a4
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 0x40a5a8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x68bb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x68bba0]
jne 0x40a4f0
mov eax, esi
mov edx, 0x68bba2
mov ecx, 0x55
call fcn.004083b8
push 0x68bb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a592
push 0x68bb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407494
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a55f
cmp byte [0x68bb84], 0
je 0x40a524
mov edx, esi
mov eax, ebx
call fcn.0040a388
jmp 0x40a55f
mov edx, esi
mov eax, ebx
call fcn.0040a18c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a55f
cmp dword [esi], 0
je 0x40a548
mov eax, esi
mov edx, 0x40a5c0
call fcn.00408510
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a18c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408510
push 0x68bb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x68bba0], bx
mov eax, dword [esi]
call fcn.004082fc
mov ecx, eax
mov eax, 0x68bba2
mov edx, 0xaa
call fcn.0040a00c
push 0x68bb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a5af
lea eax, [ebp - 4]
call fcn.00407494
ret