joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a67
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x20], 3
je 0x401a7d
mov eax, 0x8000ffff
jmp 0x401af8
cmp dword [esi + 0x2c], 2
jne 0x401a99
push 0
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401a99
mov eax, 0x80004004
jmp 0x401af8
and dword [esi + 0x18], 0
and dword [esi + 0x14], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401aec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401ad5
mov eax, 0x507
jmp 0x401ae0
cmp eax, 0x3e5
je 0x401aec
test eax, eax
jle 0x401af8
and eax, 0xffff
or eax, 0x80070000
jmp 0x401af8
mov dword [esi + 0x20], 2
mov eax, 0x8000000a
pop esi
leave
ret 8
Function at 0x401d3b
Capabilities:
Enumerate processes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x441438]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push ebx
mov dword [ebp - 0x23c], eax
call esi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
jne 0x401d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x401d8d
mov esi, 0x507
jmp 0x401ee1
mov esi, eax
jmp 0x401ee1
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
mov edi, eax
call esi
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x401ddb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x401dd4
mov esi, 0x507
jmp 0x401ed4
mov esi, eax
jmp 0x401ed4
push ebx
cmp dword [ebp - 0x228], edi
je 0x401dfa
call esi
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call sub.KERNEL32.dll_Process32NextW
jmp 0x401dbc
call esi
push dword [ebp - 0x218]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x238], eax
cmp eax, ebx
jne 0x401e33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x401e2c
mov esi, 0x507
jmp 0x401ec0
mov esi, eax
jmp 0x401ec0
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x238]
call edi
test eax, eax
je 0x401e18
push ebx
call esi
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x401e18
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x254]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
je 0x401eb2
mov esi, 0xe9
jmp 0x401ec0
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
cmp dword [ebp - 0x238], ebx
je 0x401ed4
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004036a2
leave
ret 4
Function at 0x4036a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441438]
jne 0x4036ac
repz ret
jmp fcn.00403d02

Function at 0x40a29d
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.0040634b
and dword [ebp - 4], 0
cmp dword [0x4432cc], 0
mov ebx, eax
jne 0x40a34e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a3ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a3ff
push eax
call fcn.004062d9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4432cc], eax
call esi
push eax
call fcn.004062d9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4432d0], eax
call esi
push eax
call fcn.004062d9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4432d4], eax
call esi
push eax
call fcn.004062d9
pop ecx
mov dword [0x4432dc], eax
test eax, eax
je 0x40a34e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004062d9
pop ecx
mov dword [0x4432d8], eax
mov eax, dword [0x4432d8]
cmp eax, ebx
je 0x40a3a6
cmp dword [0x4432dc], ebx
je 0x40a3a6
push eax
call fcn.00406354
push dword [0x4432dc]
mov esi, eax
call fcn.00406354
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a3a6
test edi, edi
je 0x40a3a6
call esi
test eax, eax
je 0x40a39d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a39d
test byte [ebp - 0xc], 1
jne 0x40a3a6
or dword [ebp + 0x10], 0x200000
jmp 0x40a3df
mov eax, dword [0x4432d0]
cmp eax, ebx
je 0x40a3df
push eax
call fcn.00406354
pop ecx
test eax, eax
je 0x40a3df
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a3df
mov eax, dword [0x4432d4]
cmp eax, ebx
je 0x40a3df
push eax
call fcn.00406354
pop ecx
test eax, eax
je 0x40a3df
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4432cc]
call fcn.00406354
pop ecx
test eax, eax
je 0x40a3ff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a401
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xe38058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xe381a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xe3807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe3806a
add dl, dl
jne 0xe38089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe380dc
xor eax, eax
add dl, dl
jne 0xe38096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe3817d
add dl, dl
jne 0xe380a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe380b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe380bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe380c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xe380d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xe38075
mov eax, 1
add dl, dl
jne 0xe380ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe380f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe380e1
sub eax, ebx
mov ebx, 1
jne 0xe38128
mov ecx, 1
add dl, dl
jne 0xe3810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe38119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe38105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe38075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe3813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe3814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe38136
cmp eax, 0x7d00
jae 0xe3816d
cmp eax, 0x500
jb 0xe38168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe38075
cmp eax, 0x7f
ja 0xe38170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe38075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xe3819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xe38075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1003aad2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1003aae1
pop dword [ebp - 0xc]
mov eax, 0xe40eb7d6
sub eax, 0xd40b0cf5
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x411f5
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x782ee46
add ecx, 0xf87d51f1
xor edi, edi
add edi, eax
mov ebx, 0x857f9d24
add ebx, 0x8a98d4dc
add ebx, dword [ebp - 0xc]
mov esi, 0x54b615c4
sub esi, 0x834a8615
xor dword [ebp - 4], 0xa073a0b5
mov edx, dword [ebx]
sub dword [ebp - 8], edx
xor edx, esi
xor dword [ebp - 4], esi
mov dword [edi], edx
xor dword [ebp - 4], 0x7fe705f0
add edi, 0x5c42a41b
add edi, 0xa3bd5be9
add ebx, 0x4907e8c1
add ebx, 0xb6f81743
loop 0x1003ab3d
add eax, 0xb3afce5
add eax, 0xf4c5f6ca
mov ebx, eax
add eax, 0x19e83c25
add eax, 0xe617c3e0
mov ecx, 0xd07ab781
add ecx, 0x3f85487f
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x10072260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x100722fb
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x100722b2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x100722b2
cmp esi, ebx
jge 0x100722b2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x100722f5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x100722f5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100783dc]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100783dc]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1007230d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x10072530
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
mov eax, dword [ebp + 8]
je 0x10072558
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10072572
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1003aad2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10076450
leave
ret 4

