joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451b60
Capabilities:
Get common file path

Disassembly:
push esi
call fcn.004211c0
test eax, eax
je 0x451b99
push 0
push 0
push 0
mov dword [esi + 0x404], 3
mov dword [esi + 0x40], 0
mov dword [esi + 0x3bc], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
ret
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 2
push 1
mov ecx, esi
mov dword [esi + 0x404], 2
call edx
mov ecx, esi
jmp fcn.004215d0
Function at 0x453db0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aad68
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
push 0xe
xor ebx, ebx
push 0x4bdea8
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.0040d220
push esi
lea edx, [esp + 0xc]
mov dword [esp + 0x30], ebx
call fcn.00453ef0
cmp dword [esp + 0x20], 0x10
jb 0x453e18
mov eax, dword [esp + 0xc]
push eax
call fcn.00487c06
add esp, 4
mov dword [esi + 0x3d0], 1
mov dword [esi], 0x4bdebc
mov dword [esi + 0x3d0], ebx
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x28
ret

Function at 0x4542d0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
mov eax, dword [edi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, esi
or ecx, edx
jge 0x4542fc
mov ecx, esi
mov eax, edi
call fcn.0040d060
mov eax, dword [edi]
push esi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 0xffffffff
mov ecx, eax
jne 0x45432f
mov ecx, dword [edi]
test ecx, ecx
je 0x454333
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x454320
sub ecx, esi
sar ecx, 1
test ecx, ecx
jl 0x454347
mov edx, dword [edi]
cmp ecx, dword [edx - 8]
jg 0x454347
mov dword [edx - 0xc], ecx
mov edx, dword [edi]
mov word [edx + ecx*2], 0
pop esi
ret
push 0x80070057
call fcn.00401050
int3

Function at 0x4550f0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov ecx, dword [esi + 0x3f4]
test ecx, ecx
je 0x45511a
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0
call edx
mov ecx, dword [esi + 0x3f4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
mov dword [esi + 0x3f4], 0
mov eax, dword [esi + 0x3f0]
test eax, eax
je 0x45514d
push 0x4bded8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x455136
call eax
mov eax, dword [esi + 0x3f0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x3f0], 0
push ebx
lea ebx, [esi + 0x3dc]
call fcn.00457130
lea eax, [esi + 0x538]
pop ebx
jmp fcn.004666e0
Function at 0x4573e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x457440
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x457436
cmp edi, 0x1b
jne 0x45741e
mov ecx, dword [esi + 4]
push 0
push 2
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x3c4], 0
ret
cmp edi, 0xd
jne 0x457436
mov edx, dword [esi + 4]
push 0
push 1
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x3c4], 0
ret

Function at 0x458800
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4a8db8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push eax
call edi
mov edx, dword [0x4da734]
mov ebp, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4da734
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea ebx, [ebp + 2]
sub eax, ebx
or eax, ecx
jge 0x45887c
mov ecx, ebx
lea eax, [esp + 0x14]
call fcn.0040d060
mov esi, dword [esp + 0x14]
test ebx, ebx
jl 0x458916
cmp ebx, dword [esi - 8]
jg 0x458916
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], 0
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
push ebp
push esi
push eax
call edi
cmp eax, 0xffffffff
jne 0x4588bf
mov eax, esi
lea edx, [eax + 2]
jmp 0x4588b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4588b0
sub eax, edx
sar eax, 1
test eax, eax
jl 0x458916
cmp eax, dword [esi - 8]
jg 0x458916
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
lea eax, [esp + 0x14]
mov edi, ebx
call fcn.0040c900
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458900
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 0x80070057
call fcn.00401050
int3

