joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43122c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x431278
mov eax, esi
call fcn.004469dc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x431278
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x431278
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4313b7
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4312b8
cmp eax, 0x108
ja 0x4312b8
mov eax, esi
call fcn.004469dc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4313ae
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4313b7
jmp 0x4313ae
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x431397
cmp eax, 0x20a
ja 0x431397
test byte [esi + 0x50], 0x80
jne 0x4312ea
sub eax, 0x203
je 0x4312e7
sub eax, 3
je 0x4312e7
sub eax, 3
jne 0x4312ea
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4312fe
dec eax
je 0x431313
dec eax
je 0x431330
dec eax
je 0x431313
jmp 0x431337
mov ecx, ebx
mov eax, dword [0x454100]
mov eax, dword [eax]
mov edx, esi
call fcn.00450188
jmp 0x4313ae
cmp byte [esi + 0x5d], 1
jne 0x431329
mov eax, esi
mov si, 0xffed
call fcn.004032d4
jmp 0x4313b7
or word [esi + 0x54], 1
jmp 0x4313ae
and word [esi + 0x54], 0xfffe
jmp 0x4313ae
mov eax, dword [0x455b10]
cmp byte [eax + 0x20], 0
je 0x4313ae
mov eax, dword [0x455b10]
cmp dword [eax + 0x1c], 0
je 0x4313ae
mov eax, dword [ebx]
mov edx, dword [0x455b10]
cmp eax, dword [edx + 0x1c]
jne 0x4313ae
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00446920
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004032d4
jmp 0x4313b7
cmp eax, 0xb00b
jne 0x4313ae
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042fb4c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b10c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x454260]
cmp byte [eax + 0xc], 0
je 0x43b279
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43b272
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x455b64], 0
jne 0x43b160
push 0x43b280
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43b288
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b64], eax
cmp dword [0x453b80], 0
jne 0x43b25b
push 0x43b298
call sub.kernel32.dll_LoadLibraryA
mov dword [0x453b80], eax
cmp dword [0x453b80], 0
je 0x43b25b
push 0x43b2a4
mov eax, dword [0x453b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b68], eax
push 0x43b2b4
mov eax, dword [0x453b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b6c], eax
push 0x43b2c8
mov eax, dword [0x453b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b70], eax
push 0x43b2e0
mov eax, dword [0x453b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b74], eax
push 0x43b2f8
mov eax, dword [0x453b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b78], eax
push 0x43b30c
mov eax, dword [0x453b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b7c], eax
push 0x43b324
mov eax, dword [0x453b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b80], eax
push 0x43b33c
mov eax, dword [0x453b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b84], eax
push 0x43b358
mov eax, dword [0x453b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b88], eax
push 0x43b364
mov eax, dword [0x453b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b279
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43f104
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e10
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43f153
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404080
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x446890
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4468e0]
test si, 4
je 0x4468a4
or bl, 1
test si, 8
je 0x4468ae
or bl, 4
test si, 1
je 0x4468b8
or bl, 8
test si, 2
je 0x4468c2
or bl, 0x10
test si, 0x10
je 0x4468cc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4468db
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4468e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44691c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4468fd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44690c
or bl, 4
test esi, 0x20000000
je 0x446917
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44cfc4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44cfd6
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190f4
mov eax, dword [0x453f3c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44d368
mov eax, dword [0x453f48]
mov dword [eax + 4], ebx
mov dword [eax], 0x44d374
mov eax, ebx
call fcn.0044d380
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41139c]
call fcn.004030a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41139c]
call fcn.004030a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41139c]
call fcn.004030a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41139c]
call fcn.004030a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41139c]
call fcn.004030a8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44979c
push eax
push 0
push 0
mov eax, dword [0x454088]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ab20]
call fcn.0041bf64
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ab20]
call fcn.0041bf64
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ab20]
call fcn.0041bf64
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044d7a0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d67c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d67c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d67c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44d113
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44d460
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44d60b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44d5ec
mov dl, 1
mov eax, dword [0x4117b8]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e10
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44d5db
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043b46c
test al, al
je 0x44d5ce
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44d61c
lea eax, [ebp - 0x254]
call fcn.00408904
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44d5ce
xor eax, eax
push ebp
push 0x44d5c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44d654
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44d5b0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44d5b0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d5ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44d4d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415294
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d612
lea eax, [ebp - 0x260]
call fcn.00403e10
ret

Function at 0x44df40
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x455bb0]
cmp byte [eax + 0xa5], 0
jne 0x44dfb1
cmp dword [0x455bc8], 0
jne 0x44df72
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44defc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x455bc8], eax
cmp dword [0x455bc4], 0
jne 0x44df8d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x455bc4], eax
cmp dword [0x455bcc], 0
jne 0x44dfb1
push esp
push 0
push 0
push 0x44dea0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x455bcc], eax
pop edx
ret
Function at 0x44e0a8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44e0bf
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190f4
mov eax, dword [0x454074]
cmp word [eax + 2], 0
jne 0x44e0e7
mov eax, dword [0x454074]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f780
mov eax, dword [0x45411c]
cmp word [eax + 2], 0
jne 0x44e101
mov eax, dword [0x45411c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f978
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41139c]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41139c]
call fcn.004030a8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b2d0]
call fcn.00420f18
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44e288
mov eax, dword [0x453f9c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004212e8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44ff18
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x453f9c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bf40
test eax, eax
je 0x44e1f6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004082f8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bf68
test eax, eax
je 0x44e20a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov eax, dword [0x453e9c]
cmp byte [eax], 0
jne 0x44e23e
mov eax, ebx
call fcn.0044e3b0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004500f4
mov eax, ebx
call fcn.00450ab8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e27e
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e630
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x455bb0]
cmp dword [eax + 0x30], 0
je 0x44e6da
cmp dword [ebx + 0x94], 0
jne 0x44e6d4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44e5c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e6d4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44e69a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e6d4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413704
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e6a9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44f23c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44f271
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f00
jmp 0x44f27e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e64
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4502d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450311
mov eax, esi
call fcn.00436a98
test al, al
je 0x450311
mov eax, dword [ebx + 0x84]
call fcn.00436794
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450311
push 0
mov eax, dword [ebx + 0x84]
call fcn.00436794
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1004e9af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1004e9be
pop dword [ebp - 0x10]
mov eax, 0x1004e9be
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x45420c4f
sub dword [ebp - 0x20], 0xf6efc704
mov dword [ebp - 0x1c], 0xd4e94a0b
sub dword [ebp - 0x1c], 0xa2b5fdc6
mov dword [ebp - 0x18], 0xdbb29314
add dword [ebp - 0x18], 0x7099b11a
mov dword [ebp - 0x14], 0xbc300a5a
sub dword [ebp - 0x14], 0xbc300a5a
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x56deebb8
sub dword [ebp - 0x20], 0xe26c8262
mov dword [ebp - 0x1c], 0xc3f10c64
sub dword [ebp - 0x1c], 0x8284aaef
mov dword [ebp - 0x18], 0x49bec995
add dword [ebp - 0x18], 0x19b0a2d7
mov dword [ebp - 0x14], 0x82b2d4ff
sub dword [ebp - 0x14], 0x82b2d4ff
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3aa27
push 0
call eax
mov ecx, 0x103070ad
sub ecx, 0x1030339c
mov ebx, eax
mov edi, 0x76a97e1
sub edi, 0xf75f07e1
add edi, dword [ebp - 0x10]
mov edx, 0xfca89621
add edx, 0xe2a6e745
mov esi, dword [edi]
mov dword [ebp - 4], 0x3564675
xor esi, edx
mov dword [ebx], esi
mov dword [ebp - 4], 0x3ef0b573
add ebx, 0xbabfd1cc
sub ebx, 0xbabfd1c8
add edi, 0xca73d21b
sub edi, 0xca73d217
loop 0x1004ead1
add eax, 0xe717
xor ebx, ebx
add ebx, eax
add eax, 0xdb1babc3
add eax, 0x24e45442
mov ecx, 0x777645a4
add ecx, 0x9889ba5c
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x401c66
pop dword [ebp - 0xc]
mov eax, 0x401c66
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x26c06a1b
sub dword [ebp - 0x1c], 0xd86e24d0
mov dword [ebp - 0x18], 0xd6d94bc7
sub dword [ebp - 0x18], 0xa4a5ff82
mov dword [ebp - 0x14], 0x33b5fd8c
sub dword [ebp - 0x14], 0xe769b95e
mov dword [ebp - 0x10], 0xb63f476f
add dword [ebp - 0x10], 0x49c0b891
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xfdf707b
sub eax, 0xf9f4027
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x7c21bce8
add dword [ebp - 0x1c], 0xf850ac6e
mov dword [ebp - 0x18], 0xb903d2fb
sub dword [ebp - 0x18], 0x77977186
mov dword [ebp - 0x14], 0x896dd660
add dword [ebp - 0x14], 0xda01960c
mov dword [ebp - 0x10], 0xb4138601
add dword [ebp - 0x10], 0x4bec79ff
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x33cd6
push 0
call eax
mov ecx, 0x31750f19
sub ecx, 0x3174d1d0
xor edi, edi
add edi, eax
mov ebx, 0xb59ee9b6
add ebx, 0x4aa1864a
add ebx, dword [ebp - 0xc]
mov esi, 0x1767321f
mov dword [ebp - 8], 0xde972158
mov edx, dword [ebx]
xor edx, esi
mov dword [ebp - 4], 0xcef52917
mov dword [edi], edx
xor dword [ebp - 4], 0x162d37f6
add edi, 4
add ebx, 4
loop 0x401d7a
add eax, 0xe7f7
xor ebx, ebx
add ebx, eax
add eax, 0x970d9a74
add eax, 0x68f26591
mov ecx, 0x28088aa8
add ecx, 0xd8377558
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001032
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x10001230
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push str.PangyaUS.ini
call esi
cmp eax, 0xffffffff
jne 0x10001267
push str.PangyaJP.ini
call esi
cmp eax, 0xffffffff
je 0x10001256
mov eax, 1
pop esi
ret
push str.PangyaTH.ini
call esi
inc eax
neg eax
pop esi
sbb eax, eax
and eax, 2
ret
xor eax, eax
pop esi
ret

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx