joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456fd5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4570ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4570ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047cd4d
mov esi, eax
test esi, esi
je 0x4570ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4570ed
mov ecx, esi
call fcn.00456f40
cmp edi, eax
jge 0x4570ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x457073
mov dword [esp + 0x34], 1
jmp 0x4570ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4570ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00456500
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4594b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x459516
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x459516
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4594f7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4598a0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4598d8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x45a500
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45a549
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x45a9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48bb10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045a570
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045a5f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045a5f0
lea ecx, [esi + 0xc]
call fcn.0047b25f
lea ecx, [esi + 0x10]
call fcn.0047b25f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045bb80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045bb80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045bb80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047b2d4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047b2d4
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45d3d0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45d41a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x45d449
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x45d48b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x47d6f1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47d729
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047b77b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047b753
jmp 0x47d735
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47eddf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47ee21
call fcn.00484d90
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47ee21
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47ee18
xor eax, eax
jmp 0x47ee29
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047ee2f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4852c0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4852ee
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48530c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00485226
jmp 0x48530c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48530c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00485226
test edi, edi
mov eax, edi
jne 0x4852f6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404e50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404e6b
mov ebx, dword [0x407360]
mov esi, ebx
xor ecx, ecx
jmp 0x404e8e
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e76
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e89
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e71
lea eax, [ecx + 1]
push eax
call fcn.00405590
pop ecx
mov edi, eax
mov dword [0x407298], eax
cmp dword [0x407298], 0
jne 0x404eb5
push 1
call fcn.00404570
pop ecx
mov esi, ebx
jmp 0x404eea
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404ebe
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404ee5
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404ed5
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404eb9
mov byte [edi], 0
cmp ebx, dword [0x407360]
je 0x404f01
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x40642a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x406439
pop dword [ebp - 0x48]
mov eax, 0x406439
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x8a702f22
sub dword [ebp - 0x58], 0x3c1de9d7
mov dword [ebp - 0x54], 0x66bad8da
add dword [ebp - 0x54], 0xcb78736b
mov dword [ebp - 0x50], 0x5ee55e6e
add dword [ebp - 0x50], 0xed66e5c0
mov dword [ebp - 0x4c], 0x5d2efb2b
add dword [ebp - 0x4c], 0xa2d104d5
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x2ff90307
sub dword [ebp - 0x58], 0xbb8699b1
mov dword [ebp - 0x54], 0xb31f431c
add dword [ebp - 0x54], 0x8e4d1e59
mov dword [ebp - 0x50], 0xe7892215
sub dword [ebp - 0x50], 0x8419b5a9
mov dword [ebp - 0x4c], 0xff86cd01
sub dword [ebp - 0x4c], 0xff86cd01
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3c7cf
push 0
call eax
mov ecx, 0xaedf3a92
add ecx, 0x51211958
xor edi, edi
add edi, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x48]
mov ebx, 0x9f2e2fae
add ebx, 0xb03edde5
mov edx, dword [esi]
xor dword [ebp - 0x14], 0x73b87c79
xor edx, ebx
sub dword [ebp - 8], 0xaf2d17e8
mov dword [edi], edx
add edi, 0xe1a32091
sub edi, 0xe1a3208d
add esi, 0xf0dad6d0
add esi, 0xf252934
loop 0x406548
add eax, 0xf527112
sub eax, 0xf512e97
mov ebx, eax
add eax, 0x895f9ec3
sub eax, 0x895f9ebe
mov ecx, 0x603b1da2
sub ecx, 0x5ffb1da2
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x408969
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
call fcn.0040899d
xor dword [eax], ebx
sub edi, edi
inc eax
add edx, 0xf2cfa2f6
mov edx, 0x60339c29
cmp eax, esi
jne fcn.00408969
add edx, 0xefa10575
sub edx, 0x963433ee
ret
Function at 0x422040
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
or ebp, 0xffffffff
jmp 0x422062
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x422069
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x422058
mov eax, 1
add ebx, ebx
jne 0x42207b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x422070
jne 0x42208c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422070
xor ecx, ecx
sub eax, 3
jb 0x4220a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x422112
mov ebp, eax
add ebx, ebx
jne 0x4220ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4220b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4220dc
inc ecx
add ebx, ebx
jne 0x4220c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4220bd
jne 0x4220d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4220bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4220fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4220ed
jmp 0x42205e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4220fc
add edi, ecx
jmp 0x42205e
pop esi
mov edi, esi
mov ecx, 0xc5d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42211a
cmp byte [edi], 2
jne 0x42211a
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 eax, ebx
loop 0x42211f
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x422197
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2891c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x28994]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42214c
mov ecx, edi
jns 0x42217b
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 + 0x28998]
or eax, eax
je 0x422191
mov dword [ebx], eax
add ebx, 4
jmp 0x422169
call dword [esi + 0x2899c]
popal
jmp 0x41241f
Function at 0x40106c
Capabilities:
Encode data using xor

Disassembly:
push 0x404640
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edi - 0x75dd7b3b], ch
xor dword [edi + 0x5c3cb246], ecx
mov eax, 0xc94be8be
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
inc ecx
add byte [esi], al
push eax
xchg ebx, eax
add cl, byte [ebp + 0x6f]
bound esi, qword fs:[ebp + 0x73]
inc ebx
push edx
inc ebx
xor dword [esi], esi
add byte [ebp + ebp*4 + 0x13c], cl
add byte [eax], al
dec esp
xor dword [eax], eax
or ah, byte [ecx]
push 0xffffffffffffff8d
jnp 0x40109a
loope 0x4010ff
dec esi
mov byte [eax - 0x19104e66], cl
mov dh, 0xc7
or byte [ebx + ecx*2 - 0x71], al
sbb dword [eax + 0x7c8d4732], edx
ljmp 0x3afa
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax + eax], 0
stosd dword es:[edi], eax
xor al, byte [eax]
add byte [eax], al
pop es
add byte [esi + 0x72], ah
insd dword es:[edi], dx
dec ebp
popal
imul ebp, dword [esi], 0x16010d
dec ebp
outsd dx, dword [esi]
bound esi, qword fs:[ebp + 0x73]
int 0xa8
sal dword [esi + 0x43524320], 1
xor dword [esi], esi
mov esp, 0xc6e3cbc6
test dword [eax], 0x42000119
add byte [edx], ah
add dword [ebx], esp
inc esi
xor al, byte [eax]
add byte [esp + esi*2], ch
add byte [esi], bh
xor al, byte [eax]
add byte [eax], al
add byte [ecx], al
add byte [ecx], al
add byte [eax + 0x40], al
add byte [eax], al
add dword [eax], eax
sbb byte [eax], al
sub byte [edx], dh
add byte [eax], al
push ss
add byte [eax], al
add byte [eax], ch
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], 0
add byte [ecx], al
add byte [eax], bl
add byte [eax], al
add byte [eax], al
add byte [eax], ch
xor al, byte [eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx], al
add dword [eax], eax
or al, 0xa
add dl, byte [ecx]
sgdt [eax + 0x3d]
sub cl, dl
iretd

Function at 0x10008e60
Capabilities:
Encode data using xor

Disassembly:
out dx, eax
cmpsb byte [esi], byte es:[edi]
fcomp qword [ebx + 0x29]
sahf
xor bh, byte [ecx]
ja 0x10008e1a
cmp ecx, ebx
mov byte [edi], 0xf1
test dword [edi + 0x78], ecx
mov esp, 0xd6effceb
xchg edx, eax
fild qword [eax - 0x3b8ddc3a]
cmp al, 0x55
salc
sar byte [esp + 0x62], 0xa1
in eax, dx
ja 0x10008e14
inc edi
add al, 0x26
mov eax, dword [0xf2832ed5]
push eax
add eax, 0x2463d8eb
mov byte [eax - 3], ah
jo 0x10008efe
inc edx
pushal
scasd eax, dword es:[edi]
invalid
insd dword es:[edi], dx
push ebx

Function at 0x10009880
Capabilities:
Encode data using xor

Disassembly:
inc esi
xor eax, 0x607e84f9
lcall 0x1c23, 0xdd1a2467
cmp byte [edx], cl
mov dword [edi + 0x30], ebx
rol dword [esi + 0x420245e9], 0x14
in al, dx
mov cl, 0x60
jne 0x10009873
xchg ecx, eax
inc esi
invalid
Function at 0x402ad8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404114
test esi, esi
jne 0x402b0e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404204
jmp 0x402b2c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029ec
mov edi, eax
test esi, esi
je 0x402b2c
cmp dword [ebx], 0
je 0x402b2c
dec esi
jmp 0x402b15
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403218
Capabilities:
Query or enumerate registry value

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

Function at 0x403f98
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a704c], 0
je 0x403ff9
cmp word [0x4a7220], 0xd7b2
jne 0x403fc1
cmp dword [0x4a7228], 0
jbe 0x403fc1
mov eax, 0x4a721c
call dword [0x4a7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a406c
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 0x404020
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a4030], 0
jne 0x404015
push 0
push 0x4a4064
push 0x4a406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406180
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 0x4061e6
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.00404384
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d84
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061d0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061ed
lea eax, [ebp - 0x10]
call fcn.00404114
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004045d4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408cf1
test al, 0x10
jne 0x408cf5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b9b0
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 0x40b9e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404204
jmp 0x40b9f2
mov eax, ebx
mov edx, esi
call fcn.00404168
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ca10
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 0x40cae6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004041ac
lea eax, [ebp - 8]
call fcn.00404624
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004045d4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cad0
mov eax, ebx
call fcn.004027b0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cac9
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.004045d4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cab3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40caf8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cab3
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 0x40cad0
mov eax, dword [ebp - 0x10]
call fcn.004027d0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40caed
lea eax, [ebp - 8]
call fcn.00404114
ret