Function at 0x459af0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
xor edi, edi
push 0x208
lea eax, [esp + 0x12]
push edi
push eax
mov esi, ecx
mov dword [esp + 0x14], edi
mov word [esp + 0x18], di
call int.0048bd10
add esp, 0xc
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
lea edx, [eax + 2]
jmp 0x459b50
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x459b50
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.0043d0d0
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00488fa3
add esp, 0x214
ret
Function at 0x459b90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a4238
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
push 0x40
xor ebx, ebx
lea eax, [esp + 0x28]
push ebx
push eax
call int.0048bd10
add esp, 0xc
xor eax, eax
push 1
push 0x4ba3bc
lea esi, [esp + 0x6c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x54], 0x181
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], bx
call fcn.0043d0d0
mov eax, edi
mov dword [esp + 0x8c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x459c32
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x6c]
call fcn.0043cf20
push 2
push 0x4be228
lea ecx, [esp + 0x6c]
call fcn.0043cf20
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x459c61
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x6c]
call fcn.0043cf20
mov eax, dword [esp + 0x68]
mov esi, 8
cmp dword [esp + 0x7c], esi
mov word [esp + 0x50], bx
jae 0x459c93
lea eax, [esp + 0x68]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x459cc6
cmp dword [esp + 0x7c], esi
jb 0x459cc2
mov eax, dword [esp + 0x68]
push eax
call fcn.00487c06
add esp, 4
xor eax, eax
jmp 0x459cde
cmp dword [esp + 0x7c], esi
jb 0x459cd9
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00487c06
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00488fa3
add esp, 0x80
ret

Function at 0x459ec0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
push esi
push edi
push 0x38
mov edi, eax
lea eax, [esp + 0x14]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x14], 0
call int.0048bd10
mov eax, 8
add esp, 0xc
cmp dword [esi + 0x18], eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x4b6d88
jb 0x459f0d
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
jmp 0x459f14
add esi, 4
mov dword [esp + 0x1c], esi
cmp dword [edi + 0x18], eax
jb 0x459f22
mov edx, dword [edi + 4]
mov dword [esp + 0x20], edx
jmp 0x459f29
add edi, 4
mov dword [esp + 0x20], edi
xor eax, eax
cmp byte [esp + 0x4c], al
lea ecx, [esp + 0xc]
sete al
push ecx
mov dword [esp + 0x14], 0x440
mov dword [esp + 0x2c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop edi
pop esi
jne 0x459f59
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x40
ret
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x3c]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
add esp, 0x40
ret
Function at 0x459f80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push edi
push 0x38
mov edi, eax
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
call int.0048bd10
mov eax, 8
add esp, 0xc
cmp dword [esi + 0x18], eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x4b6d88
jb 0x459fc5
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], ecx
jmp 0x459fcc
add esi, 4
mov dword [esp + 0x18], esi
cmp dword [edi + 0x18], eax
jb 0x459fda
mov edx, dword [edi + 4]
mov dword [esp + 0x1c], edx
jmp 0x459fe1
add edi, 4
mov dword [esp + 0x1c], edi
lea eax, [esp + 8]
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x10], 0x400
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop edi
pop esi
jne 0x45a00c
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x3c
ret
xor eax, eax
add esp, 0x3c
ret

Function at 0x45a020
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x7c
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
push 0x40
xor edi, edi
lea eax, [esp + 0x20]
push edi
push eax
mov esi, ecx
call int.0048bd10
xor eax, eax
add esp, 0xc
push 0xffffffffffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push edi
mov eax, esi
lea ecx, [esp + 0x68]
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], 6
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], di
call fcn.0043af30
mov eax, dword [esp + 0x64]
mov esi, 8
cmp dword [esp + 0x78], esi
jae 0x45a0a2
lea eax, [esp + 0x64]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x45a0c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
jmp 0x45a0d7
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x78], esi
jb 0x45a0ea
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00487c06
add esp, 4
mov ecx, dword [esp + 0x7c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00488fa3
add esp, 0x7c
ret
Function at 0x45a240
Capabilities:
Get token privileges

Disassembly:
sub esp, 0x218
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
lea eax, [esp + 8]
xor ebx, ebx
push eax
push 0x20008
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x45a371
mov edx, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 8]
push ecx
push ebx
push ebx
push 3
push edx
call esi
test eax, eax
jne 0x45a370
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45a370
mov eax, dword [esp + 8]
push edi
push eax
call fcn.0048731f
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x45a36f
mov ecx, dword [esp + 0xc]
push ecx
push ebx
push edi
call int.0048bd10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push eax
push edi
push 3
push ecx
call esi
test eax, eax
je 0x45a362
cmp dword [edi], ebx
jbe 0x45a362
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
lea esi, [edi + 0xc]
lea ecx, [ecx]
push 0x208
lea edx, [esp + 0x20]
push 0
push edx
call int.0048bd10
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esi - 8]
push edx
push 0
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x45a34d
lea eax, [esp + 0x1c]
push 0x4be388
push eax
call int.00489c6a
add esp, 8
test eax, eax
jne 0x45a34d
test byte [esi], 3
jne 0x45a359
add ebx, 1
add esi, 0xc
cmp ebx, dword [edi]
jb 0x45a300
jmp 0x45a361
mov dword [esp + 0x18], 1
pop ebp
push edi
call fcn.0048905f
mov ebx, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
mov eax, dword [esp + 8]
test eax, eax
je 0x45a380
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x218]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00488fa3
add esp, 0x218
ret
Function at 0x45a6e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a41bb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
push 0x206
lea eax, [esp + 0x32]
push ebx
mov dword [esp + 0x248], ebx
push eax
mov word [esp + 0x38], bx
call int.0048bd10
add esp, 0xc
push 0x104
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x45a78e
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
lea eax, [esp + 0x18]
mov ecx, edi
mov word [edi + 4], bx
call fcn.0043af30
cmp dword [esp + 0x28], 8
jb 0x45a7e1
mov edx, dword [esp + 0x14]
push edx
jmp 0x45a7d9
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45a795
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0x18]
call fcn.0043d0d0
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
mov eax, esi
mov ecx, edi
mov word [edi + 4], bx
call fcn.0043af30
cmp dword [esp + 0x28], 8
jb 0x45a7e1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00487c06
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00488fa3
add esp, 0x238
ret
Function at 0x45add0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a4142
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x18], esi
mov word [esi + 4], di
push 0x208
lea eax, [esp + 0x22]
mov dword [esp + 0x238], edi
push edi
push eax
mov dword [esp + 0x20], 1
mov word [esp + 0x28], di
call int.0048bd10
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push edi
push ebx
push 0x80000002
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45aec5
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push edi
push 0x4b7334
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x45aeba
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x45aea0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45aea0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
call fcn.0043d0d0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00488fa3
add esp, 0x22c
ret

Function at 0x45be50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 8], eax
push edi
mov edi, ecx
xor ecx, ecx
lea eax, [esi + 0x12]
jmp 0x45be70
movzx edx, byte [eax - 2]
mov byte [esp + ecx + 4], dl
movzx edx, byte [eax - 1]
mov byte [esp + ecx + 5], dl
movzx edx, byte [eax]
mov byte [esp + ecx + 6], dl
movzx edx, byte [eax + 1]
mov byte [esp + ecx + 7], dl
add ecx, 4
add eax, 4
cmp ecx, 8
jb 0x45be70
mov ecx, dword [esi + 0x10]
shr ecx, 3
and ecx, 0x3f
cmp ecx, 0x38
mov eax, 0x38
jb 0x45beb2
mov eax, 0x78
sub eax, ecx
push 0x4d8ad8
mov ecx, esi
call fcn.0045bd90
lea eax, [esp + 8]
push eax
mov eax, 8
mov ecx, esi
call fcn.0045bd90
lea ecx, [edi + 1]
add esp, 8
lea eax, [esi + 2]
mov edi, 4
nop
movzx edx, byte [eax - 2]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 1]
mov byte [ecx], dl
movzx edx, byte [eax]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 1]
mov byte [ecx + 2], dl
add eax, 4
add ecx, 4
sub edi, 1
jne 0x45bee0
push 0x58
push edi
push esi
call int.0048bd10
mov ecx, dword [esp + 0x18]
add esp, 0xc
pop edi
xor ecx, esp
call fcn.00488fa3
add esp, 0xc
ret
Function at 0x45dd80
Capabilities:
Check for peb beingdebugged flag
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a3f3b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x460]
xor ebx, ebx
mov eax, 0x4be438
mov edi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45dde3
sub eax, edx
sar eax, 1
push eax
push 0x4be438
lea esi, [esp + 0x20]
call fcn.0043d0d0
mov dword [esp + 0x458], ebx
cmp dword [edi + 0x210], ebx
jne 0x45de3f
push 0xffffffffffffffff
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
push ebx
mov eax, esi
mov ecx, ebp
mov word [ebp + 4], bx
call fcn.0043af30
cmp dword [esp + 0x30], 8
jb 0x45df1e
mov eax, dword [esp + 0x1c]
push eax
jmp 0x45df16
push 0x208
lea ecx, [esp + 0x3a]
push ebx
push ecx
mov word [esp + 0x40], bx
call int.0048bd10
mov edx, dword [edi + 0x10]
push edx
push 0x4be438
push 0x4b897c
lea eax, [esp + 0x4c]
push 0x104
push eax
call fcn.0048925f
push 0x208
lea ecx, [esp + 0x266]
push ebx
push ecx
mov word [esp + 0x26c], bx
call int.0048bd10
add esp, 0x2c
cmp dword [edi + 0x208], 8
jb 0x45dea0
mov edi, dword [edi + 0x1f4]
jmp 0x45dea6
add edi, 0x1f4
push edi
push 0x104
lea edx, [esp + 0x248]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
jbe 0x45deee
lea eax, [esp + 0x34]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45ded0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x38]
push ecx
lea esi, [esp + 0x20]
call fcn.0043d0d0
push 0xffffffffffffffff
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
push ebx
lea eax, [esp + 0x20]
mov ecx, ebp
mov word [ebp + 4], bx
call fcn.0043af30
cmp dword [esp + 0x30], 8
jb 0x45df1e
mov edx, dword [esp + 0x1c]
push edx
call fcn.00487c06
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.00488fa3
add esp, 0x448
ret 4
Function at 0x465010
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
test esi, esi
mov dword [esp + 4], edx
mov dword [esp + 8], 0
je 0x465149
test eax, eax
je 0x465149
test edx, edx
je 0x465149
test ecx, ecx
je 0x465149
push edi
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x465074
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00488fa3
add esp, 0xc
ret
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x465091
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4650a5
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00488fa3
add esp, 0xc
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4650de
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4650f3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00488fa3
add esp, 0xc
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46512a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00488fa3
add esp, 0xc
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00488fa3
add esp, 0xc
ret
mov ecx, dword [esp + 0xc]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00488fa3
add esp, 0xc
ret
Function at 0x4658c0
Capabilities:
Access peb ldr_data
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a5110
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [0x4da734]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x4da734
xor esi, esi
mov dword [esp + 0x18], ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
movzx eax, word [ebp + 8]
push eax
push 0x4c3180
lea edi, [esp + 0x1c]
mov byte [esp + 0x58], 1
call fcn.0040e820
mov ecx, dword [esp + 0x1c]
add esp, 8
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4659d6
mov eax, 0x229
lea ecx, [esp + 0x1c]
call fcn.004686f0
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x46597c
mov edx, dword [esp + 0x24]
sub edx, eax
jne 0x465985
call fcn.00489916
mov eax, dword [esp + 0x20]
push esi
mov dword [eax + 4], 0x228
mov ebx, eax
lea eax, [esp + 0x30]
push eax
push 0x228
push ebx
push 0xc
lea ecx, [esp + 0x48]
push ecx
push 0x2d1400
push edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, esi
je 0x4659cb
cmp dword [ebx + 0x1c], 7
jne 0x4659cb
mov dword [esp + 0x18], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4659e7
push eax
call fcn.00487c06
add esp, 4
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465a1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00488fa3
mov esp, ebp
pop ebp
ret