joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011e0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x408008], eax
mov dword [0x407030], edx
call fcn.00401800
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsA]
mov dword [0x4070ce], eax
xor eax, eax
mov dword [0x408628], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x4070d4], al
shr eax, 0x10
push 0x104
mov word [0x4070d6], ax
xor eax, eax
mov ebx, 0x208
mov ax, word [0x4070d6]
and edx, 0xffff
mov dword [0x4070d8], eax
xor eax, eax
sar edx, 8
mov al, byte [0x4070d4]
and edx, 0xff
mov dword [0x4070dc], eax
xor eax, eax
mov byte [0x4070d5], dl
mov al, dl
mov edx, dword [0x4070dc]
push 0x40800c
shl edx, 8
push 0
or edx, eax
mov dword [0x4070e0], eax
mov dword [0x4070e4], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x408110
xor eax, eax
mov dword [0x40709c], 0x40800c
call fcn.00401930
mov dword [0x4070a8], 0x408110
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.004019d0
mov edx, eax
mov bl, byte [eax]
mov dword [0x408004], eax
cmp bl, 0x22
je 0x4012d4
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x401a11], 2
je 0x4012ec
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x401a11], 2
je 0x4012f3
inc eax
jmp 0x4012c4
inc eax
cmp bl, byte [eax]
je 0x4012e4
cmp byte [eax], 0
je 0x4012e4
inc eax
cmp byte [eax], 0x22
jne 0x4012d9
cmp byte [eax], 0
je 0x4012c4
inc eax
jmp 0x4012c4
test dl, dl
je 0x4012c4
inc eax
jmp 0x4012b7
mov dword [0x407098], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x401367
call fcn.00401b11
mov edx, eax
mov bx, word [eax]
mov dword [0x408000], eax
cmp bx, 0x22
je 0x40133a
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x401a11], 2
je 0x40135c
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x401a11], 2
je 0x40136c
add eax, 2
jmp 0x401328
add eax, 2
cmp bx, word [eax]
je 0x401351
cmp word [eax], 0
je 0x401351
add eax, 2
cmp word [eax], 0x22
jne 0x401342
cmp word [eax], 0
je 0x401328
add eax, 2
jmp 0x401328
cmp word [eax], 0
je 0x401328
add eax, 2
jmp 0x40131b
mov eax, 0x4011a0
mov dword [0x4070a4], eax
test edi, edi
jne 0x40137e
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x408318
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x40841c
mov eax, esi
mov dword [0x4070a0], 0x408318
call fcn.00401930
mov dword [0x4070ac], 0x40841c
mov eax, 1
pop edi
pop esi
pop ecx
ret
Function at 0x403900
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
sub esp, 4
mov dword [esp], eax
mov eax, dword [0x4071f4]
test eax, eax
je 0x40391c
cmp dword [0x407094], 0xfffffffe
jne 0x403922
xor eax, eax
add esp, 4
pop edx
pop ecx
ret
mov eax, esp
call fcn.004038b0
test eax, eax
je 0x40391c
push 0x40
push 0x1000
mov ecx, dword [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edx, eax
test eax, eax
je 0x40391c
mov eax, dword [esp]
sub eax, 4
cmp eax, dword [esp]
ja 0x40391a
mov dword [esp], eax
cmp eax, 0x38
jb 0x40391a
mov dword [edx], eax
mov eax, edx
call fcn.00403830
mov ecx, eax
mov eax, dword [eax]
mov dword [esp], eax
or al, 1
mov dword [ecx], eax
mov dword [edx + 0x14], 0
lea eax, [ecx + 4]
inc dword [edx + 0x18]
call fcn.00401b40
mov eax, 1
add esp, 4
pop edx
pop ecx
ret

Function at 0x404280
Capabilities:
Set environment variable

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0x14
mov ebp, eax
mov dword [esp], 2
mov edx, 0x3d
mov dword [esp + 4], 1
call fcn.00404770
mov ebx, eax
test eax, eax
je 0x4042ae
cmp eax, ebp
jne 0x4042bd
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
sub eax, ebp
mov dword [esp + 0xc], eax
inc eax
call fcn.00402bc0
mov edx, eax
mov dword [esp + 8], eax
test eax, eax
je 0x4042ae
mov ecx, dword [esp + 0xc]
mov esi, ebp
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [esp + 0xc]
lea esi, [ebx + 1]
mov byte [edx + eax], 0
mov eax, esi
call fcn.004047d0
mov ebx, eax
test eax, eax
je 0x404383
inc eax
call fcn.00402bc0
mov dword [esp + 0x10], eax
test eax, eax
je 0x40436d
mov ecx, ebx
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, edi
mov byte [ebx], 0
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
mov edx, eax
mov eax, dword [esp + 8]
call fcn.00401b40
mov eax, dword [esp + 0x10]
call fcn.00401b40
test edx, edx
jne 0x404389
cmp dword [esp + 0x10], 0
jne 0x4042ae
xor eax, eax
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, edx
call fcn.00401b40
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov dword [esp + 0x10], eax
jmp 0x40432e
mov eax, ebp
call fcn.00404510
test eax, eax
jne 0x4042ae
cmp dword [0x40862c], 0
je 0x4042b3
mov eax, ebp
call fcn.004047d0
lea ebx, [eax + 1]
mov eax, dword [esp]
imul eax, ebx
call fcn.00402bc0
mov ecx, eax
test eax, eax
je 0x4043f1
imul ebx, dword [esp + 4]
mov edx, ebp
call fcn.00404800
cmp eax, 0xffffffff
jne 0x40440a
mov eax, ecx
call fcn.00401b40
mov eax, 0xe
call fcn.00402cba
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, 5
call fcn.00402cba
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, ecx
call fcn.00404aa0
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x3203663f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x3203664e
pop dword [ebp - 0xc]
mov eax, 0xf37773f9
add eax, 0x3e8bf255
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc893656a
sub dword [ebp - 0x1c], 0x7a41201f
mov dword [ebp - 0x18], 0xf835873
sub dword [ebp - 0x18], 0xdd500c2e
mov dword [ebp - 0x14], 0xb170ffda
add dword [ebp - 0x14], 0x9adb4454
mov dword [ebp - 0x10], 0x34fd24f7
sub dword [ebp - 0x10], 0x34fd24f7
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xe838a9fb
sub eax, 0xb633597b
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x17cbf6c6
sub dword [ebp - 0x1c], 0xa3598d70
mov dword [ebp - 0x18], 0xc31bc0cf
add dword [ebp - 0x18], 0x7e50a0a6
mov dword [ebp - 0x14], 0xd6495414
sub dword [ebp - 0x14], 0x72d9e7a8
mov dword [ebp - 0x10], 0xe20ae1cc
add dword [ebp - 0x10], 0x1df51e34
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xd0720eaf
sub eax, 0x9e6cbe37
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x4d4d4
push 0
call eax
mov ecx, 0x67dadbfc
sub ecx, 0x67da7cf1
mov edi, eax
mov esi, 0x3207d600
add esi, dword [ebp - 0xc]
mov ebx, 0x71ffd3c7
sub ebx, 0x4788ebb2
add dword [ebp - 8], edx
mov edx, dword [esi]
xor dword [ebp - 8], eax
add edx, ebx
sub dword [ebp - 8], eax
mov dword [edi], edx
sub dword [ebp - 8], 0xd572106e
add edi, 4
add esi, 0xde89bf1d
add esi, 0x217640e7
loop 0x3203676a
add eax, 0xbfbcf881
sub eax, 0xbfbb8982
mov ebx, eax
add eax, 0xae98966
sub eax, 0xae98961
mov ecx, 0xf1cff56d
add ecx, 0x40300a93
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4012b6
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403eb4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403eb0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401191
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403eb0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403eb8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401380
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401367
mov eax, dword [0x403eb4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x7a31b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007a3140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007a3140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007a3140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007a3140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7a3bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7a3c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7b587c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7a3c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7a3c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x1000179f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x100017ae
pop dword [ebp - 0x14]
mov eax, 0x100017ae
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x90a40c21
add dword [ebp - 0x24], 0xbdae392a
mov dword [ebp - 0x20], 0x9f176e2b
sub dword [ebp - 0x20], 0x6ce421e6
mov dword [ebp - 0x1c], 0x2cf45858
sub dword [ebp - 0x1c], 0xe0a8142a
mov dword [ebp - 0x18], 0x41120aff
sub dword [ebp - 0x18], 0x41120aff
lea eax, [ebp - 0x24]
push eax
mov eax, 0x706a5c67
sub eax, 0x606a0c23
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xb814a0f0
sub dword [ebp - 0x24], 0x43a2379a
mov dword [ebp - 0x20], 0x410b1469
add dword [ebp - 0x20], 0x614d0c
mov dword [ebp - 0x1c], 0x4cfbb6e9
add dword [ebp - 0x1c], 0x1673b583
mov dword [ebp - 0x18], 0x7c5a0ee6
add dword [ebp - 0x18], 0x83a5f11a
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xedf1f051
add eax, 0x220e5fff
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3335d
push 0
call eax
mov ecx, 0x5c0555
sub ecx, 0x5bcbdd
mov ebx, eax
mov esi, 0x10009800
add esi, dword [ebp - 0x14]
mov edi, 0xe323c2a9
sub edi, 0x54e5cb23
xor dword [ebp - 4], ecx
mov edx, dword [esi]
sub dword [ebp - 0xc], 0x482c0dde
add edx, edi
mov dword [ebx], edx
sub dword [ebp - 8], 0xfffa631f
add ebx, 0x3ef76409
sub ebx, 0x3ef76405
add esi, 0x9ed311c4
sub esi, 0x9ed311c0
loop 0x100018c5
add eax, 0xd8b3
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x705823b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x7058240b
cmp byte [esi + ebx - 1], 0xa
je 0x705823df
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x70583118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4071fc
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.00409ca0
test esi, esi
jne 0x407232
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.00409e28
jmp 0x407250
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407140
mov edi, eax
test esi, esi
je 0x407250
cmp dword [ebx], 0
je 0x407250
dec esi
jmp 0x407239
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4088f0
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.00408db0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408a79
test edi, edi
je 0x408a79
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4089b9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408994
cmp edi, 0xffffffff
je 0x408955
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408955
mov byte [esp], 0
jmp 0x408a79
cmp dword [esi], 1
jg 0x408994
cmp dword [esi], 0
jne 0x408986
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408986
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408a79
lea eax, [esp + 0xc]
call fcn.004085ac
dec ebp
test ebp, ebp
jg 0x40893a
cmp edi, 0xffffffff
je 0x4089b9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089b7
mov byte [esp], 0
jmp 0x408a79
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4088fe
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089b9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408af4
mov edx, eax
mov ebx, dword [0x6168fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408a1d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408a1b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408a1d
xor edi, edi
cmp byte [esp], 0
je 0x408a43
mov ebx, dword [esi]
test bl, 1
jne 0x408a59
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a23
mov byte [esp + 1], 1
jmp 0x408a59
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a43
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4089d0
cmp byte [esp], 0
je 0x408a79
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 0x409938
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x61605c], 0
je 0x40999f
cmp word [0x616348], 0xd7b2
jne 0x409961
cmp dword [0x616350], 0
jbe 0x409961
mov eax, 0x616344
call dword [0x616360]
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, 0x4099cc
call fcn.0040a490
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x610032], 0
jne 0x4099bb
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409b60
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 [0x610034], 0
je 0x409b8b
mov edx, edi
mov eax, esi
call dword [0x610034]
mov ebx, eax
jmp 0x409b9c
mov eax, 8
call fcn.00406e7c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x61605d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b28
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 0x409bcc
mov eax, ebx
call fcn.00406e98
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c884
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 0x40c9e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409ca0
cmp si, word [0x610a08]
jb 0x40c91c
cmp si, word [0x610c08]
ja 0x40c91c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c91c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x610a08]
jae 0x40c8f6
mov edi, ebx
dec edi
jmp 0x40c917
cmp si, word [ebx*8 + 0x610a08]
jbe 0x40c906
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c917
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x610a0c]
call fcn.0040c7a4
jmp 0x40c91c
cmp edi, dword [ebp - 8]
jae 0x40c8e0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c9cb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c9cb
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.0040a7dc
push dword [ebp - 0x160]
push 0x40ca04
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a7dc
push dword [ebp - 0x164]
push 0x40ca14
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a7dc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aa14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9f0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409d00
ret
Function at 0x40cb9c
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 0x40cca0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x618c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x618c2c]
jne 0x40cbe8
mov eax, esi
mov edx, 0x618c2e
mov ecx, 0x55
call fcn.0040a7dc
push 0x618c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cc8a
push 0x618c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409ca0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cc57
cmp byte [0x618c10], 0
je 0x40cc1c
mov edx, esi
mov eax, ebx
call fcn.0040ca80
jmp 0x40cc57
mov edx, esi
mov eax, ebx
call fcn.0040c884
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cc57
cmp dword [esi], 0
je 0x40cc40
mov eax, esi
mov edx, 0x40ccb8
call fcn.0040a934
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c884
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a934
push 0x618c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x618c2c], bx
mov eax, dword [esi]
call fcn.0040a73c
mov ecx, eax
mov eax, 0x618c2e
mov edx, 0xaa
call fcn.0040c704
push 0x618c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cca7
lea eax, [ebp - 4]
call fcn.00409ca0
ret