joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402350
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2810
call fcn.00428f70
mov eax, dword [0x43500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
lea ecx, [ebp - 0x2804]
push 0x1000
push ecx
push eax
mov dword [ebp - 0x2808], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x402554
mov ecx, dword [0x4369b0]
mov eax, dword [ecx]
cmp eax, ecx
je 0x402554
push edi
lea edi, [ebp - 0x2804]
lea edx, [edi + 2]
mov cx, word [edi]
add edi, 2
test cx, cx
jne 0x4023a4
mov ecx, dword [0x4300ac]
sub edi, edx
sar edi, 1
push ebx
mov dword [ebp - 0x2810], edi
push esi
cmp dword [eax + 0x3c], 8
lea esi, [eax + 0x28]
mov edx, esi
jb 0x4023ce
mov edx, dword [esi]
mov ebx, dword [esi + 0x10]
cmp ebx, edi
jne 0x402410
lea edi, [ebp - 0x2804]
test ebx, ebx
je 0x4024e3
mov ecx, edi
sub edx, ecx
mov ecx, dword [0x4300ac]
mov dword [ebp - 0x280c], edx
mov dx, word [edx + edi]
cmp dx, word [edi]
jne 0x402410
add edi, 2
sub ebx, 1
je 0x4024e3
mov edx, dword [ebp - 0x280c]
jmp 0x4023f3
cmp dword [esi + 0x14], 8
lea ebx, [eax + 0x40]
jb 0x40241b
mov esi, dword [esi]
lea edi, [ebp - 0x804]
sub edi, esi
movzx edx, word [esi]
lea esi, [esi + 2]
mov word [esi + edi - 2], dx
test dx, dx
jne 0x402423
lea edi, [ebp - 0x804]
add edi, 0xfffffffe
nop dword [eax]
mov dx, word [edi + 2]
add edi, 2
test dx, dx
jne 0x402440
mov dword [edi], ecx
lea esi, [ebp - 0x2804]
lea edx, [ebp - 0x804]
nop word [eax + eax]
mov di, word [edx]
cmp di, word [esi]
jne 0x402486
test di, di
je 0x402482
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x402486
add edx, 4
add esi, 4
test di, di
jne 0x402460
xor edx, edx
jmp 0x40248b
sbb edx, edx
or edx, 1
test edx, edx
jne 0x402494
cmp dword [ebx + 0x10], edx
jne 0x4024f6
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
je 0x4024ba
mov edx, dword [eax + 4]
cmp byte [edx + 0xd], 0
jne 0x4024b6
cmp eax, dword [edx + 8]
jne 0x4024b6
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x4024a6
mov eax, edx
jmp 0x4024d0
mov eax, edx
mov esi, dword [eax]
cmp byte [esi + 0xd], 0
jne 0x4024d0
mov edx, dword [esi]
mov eax, esi
mov esi, edx
cmp byte [edx + 0xd], 0
je 0x4024c4
cmp eax, dword [0x4369b0]
je 0x402551
mov edi, dword [ebp - 0x2810]
jmp 0x4023c1
cmp dword [eax + 0x50], 0
je 0x402551
add eax, 0x40
cmp dword [eax + 0x14], 8
jb 0x402544
mov eax, dword [eax]
jmp 0x402544
cmp dword [ebx + 0x14], 8
jb 0x4024fe
mov ebx, dword [ebx]
lea edx, [ebp - 0x804]
sub edx, ebx
nop word [eax + eax]
movzx eax, word [ebx]
lea ebx, [ebx + 2]
mov word [edx + ebx - 2], ax
test ax, ax
jne 0x402510
lea edi, [ebp - 0x804]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x402530
mov dword [edi], ecx
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x2808]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fcb7
mov esp, ebp
pop ebp
ret
Function at 0x407bd0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x43500c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00407b20
mov esi, eax
test esi, esi
jne 0x407cc7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x407c99
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00407bd0
mov esi, eax
test esi, esi
jne 0x407cc7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x407c60
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407cb0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00407a40
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407cd6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040fcb7
mov esp, ebp
pop ebp
ret 4
Function at 0x4081e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429746
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40828c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40828c
call fcn.00407820
mov edi, eax
jmp 0x4083ab
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4082af
call fcn.00407820
jmp 0x40839e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4082cd
call fcn.00407820
jmp 0x40839e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4082ee
mov edi, 0x8007000e
jmp 0x4083a0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4083e4
jb 0x40830c
cmp eax, 0xffffffff
ja 0x4083e4
cmp eax, 0x400
jbe 0x408321
push eax
lea ecx, [ebp - 0x418]
call fcn.0040f6b0
jmp 0x408347
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x408347
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40835e
mov edi, 0x8007000e
jmp 0x4083a0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40837e
call fcn.00407820
jmp 0x40839e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00409000
mov edi, eax
test esi, esi
je 0x4083ab
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4083c4
lea ecx, [ebp - 0x418]
call fcn.0040f640
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040fcb7
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00401970
int3
Function at 0x40a1f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x3f0
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x40a288
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x40a313
mov esi, dword [ebp + 0xc]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40a23b
push edi
mov ecx, esi
call fcn.0040f650
mov edx, dword [esi]
push edi
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x40a261
mov ecx, dword [esi]
test ecx, ecx
je 0x40a269
push dword [ecx - 8]
push ecx
call fcn.0041ba3d
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x40a313
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40a313
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0x10]
mov esi, dword [ecx]
je 0x40a30a
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x40a2be
cmp dword [eax - 8], 0
jl 0x40a313
mov dword [eax - 0xc], 0
xor ecx, ecx
mov eax, dword [edi]
pop edi
pop esi
pop ebx
mov word [eax], cx
xor eax, eax
pop ebp
ret 8
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40a2e7
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40a31d
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40a323
lock inc dword [esi + 0x14]
lea eax, [esi + 8]
add eax, 0x10
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
add eax, 0x10
mov dword [edi], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.00401970
mov ecx, edx
call ebx
jmp 0x40a2e7
mov ecx, esi
call dword [eax + 0xc]
jmp 0x40a305
Function at 0x40f050
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x43500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
mov esi, ecx
push 0
push eax
call fcn.00411cd0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x210]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x41a], ax
test ax, ax
jne 0x40f0a1
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x418]
push eax
call esi
push 0x250
lea eax, [ebp - 0x870]
push 0
push eax
call fcn.00411cd0
add esp, 0xc
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f200
test byte [ebp - 0x870], 0x10
jne 0x40f118
lea edx, [ebp - 0x844]
lea ecx, [ebp - 0x210]
call fcn.0040ef80
cmp dword [0x436994], 0
jne 0x40f1f9
lea eax, [ebp - 0x870]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40f1f9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test byte [ebp - 0x870], 0x10
jne 0x40f1ce
xor eax, eax
movzx ecx, word [ebp + eax - 0x210]
lea eax, [eax + 2]
mov word [ebp + eax - 0x622], cx
test cx, cx
jne 0x40f150
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x620]
push eax
call esi
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40f1c8
push str.DllEnumV2
push esi
call edi
mov dword [0x4369a8], eax
test eax, eax
je 0x40f1ad
push str.DllOpen
push esi
call edi
mov dword [0x436990], eax
test eax, eax
jne 0x40f1e6
push esi
mov dword [0x4369a8], 0
mov dword [0x436990], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x870]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f141
jmp 0x40f1f9
push str.DllGigeEnable
push esi
mov dword [0x436994], esi
call edi
mov dword [0x436998], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fcb7
mov esp, ebp
pop ebp
ret
Function at 0x40f220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 8
push eax
mov dword [esp + 0x1c], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push 0x20019
push str.SYSTEM
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x436980], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00407b20
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x40f2bb
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 4
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.Magic
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 8], 0xabcdef
mov ecx, 1
movzx eax, byte [0x4369ac]
cmove eax, ecx
mov byte [0x4369ac], al
test esi, esi
je 0x40f2e2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, str.cam.dll
call fcn.0040f050
cmp dword [0x436994], 0
jne 0x40f325
mov ecx, str..dll
call fcn.0040f050
cmp dword [0x436994], 0
jne 0x40f325
push 0x10
push 0
push str.Failed_to_find_the_camera_dll.
push 0
call fcn.0040b060
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
sub esp, 0xc
call fcn.0040a870
mov ecx, dword [ebp + 0x14]
call fcn.0040ec70
mov edi, dword [0x43699c]
add edi, 0x10
mov dword [esp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4369f4]
test esi, esi
je 0x40f39b
cmp dword [esi + 4], 0
jle 0x40f369
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x4369f4]
test esi, esi
je 0x40f39b
mov eax, dword [esi]
test eax, eax
je 0x40f382
push eax
call fcn.0041c350
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0040ff97
add esp, 8
push edi
mov dword [0x4369f4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x4369f0]
test esi, esi
je 0x40f3f4
mov eax, dword [esi]
test eax, eax
je 0x40f3cb
push eax
call fcn.0041c350
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40f3e2
push eax
call fcn.0041c350
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.0040ff97
add esp, 8
mov esi, dword [0x4369e8]
test esi, esi
je 0x40f42a
cmp dword [esi], 0
je 0x40f42a
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40f414
mov ecx, dword [eax]
cmp ecx, vtable.ATL::CRegObject.0
jne 0x40f470
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x40f403
mov esi, dword [0x435908]
mov ecx, dword [0x43590c]
cmp esi, ecx
jae 0x40f45a
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x40f453
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x43590c]
add esi, 4
cmp esi, ecx
jb 0x40f440
mov ecx, 0x4369bc
call fcn.00407850
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push eax
call dword [ecx + 8]
jmp 0x40f414
Function at 0x421562
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004213e1
Function at 0x4c2e80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x80000]
push edi
jmp 0x4c2e9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c2ea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c2e90
mov eax, 1
add ebx, ebx
jne 0x4c2eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c2ec4
jne 0x4c2ee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c2ee3
dec eax
add ebx, ebx
jne 0x4c2ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c2ea8
add ebx, ebx
jne 0x4c2edf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c2f35
xor ecx, ecx
sub eax, 3
jb 0x4c2efb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c2f6a
sar eax, 1
mov ebp, eax
jmp 0x4c2f06
add ebx, ebx
jne 0x4c2f06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c2ed4
inc ecx
add ebx, ebx
jne 0x4c2f14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c2ed4
add ebx, ebx
jne 0x4c2f21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c2f16
jne 0x4c2f32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c2f16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c2f54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c2f46
jmp 0x4c2e96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c2f54
add edi, ecx
jmp 0x4c2e96
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c2f72
cmp byte [edi], 0x13
jne 0x4c2f72
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 0x4c2f77
lea edi, [esi + 0xbe000]
mov eax, dword [edi]
or eax, eax
je 0x4c2fef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd4740]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd4894]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c2fa4
mov ecx, edi
jns 0x4c2fd3
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 + 0xd4898]
or eax, eax
je 0x4c2fe9
mov dword [ebx], eax
add ebx, 4
jmp 0x4c2fc1
call dword [esi + 0xd48a8]
mov ebp, dword [esi + 0xd489c]
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 0x4c3023
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x402a94
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.004041a8
test esi, esi
jne 0x402aca
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.00404298
jmp 0x402ae8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402948
mov edi, eax
test esi, esi
je 0x402ae8
cmp dword [ebx], 0
je 0x402ae8
dec esi
jmp 0x402ad1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403158
Capabilities:
Query or enumerate registry value

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

Function at 0x40400c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c04c], 0
je 0x40406d
cmp word [0x46c220], 0xd7b2
jne 0x404035
cmp dword [0x46c228], 0
jbe 0x404035
mov eax, 0x46c21c
call dword [0x46c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46906c
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 0x404094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x469030], 0
jne 0x404089
push 0
push 0x469064
push 0x46906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406108
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 0x40616e
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.00404418
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d1c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406158
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406175
lea eax, [ebp - 0x10]
call fcn.004041a8
ret

Function at 0x40b910
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 0x40b949
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404298
jmp 0x40b952
mov eax, ebx
mov edx, esi
call fcn.004041fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c004
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40be7c
mov eax, dword [0x46b254]
cmp byte [eax], 0
je 0x40c080
mov eax, dword [0x46b05c]
call fcn.00402b88
call fcn.00402874
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040913c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40c0c8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c0b6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46affc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46c668]
call fcn.00405600
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret