joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404075
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [esi + 8], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
je 0x4040fa
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call edi
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x4040ba
cmp dword [esi + 0xc], ebx
je 0x4040c1
cmp eax, 0xea
jne 0x4040e1
push dword [ebp - 8]
mov ecx, esi
call fcn.00404008
lea eax, [ebp - 8]
push eax
push dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call edi
mov dword [esi + 4], eax
cmp dword [esi + 4], ebx
pop edi
jne 0x404109
cmp dword [ebp - 4], 1
je 0x4040fa
cmp dword [ebp - 4], 2
je 0x4040fa
mov dword [esi + 4], 0x57
cmp dword [esi + 4], ebx
jne 0x404109
cmp dword [ebp - 8], ebx
je 0x404109
mov eax, dword [esi + 0xc]
jmp 0x40410c
lea eax, [esi + 0x18]
pop esi
pop ebx
leave
ret 4

Function at 0x404117
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [esi + 8], ebx
mov dword [ebp - 8], 3
mov dword [ebp - 4], eax
je 0x404196
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call edi
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40415c
cmp dword [esi + 0xc], ebx
je 0x404163
cmp eax, 0xea
jne 0x404183
push dword [ebp - 4]
mov ecx, esi
call fcn.00404008
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call edi
mov dword [esi + 4], eax
cmp dword [esi + 4], ebx
pop edi
jne 0x4041ac
cmp dword [ebp - 8], 3
je 0x404196
mov dword [esi + 4], 0x57
cmp dword [esi + 4], ebx
jne 0x4041ac
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4041ac
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
jmp 0x4041b3
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor eax, eax
pop esi
pop ebx
leave
ret 8
Function at 0x4d2b4c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d2c96
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004d2174
xor eax, eax
push ebp
push 0x4d2c79
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4d2bb1
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4d2bb1
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4d2c63
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4d2bc4
call fcn.0040438c
jmp 0x4d2c80
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4d2c63
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4d2c63
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403d10
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4d2c63
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c354
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4d2cb0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4de9e0]
mov dl, 1
mov eax, dword [0x4d14bc]
call fcn.0040ccb0
call fcn.004042e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2c80
mov eax, dword [ebp - 4]
call fcn.004d2180
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2c9d
lea eax, [ebp - 0x28]
call fcn.00404904
ret

Function at 0x4d32f8
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ecx, edx
mov ebx, eax
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.004d0ff0
lea edx, [esp + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
call fcn.004d0fe0
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4d892c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push esp
push 0xff
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.00409a74
add esp, 0x100
pop ebx
ret

Function at 0x4d8b88
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
pop edx
ret
Function at 0x4dad08
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc98
push ebx
xor ecx, ecx
mov dword [ebp - 0x368], ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404da4
xor eax, eax
push ebp
push 0x4dae57
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20d]
mov edx, dword [ebp - 4]
call fcn.00409914
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004029a0
lea eax, [ebp - 0x30d]
mov edx, dword [ebp - 0xc]
call fcn.00409914
lea eax, [ebp - 0x354]
xor ecx, ecx
mov edx, 0x44
call fcn.00403264
mov dword [ebp - 0x354], 0x44
mov dword [ebp - 0x328], 1
mov word [ebp - 0x324], bx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x30d]
push eax
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x20d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4dadf8
mov dword [ebp - 8], 0xffffffff
push 0
push 0x4dae68
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x368]
call fcn.0040c354
mov eax, dword [ebp - 0x368]
call fcn.00404db4
push eax
mov eax, dword [0x4de924]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x4dae2e
push 0xffffffffffffffff
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x360]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dae5e
lea eax, [ebp - 0x368]
call fcn.00404904
lea eax, [ebp - 0xc]
call fcn.00404904
lea eax, [ebp - 4]
call fcn.00404904
ret

Function at 0x401ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40406c], eax
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.mifedount
push str.Deltapo
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401b33
xor eax, eax
jmp 0x401b4e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1008571
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [0x10124a0], esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x100870b
cmp dword [0x10124a4], esi
jne 0x100870b
cmp ebx, 0x10
je 0x10086d8
cmp ebx, 0x8000
je 0x10086bc
cmp dword [0x10124a8], esi
jne 0x100870b
cmp ebx, 0x1c
ja 0x10085e7
je 0x10085e2
cmp ebx, 0x18
jne 0x100870b
cmp dword [ebp + 0x10], esi
je 0x100870b
push esi
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x100870b
cmp dword [ebp + 0x10], esi
jmp 0x1008659
cmp ebx, 0x48
ja 0x100860c
je 0x1008606
cmp ebx, 0x20
jne 0x100870b
push esi
call dword [sym.imp.USER32.dll_SetCursor]
push 1
pop eax
jmp 0x100873d
cmp dword [ebp + 0x10], 3
jmp 0x1008659
mov eax, ebx
sub eax, 0x100
je 0x10086b1
sub eax, 4
je 0x10086b1
sub eax, 0xfc
je 0x1008660
dec eax
je 0x10086b1
sub eax, 3
je 0x10086b1
sub eax, 3
je 0x10086b1
sub eax, 0x11
jne 0x100870b
cmp dword [ebp + 0x10], 6
jb 0x10086b1
cmp dword [ebp + 0x10], 8
jbe 0x1008655
cmp dword [ebp + 0x10], 0x12
jne 0x10086b1
test byte [ebp + 0x14], 1
je 0x10086b1
jmp 0x100870b
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x1012490]
je 0x100867b
cmp ecx, esi
jge 0x100867b
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x1012494]
je 0x100868c
cmp eax, esi
jge 0x100868c
neg eax
add ecx, eax
cmp ecx, dword [0x101046c]
jbe 0x100870b
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 8]
mov dword [0x1012490], eax
mov eax, dword [ebp - 4]
mov dword [0x1012494], eax
jmp 0x100870b
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
jmp 0x100870b
cmp dword [0x10124c8], esi
je 0x100870b
mov eax, dword [0x10124b0]
cmp eax, esi
je 0x10085fe
push dword [ebp + 8]
call eax
jmp 0x100873d
cmp dword [0x10124c8], esi
je 0x10086fb
push dword [ebp + 8]
call fcn.010089bb
test eax, eax
jne 0x10086fb
push 0x1012490
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
jmp 0x100873d
push esi
push esi
push 0x403
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, dword [0x10124b8]
jne 0x100872d
cmp ebx, esi
je 0x100872d
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
xor eax, eax
cmp dword [0x10124b0], esi
setne al
jmp 0x100873d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10089bb
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [0x10124a8], edi
jne 0x1008ab9
cmp dword [0x10124a4], edi
jne 0x1008ab9
cmp dword [0x10124b0], edi
je 0x1008aa8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x10124cc], edi
mov esi, eax
je 0x1008a10
push esi
push dword [0x10124d0]
call fcn.01008ac5
cmp eax, dword [0x10124cc]
jb 0x1008aa8
mov eax, dword [0x1010470]
cmp eax, 0xffffffff
je 0x1008a2c
push esi
push eax
call fcn.01008ac5
cmp eax, 0xc8
jb 0x1008ab2
mov ebx, dword [esp + 0x30]
push 1
pop eax
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0x404
push ebx
mov dword [0x10124a8], eax
call edi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
mov esi, 0x113
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call ebp
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call ebp
xor esi, esi
push esi
push esi
push 0x8000
push ebx
call edi
push esi
push esi
push 0x404
push ebx
mov dword [0x10124a4], eax
mov dword [0x10124a8], esi
call edi
cmp dword [0x10124a4], esi
jne 0x1008a9b
push esi
call dword [sym.imp.USER32.dll_SetCursor]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1010470], eax
jmp 0x1008ab2
mov dword [0x10124a4], 1
mov eax, dword [0x10124a4]
jmp 0x1008abb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x1009295
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [0x1012f88], 1
lea eax, [edi + 4]
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x680]
push eax
call ebx
xor esi, esi
cmp dword [edi], esi
je 0x10092e7
push dword [ebp - 4]
lea eax, [ebp - 0x478]
push eax
call ebx
mov eax, dword [edi]
mov word [ebp + eax*2 - 0x47a], si
lea eax, [edi + eax*2 + 4]
push eax
jmp 0x1009343
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x478]
push eax
push 0x104
push esi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x100932e
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 8]
push dword [ebp - 8]
lea ecx, [ebp - 0x478]
sub eax, ecx
sar eax, 1
mov dword [edi], eax
mov word [ebp + eax*2 - 0x47a], si
jmp 0x1009343
lea eax, [ebp - 0x478]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [ebp - 4]
lea eax, [ebp - 0x26c]
push eax
call ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], 0x58
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x478]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0x1012d80
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x44], 0x104
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x1012d00
mov dword [ebp - 0x30], 0x1804
mov word [ebp - 0x2c], si
mov word [ebp - 0x2a], si
mov dword [ebp - 0x28], 0x1012e80
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x64]
mov dword [ebp + 8], esi
push eax
call sub.comdlg32.dll_GetOpenFileNameW
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x10093fd
movzx eax, word [ebp - 0x2c]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x270]
push eax
call fcn.0100952e
test eax, eax
je 0x10093f6
mov ecx, 0x83
lea esi, [ebp - 0x270]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
xor esi, esi
jmp 0x10093fd
mov dword [ebp + 8], 1
cmp dword [ebp + 8], esi
je 0x1009440
cmp word [ebp - 0x2c], si
je 0x1009437
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x478]
push eax
call ebx
movzx eax, word [ebp - 0x2c]
shl eax, 1
mov word [ebp + eax - 0x47a], si
lea eax, [ebp + eax - 0x26c]
push eax
lea eax, [ebp - 0x26c]
push eax
call ebx
cmp dword [ebp + 8], esi
jne 0x10093b5
cmp dword [ebp - 0xc], esi
mov dword [0x1012f88], esi
je 0x1009464
push dword [ebp - 4]
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1009464
push 1
pop eax
jmp 0x1009466
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100946d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], 0x104
call fcn.01009f59
test eax, eax
je 0x100948d
push 0x1001a48
jmp 0x1009520
lea eax, [ebp - 8]
xor esi, esi
push eax
push 1
push esi
push 0x10019e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10094fe
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push esi
push 0x10019d0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov esi, 0x10019bc
jne 0x10094e9
mov eax, dword [ebp - 4]
shr eax, 1
add eax, 4
cmp eax, 0x104
ja 0x10094e9
push 0x1012f00
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x10094f3
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100950d
mov esi, 0x10019bc
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1009529
push 0x10019a0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
leave
ret 4

Function at 0x100b380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x90
push 0x40
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x100b42f
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
je 0x100b3ff
lea ecx, [ebp - 4]
push 0
push ecx
push 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ax, word [esi]
cmp ax, 0xda01
jne 0x100b3f6
mov ax, word [esi + 6]
xor ecx, ecx
mov cl, ah
mov ch, al
mov ax, word [esi + 8]
mov word [esi + 6], cx
xor ecx, ecx
mov ch, al
mov cl, ah
mov word [esi + 8], cx
jmp 0x100b3fc
cmp ax, 0x1da
jne 0x100b3ff
push 1
pop ebx
test ebx, ebx
je 0x100b417
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100b417
movzx ecx, word [esi + 6]
mov dword [eax], ecx
movzx ecx, word [esi + 8]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
je 0x100b426
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop esi
pop ebx
leave
ret 8
Function at 0x100b85c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x100b914
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x100b914
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x100b91f
cmp word [edi], 0x4d42
lea eax, [edi + 0xe]
je 0x100b8bf
mov eax, edi
movzx ecx, word [eax + 2]
movzx edx, word [eax]
shl ecx, 0x10
or ecx, edx
cmp ecx, 0xc
je 0x100b8fd
cmp ecx, 0x28
jne 0x100b914
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
je 0x100b911
movzx ebx, word [eax + 6]
movzx edx, word [eax + 4]
shl ebx, 0x10
or edx, ebx
mov dword [ecx], edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
shl eax, 0x10
or edx, eax
mov dword [ecx + 4], edx
jmp 0x100b911
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
je 0x100b911
movzx edx, word [eax + 4]
mov dword [ecx], edx
movzx eax, word [eax + 6]
mov dword [ecx + 4], eax
push 1
pop ebx
cmp edi, esi
je 0x100b91f
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100b92f
push dword [ebp - 4]
call esi
cmp dword [ebp + 8], 0xffffffff
je 0x100b93a
push dword [ebp + 8]
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8

