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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x49f014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
test esi, esi
je 0x45962a
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x44]
push 0x40
push ebx
push eax
mov dword [ebp - 0x48], ebx
call fcn.00461200
add esp, 0xc
cmp word [esi], bx
je 0x4595db
cmp ebx, 0x10
jae 0x4595db
movzx eax, word [esi]
mov ecx, eax
cmp eax, 0x20
jne 0x459502
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x20
je 0x4594f4
mov ecx, eax
xor al, al
cmp cx, 0x22
jne 0x45951b
nop word [eax + eax]
add esi, 2
xor al, 1
cmp word [esi], 0x22
je 0x459510
movzx ecx, word [esi]
mov edi, esi
mov dword [ebp - 0x4c], esi
test al, al
je 0x459553
test cx, cx
je 0x4595db
cmp cx, 0x22
je 0x45954c
movzx eax, word [esi + 2]
add esi, 2
add edi, 2
mov ecx, eax
test ax, ax
jne 0x459530
jmp 0x4595db
mov edx, 0x22
jmp 0x45957c
mov edx, ecx
test cx, cx
je 0x45957c
nop word [eax + eax]
movzx edx, cx
cmp cx, 0x20
je 0x45957c
movzx eax, word [esi + 2]
add esi, 2
add edi, 2
mov ecx, eax
mov edx, eax
test ax, ax
jne 0x459560
test dx, dx
lea eax, [esi + 2]
cmove eax, esi
mov esi, eax
mov eax, dword [ebp - 0x4c]
cmp edi, eax
jbe 0x4595d1
sub edi, eax
xor ecx, ecx
sar edi, 1
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00469c05
mov ecx, dword [ebp - 0x4c]
mov ebx, eax
mov eax, dword [ebp - 0x48]
add edi, edi
push edi
push ecx
push ebx
mov dword [ebp + eax*4 - 0x44], ebx
call fcn.00462660
xor eax, eax
add esp, 0x10
mov word [edi + ebx], ax
mov ebx, dword [ebp - 0x48]
inc ebx
mov dword [ebp - 0x48], ebx
cmp word [esi], 0
jne 0x4594e1
xor esi, esi
test ebx, ebx
je 0x459628
mov ecx, dword [ebp + esi*4 - 0x44]
xor edx, edx
inc esi
xor edi, edi
cmp esi, ebx
movzx eax, word [ecx]
sete dl
cmp eax, 0x2d
je 0x4595fc
cmp eax, 0x2f
jne 0x459604
mov edi, 1
add ecx, 2
mov eax, dword [ebp - 0x50]
push edx
push edi
push ecx
mov eax, dword [eax]
mov ecx, dword [ebp - 0x50]
call dword [eax]
cmp esi, ebx
jb 0x4595e1
xor esi, esi
push dword [ebp + esi*4 - 0x44]
call fcn.004640b0
inc esi
add esp, 4
cmp esi, ebx
jb 0x459617
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret 8
Function at 0x459650
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49f014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ecx + 0x10]
je 0x4596ae
test ecx, ecx
je 0x45969c
test eax, eax
je 0x45969c
push dword [ebp + 0x18]
push eax
push 4
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret 0x18
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret 0x18
test ecx, ecx
je 0x45969c
test eax, eax
je 0x45969c
push esi
mov esi, dword [ebp + 0x18]
push edi
lea edi, [ebp - 8]
mov dword [ebp - 8], esi
push edi
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4596f4
cmp dword [ebp - 0xc], 4
jne 0x4596f4
cmp dword [ebp - 8], esi
ja 0x4596f4
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret 0x18

Function at 0x459710
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49f014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
je 0x4597ae
mov ebx, dword [ebp + 0x14]
xor edx, edx
mov edi, ebx
test ebx, ebx
je 0x459764
mov ecx, esi
cmp word [esi], dx
je 0x45976c
nop dword [eax]
mov eax, edi
lea ecx, [ecx + 2]
dec edi
test eax, eax
je 0x459761
inc edx
cmp word [ecx], 0
jne 0x459750
mov eax, dword [ebp - 8]
cmp edx, ebx
je 0x45981b
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45981b
test esi, esi
je 0x45981b
lea eax, [edx*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 0x14]
mov eax, dword [eax + 0x10]
lea ebx, [edi + edi]
test eax, eax
je 0x45981b
test esi, esi
je 0x45981b
lea edx, [ebp - 8]
mov dword [ebp - 8], ebx
push edx
push esi
lea edx, [ebp - 0xc]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45981b
cmp dword [ebp - 0xc], 1
jne 0x45981b
cmp dword [ebp - 8], ebx
ja 0x45981b
xor edx, edx
mov ecx, edi
test edi, edi
je 0x459802
cmp word [esi], dx
je 0x459806
mov eax, ecx
lea esi, [esi + 2]
dec ecx
test eax, eax
je 0x459802
inc edx
cmp word [esi], 0
jne 0x4597f1
cmp edx, edi
je 0x45981b
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret 0x10
Function at 0x459e90
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47aefd
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x49f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x68], edi
push 0x3c
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00461200
add esp, 0xc
mov dword [ebp - 0x58], vtable.KWnd.0
cmp dword [0x4a18cc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x44], 0
jne 0x459f05
push 0x4924a8
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x4a18cc], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
jne 0x459f29
call fcn.004599b0
mov esi, dword [eax + 4]
mov dword [ebp + 8], esi
test esi, esi
jne 0x459f29
xor eax, eax
jmp 0x45a04f
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push esi
mov dword [ebp - 0x20], esi
call ebx
test eax, 0x40000000
je 0x459f63
mov edi, dword [sym.imp.USER32.dll_GetParent]
push esi
call edi
xor esi, esi
test eax, eax
push 0xfffffffffffffff0
cmovne esi, eax
push esi
mov dword [ebp - 0x20], esi
call ebx
test eax, 0x40000000
jne 0x459f44
mov edi, dword [ebp - 0x68]
mov dword [ebp + 8], esi
test esi, esi
je 0x45a04d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x45a04d
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45a04d
mov eax, dword [edi + 0x38]
lea ebx, [edi + 0x54]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x68], esi
cmp eax, dword [ebx + 8]
je 0x459fad
mov dword [eax], esi
add dword [ebx + 4], 4
jmp 0x459fb9
lea ecx, [ebp - 0x68]
push ecx
push eax
mov ecx, ebx
call fcn.0042b920
lea eax, [ebp - 0x64]
push eax
push 0x459be0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [ebx + 4]
sub edi, dword [ebx]
sar edi, 2
test edi, edi
je 0x45a04d
mov esi, dword [ebp - 0x6c]
mov eax, dword [esi]
dec edi
push 6
mov ebx, dword [eax + edi*4]
lea eax, [ebp - 0x1c]
push eax
push ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp eax, 5
jne 0x45a03b
cmp word [ebp - 0x1c], 0x5f
jne 0x45a03b
cmp word [ebp - 0x1a], 0x6b
jne 0x45a03b
cmp word [ebp - 0x18], 0x6c
jne 0x45a03b
cmp word [ebp - 0x16], 0x69
jne 0x45a03b
cmp word [ebp - 0x14], 0x62
jne 0x45a03b
push 0xffffffffffffffeb
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
test ebx, ebx
je 0x45a038
push 0
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x14]
jmp 0x45a044
mov ebx, dword [ebp - 0x6c]
push 0
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
jne 0x459fd7
mov eax, dword [ebp + 8]
jmp 0x45a04f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret 4
Function at 0x45d570
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x49f014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
movzx eax, word [esi + 0x2a]
push eax
movzx eax, word [esi + 0x28]
push eax
push dword [esi + 0x24]
lea eax, [ebp - 0x804]
push str._KlibAppSharedMutex:__08X__04X__04X
push 0x400
push eax
call fcn.00401180
add esp, 0x18
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x38], eax
test eax, eax
je 0x45d6ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45d5ee
push dword [esi + 0x38]
mov byte [esi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
movzx eax, word [esi + 0x2a]
push eax
movzx eax, word [esi + 0x28]
push eax
push dword [esi + 0x24]
lea eax, [ebp - 0x804]
push str._KlibAppSharedNotifyEvent:__08X__04X__04X
push 0x400
push eax
call fcn.00401180
add esp, 0x18
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x3c], eax
test eax, eax
je 0x45d6ed
movzx eax, word [esi + 0x2a]
push eax
movzx eax, word [esi + 0x28]
push eax
push dword [esi + 0x24]
lea eax, [ebp - 0x804]
push str._KlibAppSharedSwithedEvent:__08X__04X__04X
push 0x400
push eax
call fcn.00401180
add esp, 0x18
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x40], eax
test eax, eax
je 0x45d6ed
movzx eax, word [esi + 0x2a]
push eax
movzx eax, word [esi + 0x28]
push eax
push dword [esi + 0x24]
lea eax, [ebp - 0x804]
push str._KlibAppSharedMemory:__08X__04X__04X
push 0x400
push eax
call fcn.00401180
add esp, 0x18
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
push 0x20c
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x45d6ed
cmp byte [esi + 0x34], 0
je 0x45d6ed
lea eax, [ebp - 0x808]
push eax
push 0
push esi
push 0x45d3f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x48], eax
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret
Function at 0x45eea0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x49f014]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
push dword [edi + 0x7c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45efcc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x421
push dword [edi + 0x7c]
call esi
push 0
push 0x7000
push 0x419
push dword [edi + 0x7c]
call esi
cmp eax, 0xffffffff
je 0x45efcc
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x41d
push dword [edi + 0x7c]
call esi
lea eax, [esp + 0x3c]
push eax
push dword [edi + 0x7c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [edi + 0xac]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], eax
cmp esi, dword [edi + 0xb0]
je 0x45efcc
push 0
push dword [esi]
push 0x419
push dword [edi + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x45efbd
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_GetWindowRect]
movaps xmm1, xmmword [esp + 0x20]
mov eax, dword [esp + 0x18]
movaps xmm0, xmm1
sub eax, dword [esp + 0x10]
psrldq xmm0, 8
movd edi, xmm0
movd ecx, xmm1
movaps xmmword [esp + 0x10], xmm1
mov edx, dword [esp + 0x18]
sub edi, eax
mov dword [esp + 0x10], edi
cmp edi, ecx
jge 0x45ef9b
mov eax, ecx
sub eax, edi
mov edi, ecx
add edx, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x1c]
sub edx, edi
mov ecx, dword [esp + 0x14]
sub eax, ecx
push 1
push eax
mov eax, dword [esi + 4]
push edx
push ecx
push edi
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_MoveWindow]
mov edi, dword [esp + 0xc]
add esi, 8
cmp esi, dword [edi + 0xb0]
jne 0x45ef33
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret

Function at 0x45f240
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [esi + 4], 0x100
jne 0x45f28f
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x45f28f
mov eax, dword [esi + 8]
cmp eax, 9
je 0x45f272
cmp eax, 0x21
je 0x45f272
cmp eax, 0x22
jne 0x45f28f
push esi
push 0
push 0x475
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x45f28f
pop edi
mov al, 1
pop esi
pop ebp
ret 4
push 5
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x45f2ce
mov eax, dword [esi + 4]
cmp eax, 0x100
jb 0x45f2af
cmp eax, 0x109
jbe 0x45f2b9
add eax, 0xfffffe00
cmp eax, 0xd
ja 0x45f2ce
push esi
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
pop edi
setne al
pop esi
pop ebp
ret 4
pop edi
xor al, al
pop esi
pop ebp
ret 4
Function at 0x403310
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040551c
test esi, esi
jne 0x403348
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405658
jmp 0x403366
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403254
mov edi, eax
test esi, esi
je 0x403366
cmp dword [ebx], 0
je 0x403366
dec esi
jmp 0x40334f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4039b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x468020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403a28
xor eax, eax
push ebp
push 0x403a21
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 0x403a80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a28
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x468020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x468020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404b30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a04c], 0
je 0x404b91
cmp word [0x46a328], 0xd7b2
jne 0x404b59
cmp dword [0x46a330], 0
jbe 0x404b59
mov eax, 0x46a324
call dword [0x46a340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x404bbc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46802c], 0
jne 0x404bad
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404d10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x468030], 0
je 0x404d36
mov edx, esi
mov eax, ebx
call dword [0x468030]
jmp 0x404d45
mov eax, 8
call fcn.00402f9c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x46a04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404cd8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4072fc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x408aec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x46cb28
push 0xa
push 0x408b80
mov eax, dword [0x46cb18]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x408b10
call fcn.004112fc
push ebx
mov eax, dword [0x46cb18]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x408b27
call fcn.004112fc
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x408b39
call fcn.004112fc
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x46cb2c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x46cb30], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x46cb34], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x46cb38], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x46cb3c], ecx
add edx, dword [eax + 0x14]
mov dword [0x46cb40], edx
pop esi
pop ebx
ret

Function at 0x40a254
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a2fd
test eax, edx
je 0x40a300
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a27d
push edx
mov edx, eax
mov eax, esp
call fcn.004056f0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a293
push eax
lea eax, [esp + 8]
call fcn.004056f0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a2a2
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a2c9
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a2e3
add ecx, 4
js 0x40a2ba
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a2e0
push eax
mov eax, ecx
mov edx, 2
call fcn.00404db0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a2c7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a2c9
xor eax, eax
ret
test eax, eax
je 0x40a310
test edx, edx
jne 0x40a264
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004055a8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40b022
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40b043
cmp ebx, 3
je 0x40b043
cmp ebx, 0x7b
je 0x40b043
mov eax, esi
call fcn.0040afc4
test al, al
jne 0x40b047
xor eax, eax
jmp 0x40b049
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004055a8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40b065
test al, 0x10
jne 0x40b069
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40b184
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004055a8
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40b1a6
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40e710
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e749
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405658
jmp 0x40e752
mov eax, ebx
mov edx, esi
call fcn.0040551c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e75c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e77e
movzx eax, word [esp]
jmp 0x40e780
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f030
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040ee68
mov eax, dword [0x469d94]
cmp byte [eax], 0
je 0x40f0c2
mov eax, dword [0x469b64]
call fcn.0040341c
call fcn.00403104
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040b490
push eax
lea eax, [esp + 0x890]
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 0x40f110
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40f0fb
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x469b08]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46cb18]
call fcn.00406644
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret