joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c8c0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x59a4d4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x41c8fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514760
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push 0x53cf04
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x41c933
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41c933
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41c949
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514760
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
push esi
jne 0x41c961
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x41c960
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.00514760
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41c99d
test al, 0x10
jne 0x41c99d
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41c9b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 7
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41c9e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41c9e7
xor eax, eax
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret
Function at 0x41c9f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jne 0x41ca20
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0042687f
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x41ca51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.0042688a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x53cf28
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41ca39
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41ca11
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0xa]
mov word [eax], dx
movzx edx, word [ecx + 8]
mov word [eax + 2], dx
movzx edx, word [ecx + 0xe]
mov word [eax + 4], dx
mov cx, word [ecx + 0xc]
push edi
mov word [eax + 6], cx
call fcn.0042688a
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d390
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20208
call fcn.00515ea0
mov eax, dword [0x59a4d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x595fcc]
push esi
push 0
mov dword [ebp - 0x20208], eax
push 0xc
lea eax, [ebp - 0x20204]
push eax
push ecx
mov dword [ebp - 0x201fc], 0
mov dword [ebp - 0x20200], 0
mov dword [ebp - 0x20204], 0xf
call sub.WS2_32.dll_send
or esi, 0xffffffff
cmp eax, esi
jne 0x41d413
mov edx, dword [0x595fcc]
push edx
call sub.WS2_32.dll_closesocket
mov dword [0x595fcc], esi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514760
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x595fcc]
push 0
push 0x20200
lea eax, [ebp - 0x20204]
push eax
push ecx
call sub.WS2_32.dll_recv
cmp eax, esi
je 0x41d3ed
cmp eax, 0xc
jb 0x41d3ed
mov esi, 0xc
sub esi, eax
push edi
lea edi, [ebp + eax - 0x20204]
test esi, esi
jle 0x41d46d
lea esp, [esp]
mov edx, dword [0x595fcc]
push 0
push esi
push edi
push edx
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x41d4c2
sub esi, eax
add edi, eax
test esi, esi
jg 0x41d450
mov eax, dword [ebp - 0x201fc]
add esi, eax
test esi, esi
jle 0x41d4a3
lea esp, [esp]
mov ecx, dword [0x595fcc]
push 0
push esi
push edi
push ecx
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x41d4ec
sub esi, eax
add edi, eax
test esi, esi
jg 0x41d480
mov eax, dword [ebp - 0x201fc]
mov cx, word [ebp - 0x20202]
test cx, cx
je 0x41d4f5
pop edi
movzx eax, cx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514760
mov esp, ebp
pop ebp
ret
mov eax, dword [0x595fcc]
push eax
call sub.WS2_32.dll_closesocket
mov dword [0x595fcc], 0xffffffff
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514760
mov esp, ebp
pop ebp
ret
mov edx, dword [0x595fcc]
push edx
jmp 0x41d4c8
cmp eax, dword [ebp + 0xc]
ja 0x41d4d7
mov ecx, dword [ebp - 0x20208]
push eax
lea eax, [ebp - 0x201f8]
push eax
push ecx
call fcn.005151a0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00514760
mov esp, ebp
pop ebp
ret
Function at 0x41ded0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x59a4d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x595fcc]
cmp eax, 0xffffffff
je 0x41defd
push eax
call sub.WS2_32.dll_closesocket
mov dword [0x595fcc], 0xffffffff
push esi
call sub.WS2_32.dll_WSACleanup
mov eax, dword [0x59c514]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41df15
push eax
call esi
mov eax, dword [0x59c508]
test eax, eax
je 0x41dfc5
push eax
call esi
mov eax, dword [0x595fc8]
mov dword [0x59c508], 0
cmp eax, 0xffffffff
je 0x41df46
push eax
call esi
mov dword [0x595fc8], 0xffffffff
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.RtsUpx.flag
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0041d920
push 0
push 0
push 3
push 0
push 7
push connect
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x595fc8], eax
cmp eax, 0xffffffff
jne 0x41dfb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41dfc5
call fcn.0041c8c0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514760
mov esp, ebp
pop ebp
ret
push eax
call esi
mov dword [0x595fc8], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00514760
mov esp, ebp
pop ebp
ret
Function at 0x42e0c1
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0042dd65
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x42e10b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00427a57
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041ae50
jmp 0x42e116
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042d4cf
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42e11c
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0042e272
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x42e159
call fcn.0042dd65
mov dword [esi + 0xc], 1
jmp 0x42e15e
call fcn.0042dd65
cmp dword [esi], 0
je 0x42e1a7
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x42e17f
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00427a57
jmp 0x42e191
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00416880
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041ae50
jmp 0x42e1cb
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x42e1cb
push dword [esi]
push dword [ebp + 8]
call fcn.0042d4cf
pop esi
pop ebp
ret 0xc

