joyce8/EMBER2024-capa huggingface dataset:
Function at 0x131e1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0131e140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0131e140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0131e140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0131e140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x131ebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x131ec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x133087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x131ec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x131ec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x100244f
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [reloc.msvcrt.dll_swprintf_s]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x13d
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FormatMessageW]
push esi
push edi
mov dword [ebp - 0x70], eax
mov edi, 0x800
mov esi, 0x10058c0
je 0x10023cb
xor eax, eax
push eax
push edi
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x6c], 0x1000
push eax
push 0x1200
call ebx
test eax, eax
jne 0x1002419
mov eax, dword [0x100528c]
test eax, eax
jne 0x10023b3
push 0x10016c0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x100528c], eax
push 0
push edi
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 0x6c], edi
push eax
push 0xa00
call ebx
test eax, eax
jne 0x1002419
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__ultoa]
add esp, 0xc
push 0x20
lea eax, [ebp - 0x64]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push edi
push esi
push 0
push 0x13d
push 0
mov dword [ebp - 0x78], 0x10016b0
push 0x3000
jmp 0x10024cc
and dword [ebp - 0x68], 0
push 0x25
push esi
call fcn.0100223f
test eax, eax
je 0x10024bd
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, 0x31
jb 0x1002443
cmp cx, 0x39
ja 0x1002443
inc dword [ebp - 0x68]
jmp 0x100244b
cmp cx, 0x25
jne 0x100244b
inc eax
inc eax
push 0x25
push eax
call fcn.0100223f
test eax, eax
jne 0x100242d
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp + 0x10]
jbe 0x10024bd
shl eax, 2
push eax
call dword [sym.imp.msvcrt.dll_malloc]
xor edx, edx
pop ecx
mov dword [ebp - 0x74], eax
cmp eax, edx
jne 0x1002477
xor esi, esi
jmp 0x10024d0
cmp dword [ebp - 0x68], edx
jbe 0x100249a
cmp edx, dword [ebp + 0x10]
jae 0x100248e
mov ecx, dword [ebp - 0x70]
add dword [ecx], 4
mov ecx, dword [ecx]
mov ecx, dword [ecx - 4]
jmp 0x1002491
mov ecx, dword [ebp + 0xc]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, dword [ebp - 0x68]
jb 0x100247c
push eax
mov eax, dword [ebp - 0x6c]
push edi
push esi
push 0
push dword [ebp + 8]
or eax, 0x2000
push 0
push eax
call ebx
push dword [ebp - 0x74]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x10024d0
push dword [ebp - 0x70]
push edi
push esi
push 0
push dword [ebp + 8]
push 0
push dword [ebp - 0x6c]
call ebx
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003f17
leave
ret 0x10
Function at 0x1002a10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x10029d5
sub ecx, edi
sar ecx, 1
jne 0x1002a04
movzx ecx, word [eax + 6]
cmp ecx, 4
je 0x10029f7
cmp ecx, 0x10
je 0x10029f7
xor eax, eax
jmp 0x1002a4d
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
inc eax
jmp 0x1002a4d
push ebx
movzx ebx, word [eax + 8]
test bx, bx
je case.0x1002a18.15
movzx ecx, word [eax + 6]
dec ecx
cmp ecx, 0xf
ja case.0x1002a18.15
jmp dword [ecx*4 + 0x1002b30]
push 1
push eax
call fcn.01002928
jmp 0x1002b26
mov edi, dword [eax + 0xc]
push 0xa
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstol]
mov byte [edi], al
add esp, 0xc
cmp dword [ebp - 4], esi
jne 0x1002b26
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
mov eax, dword [eax + 0xc]
mov cx, word [esi]
mov word [eax], cx
jmp 0x1002b26
cmp word [esi], 0x5c
jne 0x1002a87
inc esi
inc esi
cmp word [esi], 0x5c
jne 0x1002a87
lea ecx, [esi + 2]
movzx edx, word [ecx]
cmp dx, 0x2d
je 0x1002a85
cmp dx, 0x2f
je 0x1002a85
cmp dx, 0x5c
jne 0x1002a87
mov esi, ecx
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x1002a8c
sub ecx, edi
movzx edx, bx
sar ecx, 1
cmp edx, ecx
jbe case.0x1002a18.15
push esi
push edx
push dword [eax + 0xc]
call fcn.01003f50
jmp 0x1002b23
cmp word [esi], 0x2d
je case.0x1002a18.15
mov edi, dword [eax + 0xc]
push 0xa
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstol]
mov word [edi], ax
jmp 0x1002a3e
cmp word [esi], 0x2d
je case.0x1002a18.15
mov edi, dword [eax + 0xc]
push 0xa
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstol]
mov dword [edi], eax
jmp 0x1002a3e
cmp word [esi], 0x2d
je case.0x1002a18.15
mov edi, dword [eax + 0xc]
push 0x10
push 0
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
mov word [edi], ax
jmp 0x1002b23
cmp word [esi], 0x2d
je case.0x1002a18.15
mov edi, dword [eax + 0xc]
push 0x10
push 0
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
mov dword [edi], eax
add esp, 0xc
xor eax, eax
inc eax
jmp 0x1002a4c
Function at 0x1002ab8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x10029d5
sub ecx, edi
sar ecx, 1
jne 0x1002a04
movzx ecx, word [eax + 6]
cmp ecx, 4
je 0x10029f7
cmp ecx, 0x10
je 0x10029f7
xor eax, eax
jmp 0x1002a4d
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
inc eax
jmp 0x1002a4d
push ebx
movzx ebx, word [eax + 8]
test bx, bx
je case.0x1002a18.15
movzx ecx, word [eax + 6]
dec ecx
cmp ecx, 0xf
ja case.0x1002a18.15
jmp dword [ecx*4 + 0x1002b30]
push 1
push eax
call fcn.01002928
jmp 0x1002b26
mov edi, dword [eax + 0xc]
push 0xa
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstol]
mov byte [edi], al
add esp, 0xc
cmp dword [ebp - 4], esi
jne 0x1002b26
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
mov eax, dword [eax + 0xc]
mov cx, word [esi]
mov word [eax], cx
jmp 0x1002b26
cmp word [esi], 0x5c
jne 0x1002a87
inc esi
inc esi
cmp word [esi], 0x5c
jne 0x1002a87
lea ecx, [esi + 2]
movzx edx, word [ecx]
cmp dx, 0x2d
je 0x1002a85
cmp dx, 0x2f
je 0x1002a85
cmp dx, 0x5c
jne 0x1002a87
mov esi, ecx
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x1002a8c
sub ecx, edi
movzx edx, bx
sar ecx, 1
cmp edx, ecx
jbe case.0x1002a18.15
push esi
push edx
push dword [eax + 0xc]
call fcn.01003f50
jmp 0x1002b23
cmp word [esi], 0x2d
je case.0x1002a18.15
mov edi, dword [eax + 0xc]
push 0xa
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstol]
mov word [edi], ax
jmp 0x1002a3e
cmp word [esi], 0x2d
je case.0x1002a18.15
mov edi, dword [eax + 0xc]
push 0xa
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstol]
mov dword [edi], eax
jmp 0x1002a3e
cmp word [esi], 0x2d
je case.0x1002a18.15
mov edi, dword [eax + 0xc]
push 0x10
push 0
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
mov word [edi], ax
jmp 0x1002b23
cmp word [esi], 0x2d
je case.0x1002a18.15
mov edi, dword [eax + 0xc]
push 0x10
push 0
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
mov dword [edi], eax
add esp, 0xc
xor eax, eax
inc eax
jmp 0x1002a4c
Function at 0x572c80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x4ac100
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6a000]
push edi
or ebp, 0xffffffff
jmp 0x4ac122
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ac129
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac118
mov eax, 1
add ebx, ebx
jne 0x4ac13b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ac14c
jne 0x4ac16b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac16b
dec eax
add ebx, ebx
jne 0x4ac158
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ac130
add ebx, ebx
jne 0x4ac167
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ac1bd
xor ecx, ecx
sub eax, 3
jb 0x4ac183
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ac1f2
sar eax, 1
mov ebp, eax
jmp 0x4ac18e
add ebx, ebx
jne 0x4ac18e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac15c
inc ecx
add ebx, ebx
jne 0x4ac19c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac15c
add ebx, ebx
jne 0x4ac1a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ac19e
jne 0x4ac1ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ac19e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ac1dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ac1ce
jmp 0x4ac11e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ac1dc
add edi, ecx
jmp 0x4ac11e
pop esi
mov edi, esi
mov ecx, 0x3653
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ac1fa
cmp byte [edi], 0x4b
jne 0x4ac1fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4ac1ff
lea edi, [esi + 0xa8000]
mov eax, dword [edi]
or eax, eax
je 0x4ac277
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xad11c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xad270]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ac22c
mov ecx, edi
jns 0x4ac25b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xad274]
or eax, eax
je 0x4ac271
mov dword [ebx], eax
add ebx, 4
jmp 0x4ac249
call dword [esi + 0xad284]
mov ebp, dword [esi + 0xad278]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4ac2ab
sub esp, 0xffffff80
jmp 0x418720
Function at 0x48b751
Capabilities:
Encode data using xor

Disassembly:
mov byte [0x7ade0e72], al
stosb byte es:[edi], al
xchg esi, eax
inc esi
xchg edx, eax
inc edx
mov esi, 0x261aca6e
test byte [edx + 0xd90a5b7], 0x38
push 0x5f
pop ebp
push 0x6752cffa
xor eax, 0x1b093c00
mov bl, 0x86
add byte [ecx + ecx], bh
sbb ebp, dword [esi]
mov bl, 0x86
aam 0xe1
jecxz 0x48b6e6
inc esp
jno 0x48b6ff
invalid
dec edx
xlatb
loop 0x48b705
test dword [ecx + esi*4 + 0x3e0b96a3], eax
insb byte es:[edi], dx
pop ecx
pop ebx
outsb dx, byte [esi]
cld
leave
push esp
popal
xor eax, dword [esi]
cmp cl, byte [edi]
sbb eax, 0xd280b528
out 0xe5, eax
rol byte [edx + 0x77], 1
ljmp 0xf5d2

Function at 0x600421
Capabilities:
Encode data using xor

Disassembly:
je 0x600442
test bl, ah
push esp
outsb dx, byte [esi]
movsd dword es:[edi], dword [esi]
xchg edx, eax
adc eax, 0x2ea3c53a
or ecx, dword [edx]
invalid
sbb eax, dword [esi + 0x7925e92f]
fiadd dword [eax + 0x4a]
adc al, 0xd2
pushal
sub bh, byte [esi + ebx*4]
leave
or al, byte [0xd9bfc479]
mov edx, 0xfe1df54
add eax, 0xffd43a7f
cmc
xchg esi, edi
sub esi, ebp
mov ch, 0x29
push ebx
fistp dword gs:[ebx]
and al, 0x41
xor eax, 0xc4f7498d
jg 0x6004d5
cmp dword [edi + 0xa], eax
inc esp
rol ch, 0x12
invalid
xor al, 0x40
rcl ecx, 1
inc ebp
iretd

Function at 0x7c598d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7cd388
cmp edx, dword [eax]
je 0x7c59af
add eax, 8
inc ecx
cmp eax, 0x7cd418
jl 0x7c59a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7cd388]
jne 0x7c5add
mov eax, dword [0xbcfce4]
cmp eax, 1
je 0x7c5ab7
test eax, eax
jne 0x7c59e0
cmp dword [0x7cd2b4], 1
je 0x7c5ab7
cmp edx, 0xfc
je 0x7c5add
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c5a17
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.007c6370
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c6800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c5a5a
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c6800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7ca7a4
push edi
call fcn.007c86d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.007c6370
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c6380
lea eax, [ebp - 0xa0]
push 0x7ca784
push eax
call fcn.007c6380
push dword [esi + 0x7cd38c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c6380
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.007c8644
add esp, 0x2c
pop edi
jmp 0x7c5add
lea eax, [ebp + 8]
lea esi, [esi + 0x7cd38c]
push 0
push eax
push dword [esi]
call fcn.007c6800
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402910
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40293f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ba4
jmp 0x40295d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402838
mov edi, eax
test ebx, ebx
je 0x40295d
cmp dword [esi], 0
je 0x40295d
dec ebx
jmp 0x402946
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402cc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ca0
xor eax, eax
push ebp
push 0x402c99
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 0x402cdc
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 0x402ca0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x403a70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026e0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x44a045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403a38
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404ff8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4051b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405059
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4051d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4050cb
xor eax, eax
push ebp
push 0x4050c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404e50
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4050ad
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4051f0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4050cb
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4051ac
cmp byte [ebp - 0xd], 0
jne 0x40510d
cmp byte [ebp - 0x12], 0
je 0x4051ac
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405126
dec ebx
cmp byte [ebx], 0x2e
je 0x405135
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405125
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4051ac
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405162
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4051ac
cmp byte [ebp - 0xd], 0
je 0x4051ac
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4051ac
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408890
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 0x4088c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ba4
jmp 0x4088d2
mov eax, ebx
mov edx, esi
call fcn.00403b10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4088dc
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 0x4088fd
mov al, byte [esp]
jmp 0x4088ff
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x414c8c
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 0x414c92
ret

Function at 0x417080
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 0x4170d1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4170b8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4170a8
jmp 0x4170d1
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 0x4170b9
pop ebx
mov esp, ebp
pop ebp
ret