Function at 0x10072740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10072776
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x100727d5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1003aad2
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1003aad2
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1003aad2
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10076450
leave
ret 0x10
Function at 0x100727f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1007281c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1007284d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1007284b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1003aad2
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1007284d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10076450
leave
ret 8
Function at 0x404115
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x4041df
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404145
xor esi, esi
jmp 0x4041df
cmp eax, 3
je 0x404156
push 0
push edi
call main
test eax, eax
jne 0x40413e
movzx ecx, word [edi]
mov eax, edi
push ebx
xor ebx, ebx
test cx, cx
je 0x4041cc
push 0x5c
pop edx
cmp cx, dx
jne 0x40416d
mov ebx, eax
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x404166
test ebx, ebx
je 0x4041cc
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call main
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x4041de
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x4041c8
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x4041b9
xor esi, esi
inc esi
jmp 0x4041de
test esi, esi
jle 0x4041de
movzx esi, si
or esi, 0x80070000
jmp 0x4041de
xor esi, esi
jmp 0x4041de
mov esi, 0x80070003
push esi
push 0x72
push str.dirutil.cpp
call fcn.00403821
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x40cbc5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40cbd4
pop dword [ebp - 0x20]
mov eax, 0x40cbd4
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x4ecc2
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x6a94674a
add ecx, 0x956bdc56
mov edx, eax
mov esi, 0xb2e1e6e2
sub esi, 0xb29968e2
add esi, dword [ebp - 0x20]
mov ebx, 0xceb01128
add ebx, 0x24618ee0
add dword [ebp - 0x18], 0x679653df
mov edi, dword [esi]
xor edi, ebx
sub dword [ebp - 0x14], 0xe96020a0
mov dword [edx], edi
add edx, 4
add esi, 0x96fb3233
sub esi, 0x96fb322f
loop 0x40cc29
add eax, 0x8fbe658a
add eax, 0x70429bc9
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8bfa3e75
add ecx, 0x7445c18b
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x408244
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.0040863c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4083d0
test edi, edi
je 0x4083d0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408307
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4082e2
cmp edi, 0xffffffff
je 0x4082a3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4082a3
mov byte [esp], 0
jmp 0x4083d0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4082e2
test ebx, ebx
jne 0x4082d8
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x4082d8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4083d0
call 0x408760
dec ebp
test ebp, ebp
jg 0x408288
cmp edi, 0xffffffff
je 0x408307
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408305
mov byte [esp], 0
jmp 0x4083d0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408252
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x408307
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408440
mov edx, eax
mov ebx, dword [0x59e8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40836e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40836c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40836e
xor edi, edi
cmp byte [esp], 0
je 0x408397
mov ebx, dword [esi]
test bl, 1
jne 0x4083b0
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x408374
mov byte [esp + 1], 1
jmp 0x4083b0
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x408397
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408321
cmp byte [esp], 0
je 0x4083d0
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 0x409160
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59e058], 0
je 0x4091c7
cmp word [0x59e344], 0xd7b2
jne 0x409189
cmp dword [0x59e34c], 0
jbe 0x409189
mov eax, 0x59e340
call dword [0x59e35c]
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, 0x4091f4
call fcn.00409fac
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x598032], 0
jne 0x4091e3
push 0
push 0x5989f2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409384
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 [0x598034], 0
je 0x4093af
mov edx, edi
mov eax, esi
call dword [0x598034]
mov ebx, eax
jmp 0x4093c0
mov eax, 8
call fcn.00404554
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x59e059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40934c
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 0x4093f5
mov edx, 8
mov eax, ebx
call fcn.00404570
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40be4c
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 0x40bfb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004094c8
cmp si, word [0x598a30]
jb 0x40bee4
cmp si, word [0x598c30]
ja 0x40bee4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bee4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x598a30]
jae 0x40bebe
mov edi, ebx
dec edi
jmp 0x40bedf
cmp si, word [ebx*8 + 0x598a30]
jbe 0x40bece
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bedf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x598a34]
call fcn.0040bd5c
jmp 0x40bee4
cmp edi, dword [ebp - 8]
jae 0x40bea8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bf93
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bf93
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.0040a330
push dword [ebp - 0x160]
push 0x40bfcc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a330
push dword [ebp - 0x164]
push 0x40bfdc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a330
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a568
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfb8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409528
ret
Function at 0x40c164
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 0x40c267
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5a0b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5a0ba0]
jne 0x40c1b0
mov eax, esi
mov edx, 0x5a0ba2
mov ecx, 0x55
call fcn.0040a330
push 0x5a0b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c251
push 0x5a0b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004094c8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c21f
cmp byte [0x5a0b84], 0
je 0x40c1e4
mov edx, esi
mov eax, ebx
call fcn.0040c048
jmp 0x40c21f
mov edx, esi
mov eax, ebx
call fcn.0040be4c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c21f
cmp dword [esi], 0
je 0x40c208
mov eax, esi
mov edx, 0x40c280
call fcn.0040a488
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040be4c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a488
push 0x5a0b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5a0ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040a28c
push eax
push 0x5a0ba2
call sub.kernel32.dll_lstrcpynW
push 0x5a0b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c26e
lea eax, [ebp - 4]
call fcn.004094c8
ret
Function at 0x40c49c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004095ac
xor eax, eax
push ebp
push 0x40c6c1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c4dc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c4f6
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040a28c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40c6ab
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c6d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5c5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c6d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5c5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c70c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5c5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c70c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5c5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c740
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5c5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c774
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c6ab
xor eax, eax
push ebp
push 0x40c6a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c2a8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c634
mov eax, dword [ebp - 0x10]
call fcn.00404554
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a2f4
jmp 0x40c67f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c7b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c67f
mov eax, dword [ebp - 0x10]
call fcn.00404554
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c7b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a2f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6ab
cmp dword [ebp - 8], 0
je 0x40c69a
mov eax, dword [ebp - 8]
call fcn.00404570
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6c8
lea eax, [ebp - 4]
call fcn.004094c8
ret