joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5645fe
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x38], 0
je 0x564710
mov esi, ecx
lea edx, [ecx + 0x30]
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x5c]
mov ecx, edi
push eax
push 2
call fcn.00564737
add esp, 8
mov edx, dword [edi]
test edx, edx
je 0x564717
mov dword [ebp - 0x64], esi
cmp dword [edx], 0
je 0x5646fc
mov eax, dword [ebp - 0x64]
add eax, 0x18
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x60], eax
test dword [edx + eax*8 + 8], 0xc0000020
jne 0x5646f0
cmp dword [ebp + 8], 0
je 0x5646b4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [eax + 4], ecx
je 0x5646b4
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp - 0x60]
mov esi, dword [edx + eax*8 + 4]
add ecx, ebx
call fcn.0048c830
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edx, dword [ebp - 0x68]
test eax, eax
jne 0x5646f0
inc edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xf0f0f0f1
add ebx, 0x44
cmp edi, eax
jb 0x56467c
lea ebx, [ebp - 0x54]
mov ecx, ebx
mov eax, dword [ebp - 0x60]
push dword [edx + eax*8 + 4]
call fcn.004a47a4
mov esi, dword [ebp - 0x64]
mov edi, dword [esi + 0x1c]
cmp edi, dword [esi + 0x20]
jae 0x5646e4
push 0x44
push ebx
push edi
call fcn.00599c40
add esp, 0xc
add edi, 0x44
mov dword [esi + 0x1c], edi
jmp 0x5646ed
mov ecx, dword [ebp - 0x6c]
push ebx
call fcn.00533ef0
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
inc eax
cmp eax, dword [edx]
jb 0x564657
mov dword [ebp - 0x5c], 0
push edx
call fcn.0059634c
add esp, 4
xor esi, esi
jmp 0x564721
mov esi, 0x3f0
jmp 0x564721
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, esi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x5689a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xd0
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea esi, [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esi + 0x14], 0x100
jb 0x568a0c
push 1
call fcn.00483a10
add esp, 4
test al, al
je 0x568a0c
lea esi, [ebp - 0xd8]
mov ecx, esi
push 1
push 0xb3
push str..._.._third_party_crashpad_crashpad_snapshot_win_system_snapshot_win.cc
call fcn.00483ab0
lea eax, [ebp - 0xd0]
push 0x2c
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, esi
call fcn.00483e50
mov eax, dword [ebp - 0x1c]
cmp eax, 0x100
mov ebx, 0xff
cmovb ebx, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
add esp, 0xd0
pop esi
pop ebx
pop ebp
ret
Function at 0x57f22e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xec
mov esi, ecx
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ecx + 0x10]
mov ecx, edi
call fcn.0057fb96
lea ebx, [ebp - 0x50]
mov ecx, esi
push ebx
push 0
push 0x40
push edx
push eax
call fcn.0058a336
test al, al
je 0x57f2cc
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x57f309
mov ecx, edi
call fcn.0057fb96
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov edi, eax
sar edi, 0x1f
add ebx, eax
adc edi, edx
mov ecx, esi
push dword [ebp + 8]
push 0
push 0x108
push edi
push ebx
call fcn.0058a336
test al, al
je 0x57f343
mov eax, dword [ebp + 8]
cmp dword [eax], 0x4550
jne 0x57f37d
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov bl, 1
test eax, eax
je 0x57f3db
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x57f3db
push 1
call fcn.00483a10
add esp, 4
test al, al
je 0x57f3d9
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x154
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00483ab0
lea eax, [ebp - 0xf0]
push 0x1f
push str.could_not_read_dos_header_from
jmp 0x57f3b1
push 1
call fcn.00483a10
add esp, 4
test al, al
je 0x57f3d9
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x15a
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00483ab0
lea eax, [ebp - 0xf0]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x57f3b1
push 1
call fcn.00483a10
add esp, 4
test al, al
je 0x57f3d9
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x162
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00483ab0
lea eax, [ebp - 0xf0]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x57f3b1
push 1
call fcn.00483a10
add esp, 4
test al, al
je 0x57f3d9
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x168
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00483ab0
lea eax, [ebp - 0xf0]
push 0x23
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.00401baa
add esp, 0xc
movzx ecx, byte [esi + 0xb]
test cl, cl
jns 0x57f3c7
mov ecx, dword [esi + 4]
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, edi
call fcn.00483e50
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
add esp, 0xec
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x57f3f4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xec
mov esi, ecx
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ecx + 0x10]
mov ecx, edi
call fcn.0057fb96
lea ebx, [ebp - 0x50]
mov ecx, esi
push ebx
push 0
push 0x40
push edx
push eax
call fcn.0058a336
test al, al
je 0x57f492
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x57f4cf
mov ecx, edi
call fcn.0057fb96
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov edi, eax
sar edi, 0x1f
add ebx, eax
adc edi, edx
mov ecx, esi
push dword [ebp + 8]
push 0
push 0xf8
push edi
push ebx
call fcn.0058a336
test al, al
je 0x57f509
mov eax, dword [ebp + 8]
cmp dword [eax], 0x4550
jne 0x57f543
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov bl, 1
test eax, eax
je 0x57f5a1
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x57f5a1
push 1
call fcn.00483a10
add esp, 4
test al, al
je 0x57f59f
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x154
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00483ab0
lea eax, [ebp - 0xf0]
push 0x1f
push str.could_not_read_dos_header_from
jmp 0x57f577
push 1
call fcn.00483a10
add esp, 4
test al, al
je 0x57f59f
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x15a
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00483ab0
lea eax, [ebp - 0xf0]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x57f577
push 1
call fcn.00483a10
add esp, 4
test al, al
je 0x57f59f
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x162
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00483ab0
lea eax, [ebp - 0xf0]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x57f577
push 1
call fcn.00483a10
add esp, 4
test al, al
je 0x57f59f
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x168
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00483ab0
lea eax, [ebp - 0xf0]
push 0x23
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.00401baa
add esp, 0xc
movzx ecx, byte [esi + 0xb]
test cl, cl
jns 0x57f58d
mov ecx, dword [esi + 4]
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, edi
call fcn.00483e50
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, ebx
add esp, 0xec
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x58607c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
sub esp, 0x18
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
movaps xmm0, xmmword [0x5e0c50]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, esi
push eax
call fcn.00408a9a
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x5860ca
push edi
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5ba077
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ba2c0

Function at 0x5bd1b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005bd1c2
Function at 0x100124f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x1002004]
push ebx
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x140]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 0x18]
and dword [ebp - 0x148], 0
and dword [ebp - 0x144], 0
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
push eax
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x140]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.010011d9
test eax, eax
je 0x1001342
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x130]
push 0x1001128
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp - 0x130]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001328
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x130]
push eax
push esi
push esi
push 0x1001140
push dword [ebp - 0x144]
mov dword [ebp - 0x14c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001328
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x148], 1
cmp dword [ebp - 0x144], esi
je 0x100133c
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 4]
call fcn.01001487
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x1001487
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002004]
jne 0x1001498
test ecx, 0xffff0000
jne 0x1001498
ret
jmp fcn.010014a2
Function at 0x1001587
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001150
call fcn.010017b0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x10015db
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x10015db
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x10015f3
cmp ecx, 0x20b
je 0x10015e0
mov dword [ebp - 0x1c], ebx
jmp 0x100160a
cmp dword [eax + 0x1000084], 0xe
jbe 0x10015db
xor ecx, ecx
cmp dword [eax + 0x10000f8], ebx
jmp 0x1001604
cmp dword [eax + 0x1000074], 0xe
jbe 0x10015db
xor ecx, ecx
cmp dword [eax + 0x10000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x1002340], edi
mov dword [0x1002344], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002338]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002334]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002348], eax
call fcn.010017a8
cmp dword [0x1002008], ebx
jne 0x1001667
push fcn.010017a8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001791
push 0x10010a4
push 0x10010a0
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002330]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100232c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100109c
push 0x1001094
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x10016f2
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x10016d2
cmp cl, 0x22
jne 0x10016c3
cmp byte [eax], 0x22
jne 0x10016db
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x10016e6
cmp cl, 0x20
jbe 0x10016d7
test byte [ebp - 0x54], 1
je 0x10016fd
movzx ecx, word [ebp - 0x50]
jmp 0x1001700
cmp byte [eax], 0x20
jbe 0x10016db
inc eax
mov dword [ebp - 0x20], eax
jmp 0x10016f2
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01001356
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100171e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x100175a
mov eax, esi
jmp 0x100176e
call fcn.010017eb
ret
Function at 0x4815e0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov eax, dword fs:[0x30]
lea edi, [esp + 0xe]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
je 0x48281e
jne 0x48281e
jmp 0x54d0e88f
Function at 0x483580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
je 0x483626
jne 0x483626
je 0x482bc5
jne 0x482076
push esi
sub esp, 0x23c
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 0x14], 0
je 0x483bf9
mov eax, dword [ebp + 0x10]
mov ecx, 0xffffff00
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x485c10
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
movzx edx, word [ecx]
cmp edx, 0x5a4d
jmp 0x485c21
jne 0x485c3f
je 0x485c40
jne 0x485c40
jmp 0x4bd62a0
push 0x485c38
ret
ret
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
je 0x485c30
jne 0x485c30
nop
Function at 0x48e8f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
je 0x48f7de
jmp 0x48ee2a
Function at 0x49f2c0
Capabilities:
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x46c
je 0x49f7b9
jmp 0x49fc0e
Function at 0x4b2550
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push esi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov esi, dword [edx]
mov dword [eax + 0x10], esi
mov esi, dword [edx + 4]
mov dword [eax + 0x14], esi
mov esi, dword [edx + 8]
mov dword [eax + 0x18], esi
mov esi, dword [edx + 0xc]
mov dword [eax + 0x1c], esi
lea esi, [edx + 0x10]
cmp ecx, 0x100
cmovne esi, edx
mov ecx, str.expand_32_byte_kexpand_16_byte_k
mov edx, 0x4c9690
cmove edx, ecx
mov ecx, dword [esi]
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 0x24], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 0x28], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x2c], ecx
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov dword [eax], ecx
mov dword [eax + 4], esi
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
pop esi
ret
Function at 0x4bbbf0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4bbc83
mov dword [eax + 0x48], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x44], 0x5be0cd19
mov dword [eax + 0x40], 0x137e2179
xor eax, eax
ret
mov eax, 1
ret
Function at 0x4bcc20
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
push edi
push esi
sub esp, 0xa0
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
push edi
push 0x20
push dword [esp + 0xc0]
call fcn.004bc9f0
add esp, 0xc
and byte [edi], 0xf8
mov al, byte [edi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
mov ebx, esp
push edi
push ebx
call fcn.004b6d10
add esp, 8
push ebx
push esi
call fcn.004b6ca0
add esp, 0xa8
pop esi
pop edi
pop ebx
ret
Function at 0x403164
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047d0
test esi, esi
jne 0x40319b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004048c0
jmp 0x4031bc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00403000
mov dword [esp], eax
test esi, esi
je 0x4031bc
cmp dword [ebx], 0
je 0x4031bc
dec esi
jmp 0x4031a3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x486020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038c8
xor eax, eax
push ebp
push 0x4038c1
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 0x403904
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4038c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x486020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x486020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40462c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x488048], 0
je 0x40468d
cmp word [0x48821c], 0xd7b2
jne 0x404655
cmp dword [0x488224], 0
jbe 0x404655
mov eax, 0x488218
call dword [0x488234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48606c
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 0x4046b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x486030], 0
jne 0x4046a9
push 0
push 0x486064
push 0x48606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4066f4
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 0x40675a
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.00404a40
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403414
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406744
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406761
lea eax, [ebp - 0x10]
call fcn.004047d0
ret

Function at 0x40e2d4
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 0x40e30d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048c0
jmp 0x40e316
mov eax, ebx
mov edx, esi
call fcn.00404824
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e320
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 0x40e341
mov al, byte [esp]
jmp 0x40e343
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f2f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f3ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404868
lea eax, [ebp - 8]
call fcn.00404ce0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c90
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f3b8
mov eax, ebx
call fcn.00402d38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f3b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c90
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f39b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f3e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f39b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f3b8
mov eax, dword [ebp - 0x10]
call fcn.00402d68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f3d5
lea eax, [ebp - 8]
call fcn.004047d0
ret
Function at 0x40fa4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40fab0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404a40
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040b3dc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fab7
lea eax, [ebp - 0xc]
call fcn.004047d0
ret

Function at 0x4252a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x48aaa8
cmp dword [esi], 0
jne 0x42534a
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x48aaa4]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x486c44
mov ecx, 2
call fcn.00402fc0
mov edx, 0x42527c
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0042529c
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0042529c
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x425311
mov eax, dword [ebp - 8]
mov dword [0x48aaa4], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x426938
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42693e
ret

Function at 0x428f00
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x428f51
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x428f38
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x428f28
jmp 0x428f51
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x428f39
pop ebx
mov esp, ebp
pop ebp
ret