Function at 0x42e5a8
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5363ec
call fcn.00518b5f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42e5cd
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42e61f
call fcn.00427b56
push eax
lea ecx, [ebp - 0x10]
call fcn.004160c0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00518508
push eax
call fcn.0041a890
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00408500
mov eax, esi
call fcn.00518c37
ret 8
Function at 0x435882
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4358c9
call fcn.00429fc6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4358c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4358e5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00435382
mov esi, eax
test edi, edi
je 0x4358e3
test ebx, ebx
je 0x4358e3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x437d65
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x59a4d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x437d9a
xor eax, eax
jmp 0x437ded
lea eax, [ebp - 0x210]
push eax
call fcn.005185d5
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x437dcb
push 0x53cf28
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051901f
add esp, 0xc
test eax, eax
jne 0x437d96
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051901f
add esp, 0xc
test eax, eax
jne 0x437d96
lea eax, [ebp - 0x210]
push eax
call fcn.004280b5
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00514760
leave
ret

Function at 0x43a388
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00429fc6
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43a3c1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00439fc5
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x43a41f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x43a443
cmp dword [edi + 0x74], 0
jne 0x43a443
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00429fc6
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
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0043a3e0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4772a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4772bd
call fcn.00429fc6
mov esi, dword [eax + 0xc]
push dword [0x59fe24]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4772db
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4772d3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x477308
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4772d5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004771d1
mov esi, eax
jmp 0x4772fa

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00433e14
call fcn.0042900a
cmp eax, esi
pop esi
jne 0x4f0bd2
mov ecx, 0x59e4e8
jmp fcn.00438b46
ret

Function at 0x4fa3d5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4fa3ed
mov edi, dword [esi + 0xc]
jmp 0x4fa42d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4fa406
call fcn.0042baf9
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fa41b
call fcn.0042baf9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fa42d
call fcn.0042baf9
call fcn.00429fc6
cmp dword [eax + 0x3c], 0
je 0x4fa442
push edi
mov ecx, ebx
call fcn.004f9289
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004fa2ef
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4fa460
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fa46c
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x514760
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x59a4d4]
jne 0x51476a
repz ret
jmp fcn.0051cb24
Function at 0x529bc0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59a4d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051e7ee
and dword [ebp - 0x14], 0
cmp dword [0x5a2a04], 0
mov dword [ebp - 0x18], eax
jne 0x529c73
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x529d1b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x566898
push ebx
call edi
test eax, eax
je 0x529d1b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x566888
push ebx
mov dword [0x5a2a04], eax
call edi
push eax
call esi
push 0x566874
push ebx
mov dword [0x5a2a08], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5a2a0c], eax
call edi
push eax
call esi
mov dword [0x5a2a14], eax
test eax, eax
je 0x529c73
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5a2a10], eax
mov eax, dword [0x5a2a10]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x529ccc
cmp dword [0x5a2a14], ecx
je 0x529ccc
push eax
call esi
push dword [0x5a2a14]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x529ccc
test ebx, ebx
je 0x529ccc
call edi
test eax, eax
je 0x529cc3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x529cc3
test byte [ebp - 8], 1
jne 0x529ccc
or dword [ebp + 0x10], 0x200000
jmp 0x529cff
mov eax, dword [0x5a2a08]
cmp eax, dword [ebp - 0x18]
je 0x529cff
push eax
call esi
test eax, eax
je 0x529cff
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x529cff
mov eax, dword [0x5a2a0c]
cmp eax, dword [ebp - 0x18]
je 0x529cff
push eax
call esi
test eax, eax
je 0x529cff
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5a2a04]
call esi
test eax, eax
je 0x529d1b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x529d1d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00514760
leave
ret
Function at 0xcd41b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00cd4140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00cd4140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00cd4140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00cd4140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xcd4bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xcd4c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xce687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xcd4c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xcd4c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4029c0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4029ef
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ccc
jmp 0x402a0d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402948
mov edi, eax
test ebx, ebx
je 0x402a0d
cmp dword [esi], 0
je 0x402a0d
dec ebx
jmp 0x4029f6
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c78
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x4d0044], 0x8088405
inc edx
mov dword [0x4d0044], edx
mul edx
mov eax, edx
ret

Function at 0x402dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402e68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402e48
xor eax, eax
push ebp
push 0x402e41
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 0x402e84
mov eax, dword [ebp - 4]
push eax
invalid
outsb dx, byte [esi]
invalid
Function at 0x4063e0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x40643c
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x40642e
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x406423
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x40641e
mov eax, 0x64
jmp 0x406433
call sub.kernel32.dll_GetLastError
call fcn.00402874
xor eax, eax
jmp 0x40641e
mov eax, 0x67
jmp 0x406433

Function at 0x406444
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40649f
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
mov eax, 0x67
jmp 0x406496

Function at 0x4064e4
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x406527
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x40651e
push eax
push 1
push 0
push 0
push dword [ebx]
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x40651e
pop edx
cmp eax, edx
setae al
pop ebx
ret
call fcn.00402884
mov al, 1
jmp 0x40651c
mov eax, 0x67
call fcn.00402874
mov al, 0xff
jmp 0x40651c

Function at 0x40657c
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x4065ac
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x4065a2
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.00402884
or eax, 0xffffffff
jmp 0x4065a0
mov eax, 0x67
call fcn.00402874
or eax, 0xffffffff
jmp 0x4065a0

Function at 0x40948c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404028
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x4094a0
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.00404028
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4094c2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x409688
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403ccc
add esp, 0x104
pop ebx
ret

Function at 0x40b968
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 0x40b9a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ccc
jmp 0x40b9aa
mov eax, ebx
mov edx, esi
call fcn.00403c38
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4