Function at 0x100cfbe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
and dword [ebp - 4], esi
push eax
push 1
push esi
push 0x1001ce8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100d061
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x100d05e
mov esi, dword [ebp + 8]
mov edi, 0x10105a0
sub edi, esi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x40
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [edi + esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100d056
cmp dword [ebp - 0xc], 1
jne 0x100d056
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push 0x1001cdc
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
movzx ecx, byte [ebp - 0x14]
xor eax, eax
add esp, 0x14
mov ah, byte [ebp + 8]
mov al, byte [ebp - 0x10]
shl eax, 8
or eax, ecx
mov dword [esi], eax
add esi, 4
dec dword [ebp + 0xc]
jne 0x100cffa
push 1
pop esi
cmp dword [ebp - 4], 0
je 0x100d070
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret 8
Function at 0x100d5d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d18
push 0x100d748
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x10136a0], 0xffffffff
mov dword [0x10136a4], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x1013304]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x1013300]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x10136a8], ecx
call fcn.0100d7a0
mov eax, dword [0x10106d0]
test eax, eax
jne 0x100d661
push 0x100d790
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.0100d770
push 0x101000c
push 0x1010008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x10132fc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x10132f8]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x1010004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.01008b70
add esp, 0xc
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x100d700
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100e059
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ax, word [esi + 2]
and ax, 0xff00
cmp ax, 0x100
jne 0x100e108
movzx eax, word [esi + 8]
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov ecx, edi
push ebx
imul ecx, eax
add ecx, dword [ebp + 0x10]
mov eax, dword [esi + 0x84]
push ebx
push dword [eax + ecx*4]
push dword [esi + 0x6c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push ebx
push eax
movzx eax, word [esi + 8]
imul edi, eax
add edi, dword [ebp + 0x10]
mov eax, dword [esi + 0x88]
push dword [eax + edi*4]
push dword [esi + 0x70]
push dword [esi + 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esi + 0x70]
mov edi, dword [ebp + 0xc]
mov al, byte [esi]
inc esi
mov cl, al
mov dword [ebp + 0x10], edi
and ecx, 0x7f
je 0x100e143
test al, 0x80
je 0x100e0e1
lea eax, [ecx]
mov cl, byte [esi]
mov byte [edi], cl
inc edi
inc esi
dec eax
jne 0x100e0d6
jmp 0x100e0c3
mov al, byte [esi]
mov dword [ebp + 0x14], ecx
mov bl, al
mov edx, ecx
mov bh, bl
inc esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x10]
add edi, edx
jmp 0x100e0c3
movzx eax, word [esi + 8]
imul eax, dword [ebp + 0x14]
movzx ecx, word [esi + 6]
add eax, dword [ebp + 0x10]
xor ebx, ebx
push ebx
push ebx
imul eax, ecx
add eax, 0x200
push eax
push dword [esi + 0x6c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push ebx
push eax
movzx eax, word [esi + 6]
push eax
push dword [ebp + 0xc]
push dword [esi + 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10