joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419c6a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x419cbc
cmp byte [esi + 0x1c], 0
jne 0x419cbc
mov eax, dword [esi + 4]
mul dword [ebp + 0xc]
and dword [ebp + 8], 0
push edx
push eax
push dword [esi]
call fcn.00419c25
add esp, 0xc
test al, al
je 0x419cbc
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 4]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419cbc
mov eax, dword [ebp + 8]
xor edx, edx
div dword [esi + 4]
jmp 0x419cbe
xor eax, eax
pop esi
pop ebp
ret

Function at 0x419cc1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x419d1d
cmp byte [esi + 0x1c], 0
jne 0x419d1d
push dword [ebp + 0x10]
and dword [ebp + 8], 0
push dword [ebp + 0xc]
push 0
push dword [esi + 4]
call fcn.0041f196
push edx
push eax
push dword [esi]
call fcn.00419c25
add esp, 0xc
test al, al
je 0x419d1d
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 4]
imul eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x18]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419d1d
mov eax, dword [ebp + 8]
xor edx, edx
div dword [esi + 4]
jmp 0x419d1f
xor eax, eax
pop esi
pop ebp
ret

Function at 0x419d22
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x419d74
cmp byte [esi + 0x1c], 0
jne 0x419d74
mov eax, dword [esi + 4]
mul dword [ebp + 0xc]
and dword [ebp + 8], 0
push edx
push eax
push dword [esi]
call fcn.00419c25
add esp, 0xc
test al, al
je 0x419d74
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 4]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419d74
mov eax, dword [ebp + 8]
xor edx, edx
div dword [esi + 4]
jmp 0x419d76
xor eax, eax
pop esi
pop ebp
ret

Function at 0x419d79
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x419dd5
cmp byte [esi + 0x1c], 0
jne 0x419dd5
push dword [ebp + 0x10]
and dword [ebp + 8], 0
push dword [ebp + 0xc]
push 0
push dword [esi + 4]
call fcn.0041f196
push edx
push eax
push dword [esi]
call fcn.00419c25
add esp, 0xc
test al, al
je 0x419dd5
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 4]
imul eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x18]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419dd5
mov eax, dword [ebp + 8]
xor edx, edx
div dword [esi + 4]
jmp 0x419dd7
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41f7b0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
mov edi, 0x2d1400
push edi
push dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call esi
test eax, eax
jne 0x41f808
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WDK_ERRROR_i__w_n
call fcn.004110e0
pop ecx
pop ecx
xor eax, eax
jmp 0x41f88c
cmp dword [ebp - 0x10], 8
jae 0x41f81a
push str.header_size___STORAGEDESCRIPTORHEADER_n
call fcn.004110e0
jmp 0x41f800
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x41f833
push str.localalloc_fail_n
jmp 0x41f813
mov eax, dword [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], eax
call fcn.00432990
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x20]
push dword [ebp - 4]
push 0xc
push eax
push edi
push dword [ebp + 8]
call esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
cmp eax, ebx
jne 0x41f889
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WDK_error_2__w_n
jmp 0x41f7fa
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fc5a
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
push 0x12
xor esi, esi
push esi
push esi
mov ebx, 0x451b2c
push ebx
call dword [0x4766e4]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x41fc86
xor eax, eax
jmp 0x41fd8f
push edi
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x2c], 0x1c
push esi
jmp 0x41fd5b
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [0x4766e8]
cmp dword [ebp - 8], esi
je 0x41fd51
cmp dword [ebp - 8], 0x400
ja 0x41fd51
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x454], 5
mov dword [ebp - 0x54], 0x1c
call dword [0x4766e8]
test eax, eax
je 0x41fd51
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41fd51
push esi
lea eax, [ebp - 0x10]
push eax
push 0xc
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push 0x2d1080
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41fd4a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x34]
je 0x41fd7b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
push ebx
push esi
push dword [ebp - 4]
call dword [0x4766e0]
test eax, eax
jne 0x41fc9b
push dword [ebp - 4]
call dword [0x4766ec]
xor eax, eax
jmp 0x41fd8e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [0x4766ec]
mov eax, dword [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426b01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x426b48
call fcn.0042cc81
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x426b48
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x426b64
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00426679
mov esi, eax
test edi, edi
je 0x426b62
test ebx, ebx
je 0x426b62
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4282fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x428321
cmp dword [edi + 0x54], 0
jne 0x428321
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042cc81
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004282be
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43242d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a90c]
jne 0x432437
repz ret
jmp fcn.0043908b

Function at 0x440b14
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00436f81
and dword [ebp - 4], 0
cmp dword [0x4791c0], 0
mov ebx, eax
jne 0x440bc5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x440c76
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x450220
push edi
call esi
test eax, eax
je 0x440c76
push eax
call fcn.00436f0f
mov dword [esp], 0x450210
push edi
mov dword [0x4791c0], eax
call esi
push eax
call fcn.00436f0f
mov dword [esp], 0x4501fc
push edi
mov dword [0x4791c4], eax
call esi
push eax
call fcn.00436f0f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4791c8], eax
call esi
push eax
call fcn.00436f0f
pop ecx
mov dword [0x4791d0], eax
test eax, eax
je 0x440bc5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00436f0f
pop ecx
mov dword [0x4791cc], eax
mov eax, dword [0x4791cc]
cmp eax, ebx
je 0x440c1d
cmp dword [0x4791d0], ebx
je 0x440c1d
push eax
call fcn.00436f8a
push dword [0x4791d0]
mov esi, eax
call fcn.00436f8a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x440c1d
test edi, edi
je 0x440c1d
call esi
test eax, eax
je 0x440c14
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x440c14
test byte [ebp - 0xc], 1
jne 0x440c1d
or dword [ebp + 0x10], 0x200000
jmp 0x440c56
mov eax, dword [0x4791c4]
cmp eax, ebx
je 0x440c56
push eax
call fcn.00436f8a
pop ecx
test eax, eax
je 0x440c56
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x440c56
mov eax, dword [0x4791c8]
cmp eax, ebx
je 0x440c56
push eax
call fcn.00436f8a
pop ecx
test eax, eax
je 0x440c56
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4791c0]
call fcn.00436f8a
pop ecx
test eax, eax
je 0x440c76
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x440c78
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4420aa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.004411f5
pop esp
inc edi
xor eax, dword [eax + eax*4 - 0x22f5b]
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004411d3
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00441205
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004411ba
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.004411f5
mov bh, 0x3b
jecxz 0x4421e2
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.004411f5
mov ebx, dword [0x65801982]
loopne 0x442213
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
jecxz 0x44221f
Function at 0x44340b
Capabilities:
Get geographical location

