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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044e6c4
Function at 0x10002223
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x10006654], 0
push ebx
push esi
mov esi, 0x1000665c
jne 0x1000224f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x10006674], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x10006654], 1
push dword [0x10006674]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x100022ec
push 0x14
push 8
push dword [0x10006614]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x10002316
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x10006658]
test eax, eax
je 0x10002291
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x10006658], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x1000231b
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x10006674]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x10006614]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10002316
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x100028be
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x10002a06
xor ecx, ecx
cmp word [eax], cx
je 0x10002a06
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x10002917
cmp eax, 3
jne 0x10002951
cmp word [esp + 0xa], 0x3a
jne 0x10002951
cmp eax, 2
jne 0x10002935
lea eax, [esp + 8]
push 0x10005034
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10002a06
push 0xfffffffffffffffe
pop edi
jmp 0x10002a06
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x10002966
cmp ax, bx
jne 0x10002970
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x10002959
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x100029af
test byte [esp + 0x21c], 0x10
je 0x10002996
push 0xfffffffffffffffe
pop edi
jmp 0x100029a6
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10002a04
cmp word [esp + 0x10], bp
jne 0x100029bd
cmp word [esp + 0x12], bp
je 0x100029dc
cmp word [esp + 0x10], bx
jne 0x100029cb
cmp word [esp + 0x12], bx
je 0x100029dc
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x10002a04
cmp word [esp + 0x12], ax
jne 0x10002a04
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x100029f1
test al, 0x10
je 0x10002a04
jmp 0x10002a01
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10002a04
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x10002a15
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x10002a8d
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x10002a6e
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x10002a6b
cmp ecx, 0x5c
je 0x10002a6b
cmp ecx, 0x2f
jne 0x10002a78
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x10002a58
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x10002a8f
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10002a95
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x10002aa3
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8
Function at 0x10002c2a
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x10003638
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x1000364e
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x10006b8c]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x10003685
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x10006614]
mov dword [0x10006b90], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x10006b90]
call ebx
mov eax, dword [0x10006b8c]
mov edi, eax
add eax, esi
push eax
push dword [0x10006b90]
mov dword [0x10006b8c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x10006614]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x10006b90]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x100036c5
test ebx, ebx
je 0x100036e6
push 0x14
push 0x10006b88
call fcn.1000386c
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x100036e6
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x100039d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10006128]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10003a16
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x10006bbc]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x10003a37
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x10006bbc]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10003e20
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x10003c90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10006128]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x10003cb4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x10003d04
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x10006bbc]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x10003d4c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x10003d4c
cmp dword [ebp - 8], 0x100000
jge 0x10003d20
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x10006bbc]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x10003d70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10006128]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10003da0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10006128]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x10003dde
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x10003dde
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x10003de0
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10003f50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10006128]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x4012f1
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x402228
call fcn.004015c0
xor ebx, ebx
cmp dword [0x403394], ebx
jne 0x4010cf
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x403388
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x401109
cmp eax, esi
jne 0x4010fc
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x40110c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4010e3
xor esi, esi
inc esi
mov eax, dword [0x403384]
cmp eax, esi
jne 0x40111f
push 0x1f
call sub.MSVCR100.dll__amsg_exit
pop ecx
jmp 0x40115a
mov eax, dword [0x403384]
test eax, eax
jne 0x401154
mov dword [0x403384], esi
push 0x4020c4
push 0x4020b8
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40115a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401231
mov dword [0x40304c], esi
mov eax, dword [0x403384]
cmp eax, esi
jne 0x40117e
push 0x4020b4
push 0x4020ac
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x403384], 2
cmp dword [ebp - 0x1c], ebx
jne 0x40118b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x403398], ebx
je 0x4011ac
push 0x403398
call fcn.004014f0
pop ecx
test eax, eax
je 0x4011ac
push ebx
push 2
push ebx
call dword [0x403398]
mov eax, dword [0x403034]
mov ecx, dword [sym.imp.MSVCR100.dll___initenv]
mov dword [ecx], eax
push dword [0x403034]
push dword [0x403038]
push dword [0x403030]
call section..text
add esp, 0xc
mov dword [0x403048], eax
cmp dword [0x40303c], ebx
jne 0x401217
push eax
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.MSVCR100.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40304c], ebx
jne 0x401225
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x403048]
call fcn.00401605
ret
call 0x492000
jmp 0x4010ae
Function at 0x403538
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406d80
test esi, esi
jne 0x403570
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.00406ebc
jmp 0x40358e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040341c
mov edi, eax
test esi, esi
je 0x40358e
cmp dword [ebx], 0
je 0x40358e
dec esi
jmp 0x403577
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404284
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x6fe024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40431c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4042fc
xor eax, eax
push ebp
push 0x4042f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404354
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4042fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x6fe024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x6fe024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404b04
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.00404db8
mov byte [esp], al
cmp byte [esp], 0
jne 0x404c8d
test edi, edi
je 0x404c8d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x404bc4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x404b9f
cmp edi, 0xffffffff
je 0x404b63
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404b63
mov byte [esp], 0
jmp 0x404c8d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x404b9f
test ebx, ebx
jne 0x404b98
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00401488
test eax, eax
jne 0x404b98
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x404c8d
pause
dec ebp
test ebp, ebp
jg 0x404b48
cmp edi, 0xffffffff
je 0x404bc4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404bc2
mov byte [esp], 0
jmp 0x404c8d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404b12
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00401488
cmp ebx, eax
jne 0x404bc4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00404d00
mov edx, eax
mov ebx, dword [0x7238cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x404c2b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404c29
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x404c2b
xor edi, edi
cmp byte [esp], 0
je 0x404c54
mov ebx, dword [esi]
test bl, 1
jne 0x404c6d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00401488
cmp ebx, eax
jne 0x404c31
mov byte [esp + 1], 1
jmp 0x404c6d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00401488
cmp ebx, eax
jne 0x404c54
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x404bde
cmp byte [esp], 0
je 0x404c8d
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 0x4058f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x723054], 0
je 0x405951
cmp word [0x723330], 0xd7b2
jne 0x405919
cmp dword [0x723338], 0
jbe 0x405919
mov eax, 0x72332c
call dword [0x723348]
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
push 0x40597c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6fe030], 0
jne 0x40596d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b1c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x6fe038], 0
je 0x405b42
mov edx, esi
mov eax, ebx
call dword [0x6fe038]
jmp 0x405b51
mov eax, 8
call fcn.004030fc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x723055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405ae4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x4078f8
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 0x40793a
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 0x40795a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406f90
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x40dba4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x40dc44
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.004064f8
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.004063d0
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40dbce
cmp byte [esp], 0
je 0x40dc13
mov eax, edi
call fcn.004063d0
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40dc50
mov eax, edi
call fcn.004063d0
push eax
mov eax, edi
call fcn.004063d0
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.0040331c
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.004064f8
jmp 0x40dc50
mov eax, edi
mov edx, 0x40dc64
call fcn.00405bec
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40dc68
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40dd0b
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.0040710c
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00407860
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x40dc90
cmp byte [esp], 0
je 0x40dcd9
mov eax, edi
call fcn.00407860
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x40dd17
mov eax, edi
call fcn.00407860
push eax
mov eax, edi
call fcn.00407860
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call fcn.0040331c
mov edx, ebx
mov eax, edi
call fcn.0040710c
jmp 0x40dd17
mov eax, edi
mov edx, 0x40dd2c
call fcn.00406d80
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ee84
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x6fea9c], 0
jne 0x40eeb8
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x40eeb1
movzx eax, byte [esp]
mov byte [0x6fea9c], al
jmp 0x40eeb8
mov byte [0x6fea9c], 0x2c
movzx eax, byte [0x6fea9c]
pop edx
ret

Function at 0x40eec4
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x6feaa0], 0
jne 0x40eefc
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40eef3
movzx eax, word [esp]
mov word [0x6feaa0], ax
jmp 0x40eefc
mov word [0x6feaa0], 0x2c
movzx eax, word [0x6feaa0]
pop edx
ret
Function at 0x40f9ec
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40f9f4
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40fc06
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x40fa37
lea edx, [ebp - 0xc]
mov eax, ebx
call dword [0x6fe828]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00406fac
jmp 0x40fbd3
test ebx, 0xc0000000
je 0x40fa7f
lea edx, [ebp - 0x10]
mov eax, dword [0x6feab8]
call fcn.0040fc24
mov eax, dword [ebp - 0x10]
call fcn.00406358
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x6fe898]
call fcn.0040fc24
mov eax, dword [ebp - 0x14]
call fcn.00406358
push eax
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x40fa7f
push ebx
call eax
mov ebx, eax
mov edi, 0x1300
cmp ebx, 0x834
jb 0x40fac4
cmp ebx, 0xbb7
ja 0x40fac4
push 2
push 0
lea edx, [ebp - 0x18]
mov eax, dword [0x6feab4]
call fcn.0040fc24
mov eax, dword [ebp - 0x18]
call fcn.00406358
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40fac9
or edi, 0x800
jmp 0x40fac9
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40fbcc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
push ebx
mov eax, dword [ebp - 8]
push eax
push edi
call sub.kernel32.dll_FormatMessageW
test eax, eax
je 0x40fb6c
xor eax, eax
push ebp
push 0x40fb65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406f3c
mov eax, dword [esi]
call fcn.00407100
mov ebx, eax
test ebx, ebx
jbe 0x40fb4e
mov eax, dword [esi]
movzx edi, word [eax + ebx*2 - 2]
cmp di, 0xd
jne 0x40fb35
mov eax, esi
call fcn.00407860
mov word [eax + ebx*2 - 2], 0x20
jmp 0x40fb49
cmp di, 0xa
jne 0x40fb49
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.0040760c
dec ebx
test ebx, ebx
ja 0x40fb18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fbaf
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LocalFree
ret
lea edx, [ebp - 0x20]
mov eax, dword [0x6feabc]
call fcn.0040fc24
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.00406fac
push dword [ebp - 0x1c]
push 0x40fc20
lea eax, [ebp - 0x24]
push eax
mov cx, 0x30
mov edx, 1
mov eax, ebx
call fcn.0040e690
push dword [ebp - 0x24]
mov eax, esi
mov edx, 3
call fcn.00407348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fbd3
cmp dword [ebp - 8], 0
je 0x40fbcb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fc0d
lea eax, [ebp - 0x24]
call fcn.00406d70
lea eax, [ebp - 0x20]
call fcn.00405b98
lea eax, [ebp - 0x1c]
call fcn.00406d70
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00405bbc
ret