joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51f274
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404078
mov eax, dword [ebp - 8]
call fcn.00404078
mov eax, dword [ebp + 8]
call fcn.00404078
xor eax, eax
push ebp
push 0x51f348
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x51f360
call fcn.00403ecc
lea eax, [ebp - 8]
mov edx, 0x51f360
call fcn.00403ecc
lea eax, [ebp + 8]
mov edx, 0x51f360
call fcn.00403ecc
mov bl, 1
push 1
lea eax, [ebp + 8]
call fcn.00404094
push eax
lea eax, [ebp - 8]
call fcn.00404094
push eax
lea eax, [ebp - 4]
call fcn.00404094
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x51f325
xor ebx, ebx
push 0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x51f36c
call fcn.00403f10
mov eax, dword [ebp - 0xc]
mov cx, word [0x51f380]
mov dl, 1
call fcn.0044bad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51f34f
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403c6c
lea eax, [ebp + 8]
call fcn.00403c48
ret

Function at 0x51f504
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404078
mov eax, dword [ebp - 8]
call fcn.00404078
mov eax, dword [ebp + 8]
call fcn.00404078
lea eax, [ebp - 0x160]
mov edx, dword [0x408a30]
call fcn.004045c8
xor eax, eax
push ebp
push 0x51f65c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00403f10
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
mov edx, 0x3f
call fcn.0040a064
xor eax, eax
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00403f10
mov eax, dword [ebp - 0x168]
call fcn.00404088
mov edx, eax
lea eax, [ebp - 0x164]
call fcn.00403dfc
mov eax, dword [ebp - 0x164]
mov edx, 0x20
call fcn.00409fd8
push 0
lea eax, [ebp - 0x164]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00403f10
mov eax, dword [ebp - 0x164]
call fcn.00404088
push eax
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00403f10
mov eax, dword [ebp - 0x168]
call fcn.00404088
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x160]
call fcn.0040a0b4
test eax, eax
je 0x51f582
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51f663
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.00403c6c
lea eax, [ebp - 0x160]
mov edx, dword [0x408a30]
call fcn.00404694
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403c6c
lea eax, [ebp + 8]
call fcn.00403c48
ret
Function at 0x403d60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4175bc
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x41f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x403e14
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 5
push 9
mov byte [edi + 0x60], al
call fcn.00404620
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea ecx, [edi + 0x10]
mov byte [ebp - 0xd], 1
call fcn.004048e0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x403e54
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x414110
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x14], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
jbe 0x414141
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
or eax, 1
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00414290
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [ebp - 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x41426a
nop dword [eax]
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
mov edi, dword [edi]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
jbe 0x41419c
mov edx, dword [ecx]
mov dword [ebp - 4], edx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [ecx + 0x10], edx
jbe 0x4141c7
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
nop
movzx ecx, byte [edx + eax]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x4141b0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
and ebx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
lea ecx, [ecx + ebx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x4141e4
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x414260
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.00414970
test al, al
jne 0x41421e
mov ebx, dword [ebx]
cmp ebx, esi
je 0x414216
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x41425d
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x414240
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.00414970
test al, al
je 0x414273
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x414225
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov esi, edi
cmp edi, eax
jne 0x414180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x41425d
Function at 0x414a70
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418933
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x41f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
xorps xmm0, xmm0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
lea esi, [edx + 0x18]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
push 0x24
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00416340
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.00414290
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415b80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418b45
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x41f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], ecx
push eax
mov ecx, esi
call fcn.00415cd0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
test al, al
je 0x415bed
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 4], 0x4924924
je 0x415c86
mov ebx, dword [esi]
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x24], 0
call fcn.00416340
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
push dword [ebp - 0x10]
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 1
call fcn.004023c0
mov edx, dword [ebp - 0x10]
push edi
push dword [ebp - 0x1c]
mov al, byte [edx + 0x18]
push dword [ebp - 0x20]
mov byte [edi + 0x28], al
mov ecx, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
mov dword [edi + 0x34], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x30], eax
mov byte [edx + 0x18], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov word [edi + 0xc], 0
call fcn.0040c8a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004011e0
int3
Function at 0x416da0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416ddf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416ddf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416ddf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416ddf
cmp dword [ecx + 0x74], 0xe
jbe 0x416ddf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40db80
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4143d8], 0
jne 0x40dc01
cmp dword [0x4143f8], 0
jne 0x40dbb0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4143f8], eax
test eax, eax
jne 0x40dbb0
push str.GetEnvironmentStrings_failed
call fcn.0040cbf0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4143f8]
jmp 0x40dbc4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dbbc
lea edi, [ebp + 1]
push edi
call fcn.00405c3c
pop ecx
mov ebx, eax
mov dword [0x4143dc], ebx
test ebx, ebx
jne 0x40dbee
xor eax, eax
jmp 0x40dcc4
push edi
mov edx, dword [0x4143f8]
push edx
push ebx
call fcn.004069b8
add esp, 0xc
jmp 0x40dc21
xor esi, esi
mov ebx, dword [0x4143d8]
jmp 0x40dc1b
push eax
call fcn.00406b08
pop ecx
test eax, eax
jne 0x40dc17
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc0b
lea ebx, [esi + 4]
push 4
mov dword [0x4143e0], ebx
inc ebx
push ebx
call fcn.00405a3c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40dc44
xor eax, eax
jmp 0x40dcc4
cmp dword [0x4143d8], 0
jne 0x40dc75
xor esi, esi
mov ebx, dword [0x4143dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40dc66
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dc5c
jmp 0x40dca6
xor esi, esi
mov ebx, dword [0x4143d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40dca0
push eax
call fcn.00406b08
pop ecx
test eax, eax
je 0x40dc95
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40dc99
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc84
mov eax, dword [0x4143d8]
test eax, eax
je 0x40dcb6
push eax
call fcn.00405c4c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4143d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10013a4
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x248]
mov edi, 0xfffff758
and eax, edi
or eax, dword [ebp + 8]
push eax
lea eax, [esi + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10013e4
mov eax, dword [esi + 0x248]
and eax, edi
or eax, dword [ebp + 8]
mov dword [esi + 0x248], eax
mov al, 1
jmp 0x10013f5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10013f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop edi
pop esi
pop ebp
ret 8
Function at 0x1093b4f0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1093b4fa
pushal
call 0x1093b500
pop ebp
sub ebp, 0x10
sub ebp, 0x93b4f0
mov al, byte [esp + 0x28]
cmp al, 1
je 0x1093b524
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x1093b52d
mov eax, 0x93b4f0
add eax, ebp
add eax, 0x63
mov ecx, 0x58c
mov edx, 0x7aca2b8f
xor byte [eax], dl
inc eax
dec ecx
jne 0x1093b544
jmp 0x1093b557
add al, 0x42
add al, 6
mov bl, 0x8f
invalid
Function at 0x408224
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.0040861c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4083b0
test edi, edi
je 0x4083b0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4082e7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4082c2
cmp edi, 0xffffffff
je 0x408283
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408283
mov byte [esp], 0
jmp 0x4083b0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4082c2
test ebx, ebx
jne 0x4082b8
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x4082b8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4083b0
call 0x408740
dec ebp
test ebp, ebp
jg 0x408268
cmp edi, 0xffffffff
je 0x4082e7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4082e5
mov byte [esp], 0
jmp 0x4083b0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408232
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x4082e7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408420
mov edx, eax
mov ebx, dword [0x54f8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40834e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40834c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40834e
xor edi, edi
cmp byte [esp], 0
je 0x408377
mov ebx, dword [esi]
test bl, 1
jne 0x408390
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x408354
mov byte [esp + 1], 1
jmp 0x408390
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x408377
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408301
cmp byte [esp], 0
je 0x4083b0
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 0x409140
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54f058], 0
je 0x4091a7
cmp word [0x54f344], 0xd7b2
jne 0x409169
cmp dword [0x54f34c], 0
jbe 0x409169
mov eax, 0x54f340
call dword [0x54f35c]
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, 0x4091d4
call fcn.00409f8c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x549032], 0
jne 0x4091c3
push 0
push 0x5499f2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409364
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 [0x549034], 0
je 0x40938f
mov edx, edi
mov eax, esi
call dword [0x549034]
mov ebx, eax
jmp 0x4093a0
mov eax, 8
call fcn.00404554
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x54f059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40932c
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 0x4093d5
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 0x40be2c
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 0x40bf91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004094a8
cmp si, word [0x549a30]
jb 0x40bec4
cmp si, word [0x549c30]
ja 0x40bec4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bec4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x549a30]
jae 0x40be9e
mov edi, ebx
dec edi
jmp 0x40bebf
cmp si, word [ebx*8 + 0x549a30]
jbe 0x40beae
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bebf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x549a34]
call fcn.0040bd3c
jmp 0x40bec4
cmp edi, dword [ebp - 8]
jae 0x40be88
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bf73
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bf73
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.0040a310
push dword [ebp - 0x160]
push 0x40bfac
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a310
push dword [ebp - 0x164]
push 0x40bfbc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a310
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a548
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf98
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409508
ret
Function at 0x40c144
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 0x40c247
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x551b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x551ba0]
jne 0x40c190
mov eax, esi
mov edx, 0x551ba2
mov ecx, 0x55
call fcn.0040a310
push 0x551b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c231
push 0x551b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004094a8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c1ff
cmp byte [0x551b84], 0
je 0x40c1c4
mov edx, esi
mov eax, ebx
call fcn.0040c028
jmp 0x40c1ff
mov edx, esi
mov eax, ebx
call fcn.0040be2c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c1ff
cmp dword [esi], 0
je 0x40c1e8
mov eax, esi
mov edx, 0x40c260
call fcn.0040a468
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040be2c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a468
push 0x551b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x551ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040a26c
push eax
push 0x551ba2
call sub.kernel32.dll_lstrcpynW
push 0x551b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c24e
lea eax, [ebp - 4]
call fcn.004094a8
ret
Function at 0x421fd8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x421ff0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x421ff8
mov al, 1
jmp 0x422015
movzx esi, word [ebp]
mov eax, esi
call fcn.004129cc
test al, al
jne 0x422011
cmp si, 0x5f
je 0x422011
xor eax, eax
jmp 0x422013
mov al, 1
xor al, 1
test al, al
jne 0x4220a5
test bl, bl
je 0x422065
mov eax, ebp
test eax, eax
je 0x42202c
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x4220a1
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00412a58
test al, al
jne 0x422059
cmp di, 0x5f
je 0x422059
cmp di, 0x2e
je 0x422059
xor eax, eax
jmp 0x42205b
mov al, 1
test al, al
je 0x4220a5
inc esi
dec ebx
jne 0x422039
jmp 0x4220a1
mov eax, ebp
test eax, eax
je 0x422070
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x4220a1
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00412a58
test al, al
jne 0x422097
cmp di, 0x5f
je 0x422097
xor eax, eax
jmp 0x422099
mov al, 1
test al, al
je 0x4220a5
inc esi
dec ebx
jne 0x42207d
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x422b68
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x422c9c
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x422cac]
mov dl, 1
mov eax, esi
call fcn.00422e30
test al, al
jne 0x422bb9
mov dl, 1
mov eax, esi
call fcn.00422d98
test al, al
je 0x422c4f
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.004230ac
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.004291fc
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a26c
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x422c4a
test byte [ebp - 0xc], 1
je 0x422c15
or bl, 1
test byte [ebp - 0xc], 2
je 0x422c1e
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x422c27
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x422c3b
dec eax
je 0x422c40
dec eax
je 0x422c45
dec eax
jne 0x422c76
or bl, 0x10
jmp 0x422c76
or bl, 4
jmp 0x422c76
or bl, 8
jmp 0x422c76
call fcn.00429a44
lea edx, [ebp - 0x428]
mov eax, dword [0x54e748]
call fcn.0040d354
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41cbdc]
call fcn.00427d28
call fcn.00408bdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422ca3
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00409508
lea eax, [ebp - 4]
call fcn.004094a8
ret