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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xcf3d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xcf3d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xcf3d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xcf3d94
push eax
push esi
call fcn.00cf620b
add esp, 8
pop esi
ret 0x10

Function at 0xcf3da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xcf3e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xcf3e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd0c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00cf5dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xcf3dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xcf3e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xcf3ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xcf3eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd0c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00cf5dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xcf3eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xcf3e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xcf4000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xcf4131
push esi
call fcn.00cf7145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00ce6080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xcf4131
push 0
push ebp
call fcn.00ce63a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00ce6260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xcf408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00ce62f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xcf4121
push 0xd0c918
push edi
call fcn.00cf53f0
push eax
push ebx
push esi
call fcn.00cf3f60
push 0xd0c8f8
push edi
call fcn.00cf53f0
push eax
push ebx
push esi
call fcn.00cf3f60
push 0xd0c8d8
push edi
call fcn.00cf53f0
push eax
push ebx
push esi
call fcn.00cf3f60
push 0xd0c8c0
push edi
call fcn.00cf53f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00cf3f60
push 0xd0c8a0
push edi
call fcn.00cf53f0
push eax
push ebx
push esi
call fcn.00cf3f60
push 0xd0c888
push edi
call fcn.00cf53f0
push eax
push ebx
push esi
call fcn.00cf3f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xcf51b0
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.00cf5140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00cf5140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00cf5140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00cf5140
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 0xcf5bfa
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 0xcf5c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd0787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xcf5c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xcf5c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x1a91390
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1a913f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x1a913e7
mov edx, dword [0x1aff9c0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1a913db
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1a913c0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x1a913e9
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x1a97a00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x1a97a6c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x1a97ab3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.01ac1a98
add esp, 8
test eax, eax
jne 0x1a97ab1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x1a97ab5
jmp 0x1a97a63
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1aa4d70
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x1af12e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.01aa0280
add esp, 4
movzx edx, al
test edx, edx
je 0x1aa4e01
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.01ab6940
add esp, 0xc
mov dword [ebp - 0x2d8], 0x10001
lea edx, [ebp - 0x2d8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1aa4dff
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp + 0xc]
jne 0x1aa4dff
jmp 0x1aa4e01
jmp 0x1aa4d83
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01ab7095
mov esp, ebp
pop ebp
ret
Function at 0x1aa7cb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1acbd07
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1af12e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.01aa6410
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.01aa6410
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.01aa6410
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.01aa76b0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.01aa76b0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.01aa76b0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1aa7ef0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1acbdb7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1af12e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.01aa62d0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.01aa62d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.01aa62d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.01aa76d0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.01aa76d0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.01aa76d0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1ab1ede
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x1ab1f63
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.01ab69c0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1ab1f26
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1ab1f48
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x1ab1fbe
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.01ab1cac
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x1ab1faa
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x1ab1fbe
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1ab1ee7
pop esi
pop ebx
leave
ret
Function at 0x1ab7095
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1af12e0]
jne 0x1ab709f
repz ret
jmp fcn.01abd6c1

Function at 0x1abdfd8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1af15e0]
je 0x1abdff3
inc edi
cmp edi, 0x17
jb 0x1abdfe4
cmp edi, 0x17
jae 0x1abe173
push ebp
push 3
call fcn.01ac4494
cmp eax, 1
pop ecx
je 0x1abe13f
push 3
call fcn.01ac4494
test eax, eax
pop ecx
jne 0x1abe027
cmp dword [0x1af1420], 1
je 0x1abe13f
cmp ebx, 0xfc
je 0x1abe172
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1b00fe0
push ebp
call fcn.01abde6c
add esp, 0xc
test eax, eax
je 0x1abe05d
push esi
push esi
push esi
push esi
push esi
call fcn.01ab92bb
add esp, 0x14
push 0x104
mov esi, 0x1b00ff9
push esi
push 0
mov byte [0x1b010fd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1abe0a1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.01abde6c
add esp, 0xc
test eax, eax
je 0x1abe0a1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.01ab92bb
add esp, 0x14
push esi
call fcn.01ab8d90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1abe0e6
push esi
call fcn.01ab8d90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1b012f4
push 0x1af8190
sub ecx, eax
push ecx
push eax
call fcn.01ac2fe8
add esp, 0x14
test eax, eax
je 0x1abe0e6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.01ab92bb
add esp, 0x14
jmp 0x1abe0e8
xor esi, esi
push 0x1af2a58
push ebx
push ebp
call fcn.01ac2f77
add esp, 0xc
test eax, eax
je 0x1abe108
push esi
push esi
push esi
push esi
push esi
call fcn.01ab92bb
add esp, 0x14
push dword [edi*8 + 0x1af15e4]
push ebx
push ebp
call fcn.01ac2f77
add esp, 0xc
test eax, eax
je 0x1abe12a
push esi
push esi
push esi
push esi
push esi
call fcn.01ab92bb
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.01ac42d7
add esp, 0xc
jmp 0x1abe172
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1abe172
cmp ebp, 0xffffffff
je 0x1abe172
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1af15e4]
push dword [esi]
call fcn.01ab8d90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1ac42d7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01abd89f
xor ebx, ebx
cmp dword [0x1b016c0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1ac43ad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1ac448d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1af92b0
push edi
call esi
cmp eax, ebx
je 0x1ac448d
push eax
call fcn.01abd831
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1b016c0], eax
call esi
push eax
call fcn.01abd831
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1b016c4], eax
call esi
push eax
call fcn.01abd831
mov dword [0x1b016c8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.01ab95f0
test eax, eax
pop ecx
pop ecx
je 0x1ac437b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01ab92bb
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1ac43ad
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.01abd831
cmp eax, ebx
pop ecx
mov dword [0x1b016d0], eax
je 0x1ac43ad
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.01abd831
pop ecx
mov dword [0x1b016cc], eax
mov eax, dword [0x1b016cc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1ac4432
cmp dword [0x1b016d0], ecx
je 0x1ac4432
push eax
call fcn.01abd8a8
push dword [0x1b016d0]
mov esi, eax
call fcn.01abd8a8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1ac4432
cmp edi, ebx
je 0x1ac4432
call esi
cmp eax, ebx
je 0x1ac43ff
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1ac43ff
test byte [ebp - 0x18], 1
jne 0x1ac4432
lea eax, [ebp - 0x10]
push eax
call fcn.01ab9627
test eax, eax
pop ecx
je 0x1ac441a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01ab92bb
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1ac4429
or dword [ebp + 0x10], 0x200000
jmp 0x1ac446d
or dword [ebp + 0x10], 0x40000
jmp 0x1ac446d
mov eax, dword [0x1b016c4]
cmp eax, dword [ebp - 8]
je 0x1ac446d
push eax
call fcn.01abd8a8
cmp eax, ebx
pop ecx
je 0x1ac446d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1ac446d
mov eax, dword [0x1b016c8]
cmp eax, dword [ebp - 8]
je 0x1ac446d
push eax
call fcn.01abd8a8
cmp eax, ebx
pop ecx
je 0x1ac446d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1b016c0]
call fcn.01abd8a8
cmp eax, ebx
pop ecx
je 0x1ac448d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1ac448f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a4b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push esi
mov ebx, dword [edi + 0x1bd8f708]
jne 0x40a4b6
fmul dword [eax + 0x50]
mov eax, dword [esi + 0x14]
push eax
call dword [0x40a39c]
test dword [esi + 0x75141e89], eax
dec ebx
mov edx, dword [esi - 0x5b]
stosb byte es:[edi], al
add eax, 0xff6f5114
adc eax, 0x2140eb24
test eax, eax
je 0x40a52f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
test eax, eax
salc
add cl, byte [ecx + 0x10158b08]
test edx, edx
jge 0x40a503
push ecx
pushfd
cmp bh, 0xea
inc dword [ebx + 0x289f5c4]
mov eax, dword [esi + 0x14]
push eax
call dword [edx + 0x6d72c074]
mov dword [esi + 0x14], 0
mov eax, 0x155a2
lcall 0x23d, 0x103c5d
add dword [eax], eax
add byte [eax + 0x42], dh
adc byte [0x5e000111], al
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
test dword [eax + 0x5d5e051f], edx
ret 0xf95