Disassembly:
dec ecx
mov esi, dword [ebx + ecx*4]
mov eax, dword [ebx]
idiv dword [eax + 0x50746547]
mov eax, dword [ebx]
idiv dword [eax + 0x50746547]
je 0x44343d
cmp dword [esi], eax
jne 0x4433e2
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x4433e2
call fcn.004411f5
xchg edx, eax
jge 0x4433eb
pushfd
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.004411f5
jno 0x44348d
fsubr qword [ecx]
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.004419f5
dec byte [ebp + 0x37fff03c]
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.00444af3
add byte [eax], al
pop ecx
pop ecx
test eax, eax
jne 0x44344f
mov ecx, dword [ebp + 0x10]
add edi, 4
mov dword [ecx], edi
jmp 0x44345a
jge 0x443457
dec esi
mov dword [ebp + 0xc], esi
jmp 0x44345a
lea ebx, [esi + 1]
cmp ebx, dword [ebp + 0xc]
jle 0x44341d
pop edi
pop esi
xor ecx, ecx
test eax, eax
sete cl
pop ebx
mov eax, ecx
pop ebp
ret
sbb al, byte [ebp]
push esi
call fcn.004342e0
pop ecx
pop ecx
test eax, eax
je 0x4434d9
push 0x451ac8
push esi
call fcn.004342e0
pop ecx
pop ecx
test eax, eax
jne 0x4434c5
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4434f1
lea esi, [ebp - 0xc]
push esi
call fcn.0044485b
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043242d
leave
ret
push 8
lea eax, [ebp - 0xc]
push eax
push 0x1004
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4434f5
xor eax, eax
jmp 0x4434cc
lea eax, [ebp - 0xc]
push 0x451ac4
push eax
call fcn.004342e0
pop ecx
pop ecx
test eax, eax
jne 0x4434c2
call dword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x4434cc
Function at 0x405658
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40569a
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4056ba
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00409924
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4058b0
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.004087b4
test esi, esi
jne 0x4058e6
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.0040893c
jmp 0x405904
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004057f4
mov edi, eax
test esi, esi
je 0x405904
cmp dword [ebx], 0
je 0x405904
dec esi
jmp 0x4058ed
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4073c8
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.00407888
mov byte [esp], al
cmp byte [esp], 0
jne 0x407551
test edi, edi
je 0x407551
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407491
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40746c
cmp edi, 0xffffffff
je 0x40742d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40742d
mov byte [esp], 0
jmp 0x407551
cmp dword [esi], 1
jg 0x40746c
cmp dword [esi], 0
jne 0x40745e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40745e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407551
lea eax, [esp + 0xc]
call fcn.004070a8
dec ebp
test ebp, ebp
jg 0x407412
cmp edi, 0xffffffff
je 0x407491
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40748f
mov byte [esp], 0
jmp 0x407551
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4073d6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407491
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004075cc
mov edx, eax
mov ebx, dword [0x7b28fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4074f5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4074f3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4074f5
xor edi, edi
cmp byte [esp], 0
je 0x40751b
mov ebx, dword [esi]
test bl, 1
jne 0x407531
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4074fb
mov byte [esp + 1], 1
jmp 0x407531
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40751b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4074a8
cmp byte [esp], 0
je 0x407551
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 0x408410
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7b205c], 0
je 0x408477
cmp word [0x7b2348], 0xd7b2
jne 0x408439
cmp dword [0x7b2350], 0
jbe 0x408439
mov eax, 0x7b2344
call dword [0x7b2360]
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, 0x4084a4
call fcn.0040925c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x7a6032], 0
jne 0x408493
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408674
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 [0x7a6034], 0
je 0x40869f
mov edx, edi
mov eax, esi
call dword [0x7a6034]
mov ebx, eax
jmp 0x4086b0
mov eax, 8
call fcn.004054b4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7b205d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40863c
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 0x4086e0
mov eax, ebx
call fcn.004054d0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40c294
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 0x40c3f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004087b4
cmp si, word [0x7a6a10]
jb 0x40c32c
cmp si, word [0x7a6c10]
ja 0x40c32c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c32c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x7a6a10]
jae 0x40c306
mov edi, ebx
dec edi
jmp 0x40c327
cmp si, word [ebx*8 + 0x7a6a10]
jbe 0x40c316
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c327
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x7a6a14]
call fcn.0040c1b4
jmp 0x40c32c
cmp edi, dword [ebp - 8]
jae 0x40c2f0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c3db
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c3db
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.00409924
push dword [ebp - 0x160]
push 0x40c414
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409924
push dword [ebp - 0x164]
push 0x40c424
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409924
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409b5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c400
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408814
ret
Function at 0x40c5ac
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 0x40c6b0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7b4c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x7b4c2c]
jne 0x40c5f8
mov eax, esi
mov edx, 0x7b4c2e
mov ecx, 0x55
call fcn.00409924
push 0x7b4c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c69a
push 0x7b4c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004087b4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c667
cmp byte [0x7b4c10], 0
je 0x40c62c
mov edx, esi
mov eax, ebx
call fcn.0040c490
jmp 0x40c667
mov edx, esi
mov eax, ebx
call fcn.0040c294
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c667
cmp dword [esi], 0
je 0x40c650
mov eax, esi
mov edx, 0x40c6c8
call fcn.00409a7c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c294
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409a7c
push 0x7b4c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x7b4c2c], bx
mov eax, dword [esi]
call fcn.00409868
mov ecx, eax
mov eax, 0x7b4c2e
mov edx, 0xaa
call fcn.0040c114
push 0x7b4c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6b7
lea eax, [ebp - 4]
call fcn.004087b4
ret