joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001a70
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x10009008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
test ebx, ebx
je 0x10001c41
cmp dword [ebx + 0x10], 0
lea eax, [ebx + 4]
mov dword [ebp - 0x78], eax
je 0x10001ab0
mov ecx, dword [eax]
mov eax, dword [ebx]
push 0
push 0
push ecx
mov eax, dword [eax + 0x28]
add eax, ecx
call eax
mov dword [ebx + 0x10], 0
jmp 0x10001ab3
mov dword [ebp - 0x78], eax
cmp dword [ebx + 8], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], 0x4e52454b
mov dword [ebp - 0x10], 0x32334c45
mov dword [ebp - 0xc], 0x6c6c642e
mov byte [ebp - 8], 0
je 0x10001bb1
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x65657246
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x44], 0x7262694c
push eax
mov dword [ebp - 0x40], 0x797261
call esi
push eax
call edi
xor esi, esi
mov edi, eax
cmp dword [ebx + 0xc], esi
jle 0x10001b24
nop
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + esi*4]
cmp eax, 0xffffffff
je 0x10001b1e
push eax
call edi
inc esi
cmp esi, dword [ebx + 0xc]
jl 0x10001b10
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x4e52454b
push eax
mov dword [ebp - 0x20], 0x32334c45
mov dword [ebp - 0x1c], 0x6c6c642e
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x30], 0x70616548
mov dword [ebp - 0x2c], 0x65657246
mov byte [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x64], 0x50746547
lea eax, [ebp - 0x64]
mov dword [ebp - 0x60], 0x65636f72
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x5c], 0x65487373
push eax
mov word [ebp - 0x58], 0x7061
mov byte [ebp - 0x56], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0
call eax
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x74726956
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x50], 0x466c6175
push eax
mov dword [ebp - 0x4c], 0x656572
call esi
push eax
call edi
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10001be6
push 0x8000
push 0
push ecx
call eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x70616548
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x38], 0x65657246
push eax
mov byte [ebp - 0x34], 0
call esi
push eax
call edi
mov esi, eax
mov dword [ebp - 0x74], 0x50746547
lea eax, [ebp - 0x74]
mov dword [ebp - 0x70], 0x65636f72
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x6c], 0x65487373
push eax
mov word [ebp - 0x68], 0x7061
mov byte [ebp - 0x66], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call edi
push ebx
push 0
call eax
push eax
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10004657
mov esp, ebp
pop ebp
ret
Function at 0x10002bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10002bfc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10002c24
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10002c2a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10002c92
jg 0x10002c41
test esi, esi
je 0x10002c92
test ecx, ecx
jl 0x10002c8d
jg 0x10002c4b
test eax, eax
je 0x10002c8d
cmp edi, ecx
jg 0x10002c5f
jl 0x10002c55
cmp esi, eax
jae 0x10002c5f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10002c95
mov ecx, dword [ebp + 8]
jmp 0x10002c9f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10002cb9
jg 0x10002c9f
test esi, esi
je 0x10002cb9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10002cb9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x10002cfc
jl 0x10002cf0
test ecx, ecx
jne 0x10002cfc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10002d15
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10002d63
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10002d69
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x10002d69
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10002dd6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10002d92
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10002dc4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10002dd6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10002da0
test edi, edi
je 0x10002dd6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10009008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10003180
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004657
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x100031b0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x100031b0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004657
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10003288
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100031d9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100031e5
movsx eax, bl
jmp 0x1000321d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10003247
sub eax, 1
je 0x10003247
sub eax, 2
jne 0x10003288
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004657
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003265
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10003288
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004657
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004657
mov esp, ebp
pop ebp
ret 4
Function at 0x10003c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10009008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10003cec
cmp byte [esi + 0x3d], 0
je 0x10003cec
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10003cda
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10003ca1
sub eax, 1
je 0x10003ca5
sub eax, 2
jne 0x10003cda
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004657
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003cc3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10003cda
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004657
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004657
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10004657
mov esp, ebp
pop ebp
ret
Function at 0x412df8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0xf4240
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x412ea0
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
cmp eax, ecx
jae 0x412e45
mov ecx, eax
mov esi, dword [ebp + 8]
add dword [ebp + 8], ecx
lea ebx, [ebp - 0x18]
push 0
push ebx
push ecx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x412e7d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop eax
mov ecx, eax
mov eax, 0
cld
leave
ret 8
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
jbe 0x412e8a
mov dword [ebp - 0xc], eax
jmp 0x412e39
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, 1
cld
leave
ret 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
mov eax, 0
cld
leave
ret 8

Function at 0x412eb2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0xf4240
push 0
push pe_nt_image_headers32
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
je 0x412f2f
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
cmp eax, ecx
jae 0x412ef4
mov ecx, eax
mov esi, dword [ebp + 8]
add dword [ebp + 8], ecx
lea ebx, [ebp - 0x10]
push 0
push ebx
push ecx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x412f41
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
jbe 0x412f1c
mov dword [ebp - 0xc], eax
jmp 0x412ee8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
cld
leave
ret 0xc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
mov eax, 0
cld
leave
ret 0xc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ecx
mov eax, 0
cld
leave
ret 0xc

Function at 0x412f5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
clc
je 0x412f70
stc
popal
cld
leave
ret 4

Function at 0x412f76
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov esi, dword [ebp + 8]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
jne 0x412fa9
popal
mov ecx, 0xffffffff
cld
leave
ret 4
push eax
push 0x4017a1
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 4], eax
pop eax
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
popal
mov ecx, dword [ebp - 4]
cld
leave
ret 4
Function at 0x41448a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x401799]
lea ebx, [eax + 0x404dc0]
cmp dword [ebx + 4], 3
je 0x4144ba
xor ecx, ecx
cmp dword [ebx], 2
jne 0x4144a9
mov esi, ebx
call fcn.0041392c
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], ecx
ret
mov esi, dword [ebx + 8]
cmp dword [ebx], 0
je 0x4144d5
push eax
mov eax, esi
mov esi, dword [0x40176d]
mov esi, dword [esi + eax*8]
add esi, dword [0x401771]
pop eax
mov ecx, dword [ebx + 0xc]
mov al, 0
xchg byte [esi + ecx], al
pushal
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4144f1
mov ecx, 1
mov dword [0x4017a1], ecx
popal
mov byte [esi + ecx], al
mov ecx, dword [0x4017a1]
jmp 0x41449d

Function at 0x414504
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x401799]
lea ebx, [eax + 0x404dc0]
cmp dword [ebx + 4], 3
je 0x414534
sub ecx, ecx
cmp dword [ebx], 2
jne 0x414523
mov esi, ebx
call fcn.0041392c
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], ecx
ret
mov esi, dword [ebx + 8]
cmp dword [ebx], 0
je 0x41454f
push eax
mov eax, esi
mov esi, dword [0x40176d]
mov esi, dword [esi + eax*8]
add esi, dword [0x401771]
pop eax
mov ecx, dword [ebx + 0xc]
mov al, 0
xchg byte [esi + ecx], al
pushal
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop esi
cmp eax, 0
je 0x41456b
mov eax, 1
mov dword [0x4017a1], eax
popal
mov byte [esi + ecx], al
mov ecx, dword [0x4017a1]
jmp 0x414517

Function at 0x41457d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x401799]
lea ebx, [eax + 0x404dc0]
cmp dword [ebx + 4], 3
je 0x4145ad
xor ecx, ecx
cmp dword [ebx], 2
jne 0x41459c
mov esi, ebx
call fcn.0041392c
mov dword [ebx], 0
mov dword [ebx + 4], 1
mov dword [ebx + 8], ecx
ret
mov esi, dword [ebx + 8]
cmp dword [ebx], 0
je 0x4145c8
push eax
mov eax, esi
mov esi, dword [0x40176d]
mov esi, dword [esi + eax*8]
add esi, dword [0x401771]
pop eax
mov ecx, dword [ebx + 0xc]
mov al, 0
xchg byte [esi + ecx], al
pushal
push ecx
lea edi, [0x401655]
mov eax, edi
inc ecx
rep movsb byte es:[edi], byte [esi]
mov esi, eax
pop ecx
lea edi, [0x404c80]
mov byte [edi], 0
push esi
push edi
test ecx, ecx
je 0x414606
mov al, 0x3c
mov edi, esi
repne scasb al, byte es:[edi]
jne 0x414606
mov byte [edi - 1], 0
mov esi, edi
lea edi, [0x404c80]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
cmp byte [edi], 0
jne 0x41460f
sub edi, edi
push dword [0x4029f2]
push 0
push edi
push esi
push 0
push 0
call dword [sym.imp.SHELL32.DLL_ShellExecuteA]
mov dword [0x4017a1], eax
popal
mov byte [esi + ecx], al
mov ecx, dword [0x4017a1]
jmp 0x414590
Function at 0x41501e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, 1
lea edi, [ebp - 0x10]
mov dword [edi], 1
mov dword [edi + 4], 9
add edi, 0x10
dec ecx
jne 0x41502c
mov ecx, 1
lea esi, [ebp + 8]
call fcn.00414141
mov edx, dword [0x401799]
lea edi, [edx + 0x404dd4]
mov esi, 0x402a26
mov eax, esi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [edi], eax
add edx, 0x14
mov dword [0x401799], edx
lea esi, [ebp - 0x10]
call fcn.00413a56
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov esi, dword [0x40176d]
mov esi, dword [esi + eax*8]
add esi, dword [0x401771]
mov edx, dword [edi + 0xc]
xor eax, eax
test edx, edx
je 0x4150b7
sub ecx, ecx
movzx ebx, byte [esi]
ror ecx, 0x10
xor ecx, ebx
add ecx, ebx
sub ecx, 0x83a3c321
xchg ecx, eax
rol eax, cl
xchg ecx, eax
ror ebx, cl
xor eax, ebx
ror ecx, 0x10
ror eax, cl
inc esi
dec edx
jne 0x415096
lea edi, [ebp - 0x10]
mov dword [edi + 8], eax
mov edx, dword [0x401799]
lea edi, [edx + 0x404dd4]
lea esi, [ebp - 0x10]
mov eax, esi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [edi], eax
add edx, 0x14
mov dword [0x401799], edx
jmp 0x415125
mov ecx, 1
lea esi, [ebp + 8]
call fcn.0041419b
mov ebx, dword [0x401799]
lea eax, [ebx + 0x404dc0]
lea edi, [ebp - 0x10]
mov ecx, 1
mov ebx, dword [edi + 4]
cmp ebx, 3
je 0x415153
cmp ebx, 4
jne 0x415175
cmp dword [eax + 4], ebx
jne 0x415168
mov edx, dword [eax + 8]
cmp dword [edi + 8], edx
jne 0x415168
mov dword [eax], 2
jmp 0x415175
push edi
push ecx
push eax
mov esi, edi
call fcn.0041395a
pop eax
pop ecx
pop edi
add edi, 0x10
dec ecx
jne 0x415146
leave
ret 4
Function at 0x405a00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405a66
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004040bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a50
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a6d
lea eax, [ebp - 0x10]
call fcn.00403e4c
ret

Function at 0x40ae64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ae9d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f3c
jmp 0x40aea6
mov eax, ebx
mov edx, esi
call fcn.00403ea0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aeb0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aed1
mov al, byte [esp]
jmp 0x40aed3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b558
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3d0
mov eax, dword [0x45e154]
cmp byte [eax], 0
je 0x40b5d4
mov eax, dword [0x45df60]
call fcn.004029a4
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408350
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b61c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b60a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45df10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f664]
call fcn.00404f14
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret