joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58a3d4
Capabilities:
Set http header

Disassembly:
push eax
mov eax, 0x353d
pop eax
push ecx
mov ecx, 0x5e09
pop ecx
push edx
mov edx, 0x6316
mov edx, 0x66b8
mov edx, 0x68c4
mov edx, 0x31c
pop edx
push edi
mov eax, 0xe98396e
mov edx, 0x82f4f010
jmp 0x58a41e
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
jmp 0x58a439
push eax
mov eax, 0x4e02
pop eax
jmp 0x58a451
push eax
jmp 0x58a463
mov eax, 0x13d2
mov eax, 0xf22
pop eax
push eax
mov eax, 0x33b2
mov eax, 0x3fd0
mov eax, 0x5038
mov eax, 0x5c5
pop eax
push edx
mov edx, 0x5bd7
pop edx
push eax
jmp 0x58a49d
mov eax, 0x2297
mov eax, 0x2392
mov eax, 0x3ad
mov eax, 0x4900
pop eax
push ebp
push edx
push ecx
pop ecx
jmp 0x58a4c7
mov edx, 0x493e
mov edx, 0x5481
mov edx, 0xa82
mov edx, 0x7405
pop edx
push edx
jmp 0x58a4f8
push ecx
mov ecx, 0x4b70
pop ecx
mov edx, 0x4209
mov edx, 0x4813
pop edx
mov ebp, esp
push edx
pop edx
push edi
push edx
mov edx, 0x1e83
pop edx
push ecx
push eax
mov eax, 0x2d34
pop eax
push edx
mov edx, 0x7156
mov edx, 0xe18
pop edx
mov ecx, 0x231b
mov ecx, 0x45fa
mov ecx, 0x5388
mov ecx, 0x607
pop ecx
sub esp, 0x34
mov dword [ebp - 0x28], eax
mov eax, 0x2ab470ff
push ecx
push edx
mov edx, 0x5eec
mov edx, 0x4ed
mov edx, 0x5e17
mov edx, 0x6242
pop edx
mov ecx, 0x35b5
pop ecx
mov dword [ebp - 0x24], edx
mov edx, 0x7e0b1664
mov dword [ebp - 0x20], eax
push ecx
mov ecx, 0x5665
pop ecx
mov eax, 0xef7392d
push ecx
jmp 0x58a586
mov ecx, 0x5350
pop ecx
mov dword [ebp - 0x1c], edx
mov edx, 0x829ff07f
movaps xmm0, xmmword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, 0x2ad17096
mov dword [ebp - 0x14], edx
mov edx, 0x7e0b165e
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], 0x80000000
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xc], edx
xorps xmm0, xmmword [ebp - 0x18]
mov dword [esp], eax
movaps xmmword [ebp - 0x28], xmm0
call sub.WINHTTP.dll_WinHttpAddRequestHeaders
mov edi, dword [ebp - 4]
push edx
mov edx, 0xfb9
mov edx, 0xb02
pop edx
sub esp, 0x10
push ecx
mov ecx, 0x7ae5
pop ecx
push ecx
mov ecx, 0x3c11
mov ecx, 0x6f13
pop ecx
leave
lea esp, [edi - 8]
jmp 0x58a612
push eax
pop eax
push edx
mov edx, 0x2e43
mov edx, 0x5937
push ecx
mov ecx, 0x15a
mov ecx, 0x7f6d
mov ecx, 0x1f15
mov ecx, 0x4e30
pop ecx
pop edx
pop edi
jmp 0x58a648
nop
ret
Function at 0x58bae8
Capabilities:
Set http header

Disassembly:
jmp 0x58bb03
push ecx
mov ecx, 0x6c41
mov ecx, 0x2f93
pop ecx
nop
push ecx
mov ecx, 0x7c29
mov ecx, 0x149f
mov ecx, 0x13b1
mov ecx, 0x637f
pop ecx
push edx
mov edx, 0x11c8
mov edx, 0x686f
mov edx, 0x4b83
mov edx, 0x4186
pop edx
jmp 0x58bb4d
push ecx
mov ecx, 0x24ac
mov ecx, 0x1769
pop ecx
jmp 0x58bb6a
jmp 0x58bb71
push eax
mov eax, 0x3c1
pop eax
push edx
mov edx, 0x5535
pop edx
push eax
push edx
mov edx, 0x37b2
mov edx, 0x48a6
mov edx, 0x46dd
mov edx, 0x2df7
pop edx
mov eax, 0x4937
jmp 0x58bbb6
jmp 0x58bbd1
jmp 0x58bbe2
mov eax, 0x4fef
jmp 0x58bbf8
push edx
nop
mov edx, 0x6243
mov edx, 0x1a47
pop edx
mov eax, 0x7e3d
mov eax, 0x4abb
jmp 0x58bc2a
pop eax
jmp 0x58bc32
push eax
mov eax, 0x1f5c
mov eax, 0x2eb9
pop eax
push ebp
mov ebp, esp
sub esp, 0x88
push eax
mov eax, 0x1a44
mov eax, 0x92
jmp 0x58bc59
mov eax, 0x47cd
mov eax, 0x6c82
pop eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov dword [esp], eax
mov dword [ebp - 0x54], 0x6583c0
push ecx
mov ecx, 0x4121
pop ecx
mov dword [ebp - 0x50], 0x65b8f6
mov dword [ebp - 0x4c], ebp
push ecx
mov ecx, 0x64d7
mov ecx, 0x2880
pop ecx
mov dword [ebp - 0x48], 0x58bd81
push edx
mov edx, 0x3e7
pop edx
mov dword [ebp - 0x44], esp
call fcn.005687c0
nop
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x6631e0
mov dword [ebp - 0x68], 0xffffffff
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.00653f30
jmp 0x58bcda
push ecx
pop ecx
jmp 0x58bce3
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x68], 1
mov dword [esp], eax
call fcn.006312b0
push edx
lea ecx, [ebp - 0x38]
jmp 0x58bd0d
mov dword [esp], eax
call fcn.00634090
push ecx
lea ecx, [ebp - 0x20]
call fcn.0062fa00
mov eax, dword [ebp - 0x38]
mov dword [esp + 0xc], 0x20000000
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
push eax
mov eax, 0x27e6
mov eax, 0x184b
mov eax, 0x8a0
mov eax, 0x52bb
pop eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 8]
push edx
mov edx, 0x49b7
pop edx
mov dword [ebp - 0x68], 2
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpAddRequestHeaders
sub esp, 0x10
lea ecx, [ebp - 0x38]
call fcn.0062fa00
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.00568a90
leave
ret 8
Function at 0x5f9f30
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
jmp 0x5f9f53
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
jne 0x5f9f71
mov ecx, ebx
call fcn.005f9c60
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebp, eax
cmp eax, 0xffffffff
je 0x5f9f48
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x64de10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x7c]
cmp dword [esp + 0x60], ebx
je 0x64df68
mov eax, dword [esp + 0x60]
mov ecx, ebp
add esi, ebp
mov dword [esp + 0x38], eax
mov eax, dword [ebp]
xor ebp, ebp
call dword [eax + 0x20]
mov ecx, dword [esp + 0x38]
add eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
and eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
jmp 0x64de8d
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x64df30
mov eax, dword [edi + 4]
mov edx, eax
sub edx, ebp
cmp edx, dword [esp + 0x24]
jge 0x64df30
mov edx, ebx
mov dword [esp + 4], 0
sub edx, ecx
mov ecx, edi
sar edx, 1
imul edx, dword [esp + 0x24]
add edx, eax
mov dword [esp], edx
call fcn.0062c580
mov eax, dword [edi]
sub esp, 8
mov ecx, dword [esp + 0x28]
add ebp, eax
add eax, dword [edi + 4]
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x3c], ebp
mov edx, ecx
je 0x64decd
mov edx, dword [esi]
mov edx, dword [edx + ecx - 1]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
mov ecx, esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], ebp
mov dword [esp + 8], ebx
mov dword [esp], eax
call edx
sub esp, 0x1c
mov ebp, dword [esp + 0x3c]
sub ebp, dword [edi]
cmp eax, 1
je 0x64de70
cmp eax, 2
jne 0x64df30
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x60]
sar eax, 1
mov dword [esi], eax
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
mov ecx, edi
mov dword [esp + 4], 0
call fcn.0062c580
sub esp, 8
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x60]
sar eax, 1
mov dword [esi], eax
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi]
mov dword [edi + 4], 0
mov byte [eax], 0
mov eax, dword [esp + 0x74]
mov dword [eax], 0
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x64df90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x7c]
cmp dword [esp + 0x60], ebp
je 0x64e0f0
mov eax, dword [esp + 0x60]
mov ecx, edi
add esi, edi
mov dword [esp + 0x38], eax
mov eax, dword [edi]
xor edi, edi
call dword [eax + 0x20]
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x38]
add eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
and eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 4]
jmp 0x64e00d
mov ecx, dword [esp + 0x38]
cmp ecx, ebp
je 0x64e0c0
mov eax, dword [ebx + 4]
mov esi, eax
sub esi, edx
cmp esi, dword [esp + 0x20]
jge 0x64e0c0
mov edx, ebp
mov dword [esp + 4], 0
sub edx, ecx
imul edx, dword [esp + 0x20]
mov ecx, ebx
add edx, eax
mov dword [esp], edx
call fcn.00631c60
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
sub esp, 8
lea eax, [edx + edi*2]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x3c], eax
mov edx, edi
test esi, esi
je 0x64e054
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
mov edx, dword [edx + edi - 1]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
lea edi, [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], ebp
mov dword [esp], eax
call edx
sub esp, 0x1c
mov edx, dword [esp + 0x3c]
sub edx, dword [ebx]
sar edx, 1
mov edi, edx
cmp eax, 1
je 0x64dff0
cmp eax, 2
jne 0x64e0c0
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x60]
mov dword [ebx], eax
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0
mov ecx, ebx
mov dword [esp], edx
call fcn.00631c60
sub esp, 8
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x60]
mov dword [ebx], eax
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx]
xor edi, edi
mov dword [ebx + 4], 0
mov word [eax], di
mov eax, dword [esp + 0x74]
mov dword [eax], 0
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10003c40
Capabilities:
Log keystrokes

Disassembly:
push str.Enter_SetForegroundPanel_n
call fcn.100022d0
add esp, 4
call fcn.1001f9b8
mov eax, dword [eax + 4]
cmp dword [eax + 0xc4], 0x7e5
jne 0x10003c6b
mov ecx, 0x1002d980
jmp 0x10004c20
call fcn.1001f9b8
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0xc0]
test ecx, ecx
je 0x10003c93
mov ecx, 0x1002df88
call fcn.100083f0
push str.Exit_SetForegroundPanel_n
call fcn.100022d0
pop ecx
ret
mov ecx, 0x1002dcb0
call 0x10004c20
push str.Exit_SetForegroundPanel_n
call fcn.100022d0
pop ecx
ret
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str._Enter_ReallySetForegroundWindow___n
call fcn.100022d0
add esp, 4
mov ecx, esi
push 0x13
push 0
push 0
push 0
push 0
push 0x10033f28
call fcn.1001b39a
push 0x13
push 0
push 0
push 0
push 0
push 0x10033ea8
mov ecx, esi
call fcn.1001b39a
push 0x13
push 0
push 0
push 0
push 0
push 0x10033e68
mov ecx, esi
call fcn.1001b39a
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebx, eax
cmp edi, ebx
je 0x10004c9e
push 1
push ebx
push edi
call ebp
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, ebx
je 0x10004cb2
push 0
push ebx
push edi
call ebp
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10004c20
Capabilities:
Log keystrokes

Disassembly:
push str.Enter_SetForegroundPanel_n
call fcn.100022d0
add esp, 4
call fcn.1001f9b8
mov eax, dword [eax + 4]
cmp dword [eax + 0xc4], 0x7e5
jne 0x10003c6b
mov ecx, 0x1002d980
jmp 0x10004c20
call fcn.1001f9b8
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0xc0]
test ecx, ecx
je 0x10003c93
mov ecx, 0x1002df88
call fcn.100083f0
push str.Exit_SetForegroundPanel_n
call fcn.100022d0
pop ecx
ret
mov ecx, 0x1002dcb0
call 0x10004c20
push str.Exit_SetForegroundPanel_n
call fcn.100022d0
pop ecx
ret
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str._Enter_ReallySetForegroundWindow___n
call fcn.100022d0
add esp, 4
mov ecx, esi
push 0x13
push 0
push 0
push 0
push 0
push 0x10033f28
call fcn.1001b39a
push 0x13
push 0
push 0
push 0
push 0
push 0x10033ea8
mov ecx, esi
call fcn.1001b39a
push 0x13
push 0
push 0
push 0
push 0
push 0x10033e68
mov ecx, esi
call fcn.1001b39a
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebx, eax
cmp edi, ebx
je 0x10004c9e
push 1
push ebx
push edi
call ebp
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, ebx
je 0x10004cb2
push 0
push ebx
push edi
call ebp
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100083f0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str.Enter_ReallySetForegroundWindow_n
call fcn.100022d0
add esp, 4
mov ecx, esi
push 0x1b
push 0
push 0
push 0
push 0
push 0x10033f28
call fcn.1001b39a
push 0x1b
push 0
push 0
push 0
push 0
push 0x10033ea8
mov ecx, esi
call fcn.1001b39a
push 0x1b
push 0
push 0
push 0
push 0
push 0x10033e68
mov ecx, esi
call fcn.1001b39a
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebx, eax
cmp edi, ebx
je 0x1000846e
push 1
push ebx
push edi
call ebp
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, ebx
je 0x10008482
push 0
push ebx
push edi
call ebp
mov ecx, esi
call fcn.10005b10
mov ecx, esi
call fcn.10008840
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10008780
Capabilities:
Change the wallpaper

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push str.Enter_OnMovePanelToDeaultPos_n
call fcn.100022d0
add esp, 4
call fcn.1001f9b8
mov ebp, dword [eax + 4]
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [esp + 0x14], eax
call esi
mov esi, dword [esp + 0x1c]
mov edi, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
sub esi, edi
mov edi, dword [esp + 0x20]
sub esi, 5
sub edi, ecx
mov ecx, dword [ebp + 0x2708]
sub edi, 3
test ecx, ecx
jne 0x100087e8
mov esi, 5
mov ecx, dword [esp + 0x10]
push eax
push ecx
push str.Screen_area__d___d_n
call fcn.100022d0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push str.working_area__d___d___d___d_n
call fcn.100022d0
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x64]
add esp, 0x14
push 1
push eax
push ecx
push edi
push esi
mov ecx, ebx
call fcn.1001b359
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x100095b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100095d4
add esp, 0x114
ret
mov eax, dword [esp + 0x10]
dec eax
je 0x10009610
dec eax
je 0x100095ea
mov eax, 3
add esp, 0x114
ret
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x100095ff
mov eax, 2
add esp, 0x114
ret
cmp eax, 5
sbb eax, eax
and al, 0xfe
add eax, 2
add esp, 0x114
ret
cmp dword [esp + 8], 0xa
sbb eax, eax
and eax, 2
inc eax
add esp, 0x114
ret

Function at 0x100096b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000970c
cmp dword [esp + 0x10], 2
jne 0x100096ff
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x100096f1
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
jb 0x100096ff
add esp, 0x114
ret
jbe 0x100096ff
mov eax, 1
add esp, 0x114
ret
push str.The_operating_system_is_not_Windows_XP_or_above_n
call fcn.100022d0
add esp, 4
xor eax, eax
add esp, 0x114
ret

Function at 0x10009720
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100216a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push str.Enter_Get9xResourceLocale_n
mov dword [esp + 0x10], 0xff
call fcn.100022d0
add esp, 4
lea ecx, [esp + 8]
push str.Control_PanelDesktopResourceLocale
call fcn.1001bc3a
mov ecx, dword [esp + 8]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100097f3
mov esi, dword [esp + 0x20]
lea edx, [esp + 0xc]
push edx
push esi
push eax
push eax
mov eax, dword [esp + 0x14]
push 0x1002d964
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100097db
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push str.Success_____s__n
call fcn.100022d0
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.1001bc10
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push str.RegQueryValue_fail_n
call fcn.100022d0
mov edx, dword [esp + 8]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Exit_Get9xResourceLocale_n
call fcn.100022d0
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.1001bc10
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x1001aad1
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 0x1001ab13
call fcn.1001f9b8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x1001ab13
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1001ab0a
xor eax, eax
jmp 0x1001ab1b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1001ab21
pop edi
pop esi
pop ebx
ret 4

Function at 0x1001c8ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x1001c921
cmp dword [edi + 0x3c], 0
jne 0x1001c921
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.1001f9b8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.1001c94e
pop edi
pop esi
pop ebx
ret 8
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x657008], 0x8088405
inc edx
mov dword [ebx + 0x657008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x63a89e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63a8a5
ret