joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d5700
Capabilities:
Hide graphical window

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004d56c0
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
mov esi, eax
push esi
call ebp
test eax, eax
je 0x4d5773
push ebx
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4d575c
push edi
call ebp
test eax, eax
je 0x4d575c
mov eax, dword [esp + 0x18]
push eax
push esi
call fcn.004c4d60
add esp, 4
and eax, 0xffff
push eax
push 0x72d
push edi
call ebx
mov ecx, dword [esp + 0x20]
push 0
neg ecx
sbb ecx, ecx
and ecx, 0x65
push ecx
push 0x72c
push esi
call ebx
pop ebx
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d8682
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004db217
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4d86a5
test byte [esp + 8], 2
je 0x4d86a5
call fcn.004db28a
mov dword [eax], 0xd
call fcn.004db293
mov dword [eax], 5
jmp 0x4d867e
xor eax, eax
ret

Function at 0x4e3cf4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5a8cf8
cmp edx, dword [eax]
je 0x4e3d16
add eax, 8
inc ecx
cmp eax, 0x5a8d88
jl 0x4e3d07
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5a8cf8]
jne 0x4e3e44
mov eax, dword [0x5b67b8]
cmp eax, 1
je 0x4e3e1e
test eax, eax
jne 0x4e3d47
cmp dword [0x5a5c14], 1
je 0x4e3e1e
cmp edx, 0xfc
je 0x4e3e44
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4e3d7e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004df920
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004e0b70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4e3dc1
lea eax, [ebp - 0x1a4]
push eax
call fcn.004e0b70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x553830
push edi
call fcn.004d7a70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004df920
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004df930
lea eax, [ebp - 0xa0]
push 0x553810
push eax
call fcn.004df930
push dword [esi + 0x5a8cfc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004df930
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004e6cae
add esp, 0x2c
pop edi
jmp 0x4e3e44
lea eax, [ebp + 8]
lea esi, [esi + 0x5a8cfc]
push 0
push eax
push dword [esi]
call fcn.004e0b70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4e81f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4e8220
push esi
call fcn.004ebca0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4e8219
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4e82a3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4e828f
mov eax, dword [esi + 8]
test eax, eax
je 0x4e8244
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4e828b
cmp eax, 2
je 0x4e828f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4e8237
cmp eax, 3
je 0x4e826a
cmp eax, 1
jne 0x4e8237
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4e8237
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4e8237
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004e82d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4e82c3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x13
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004e82d0
add esp, 4
pop esi
ret

Function at 0x4e85a0
Capabilities:
Check http status code

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x14]
cmp eax, 0xc8
je 0x4e85cf
cmp eax, 0xc9
je 0x4e85cf
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x13
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
call dword [eax]
add esp, 4
push esi
call fcn.004e8610
mov ecx, eax
add esp, 4
dec ecx
je 0x4e8609
dec ecx
jne 0x4e860e
mov al, byte [esp + 0xc]
test al, al
je 0x4e85f9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x2d
mov edx, dword [esi]
call dword [edx]
add esp, 4
push esi
call fcn.004e8900
add esp, 4
mov eax, 2
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x4f84c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x25c
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x14]
push ecx
call fcn.004d6713
add esp, 4
cmp word [esp + eax*2 + 0x12], 0x5c
je 0x4f84fd
lea edx, [esp + 0x14]
push 0x598458
push edx
call fcn.004d62f1
add esp, 8
push esi
push edi
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x16]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x12]
and ecx, 0xffff
mov edi, dword [esp + 0x26c]
push ecx
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x16]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x16]
push ecx
mov ecx, dword [esp + 0x18]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
lea edx, [esp + 0x34]
push ecx
lea esi, [edi + 0x10]
push edx
push str._siv__04d_02d_02d_02d_02d_02d_03d.tmp
push esi
call fcn.004d5ee1
push 0x5a9c40
push esi
call fcn.004d5ece
add esp, 0x30
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4f85b6
mov esi, dword [esp + 0x268]
push 0x50
push str.temp_filename
mov eax, dword [esi]
mov dword [eax + 0x14], 0x38
mov ecx, dword [esi]
add ecx, 0x18
push ecx
call fcn.004d7a70
mov edx, dword [esi]
push esi
call dword [edx]
add esp, 0x10
mov dword [edi], 0x4f85e0
mov dword [edi + 4], 0x4f8650
mov dword [edi + 8], 0x4f86c0
pop edi
pop esi
add esp, 0x25c
ret
Function at 0x51e220
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x51e240
mov edx, dword [esp + 4]
add esp, 8
ret
xor eax, eax
xor edx, edx
add esp, 8
ret

Function at 0x51e2e0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x5b3c54
push eax
call fcn.0051d9e0
add esp, 8
cmp eax, 0x102
jg 0x51e31c
je 0x51e30e
mov ecx, eax
sub ecx, 0
je 0x51e315
sub ecx, 2
jne 0x51e32a
mov ecx, 4
jmp 0x51e339
mov ecx, 3
jmp 0x51e339
cmp eax, 0x202
je 0x51e334
cmp eax, 0x302
je 0x51e334
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ecx, 2
mov edx, eax
mov edi, dword [esp + 0x24]
neg edx
sbb edx, edx
push 0
and edx, 0x7f
inc edx
neg eax
sbb eax, eax
push edx
and eax, 0x40000000
push ecx
push 0
add eax, 0x80000000
push 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x51e378
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
xor ebx, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call ebp
mov esi, eax
test esi, esi
jle 0x51e3b7
push esi
call fcn.0051e450
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x51e3a8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
call ebp
xor eax, eax
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x51e3d3
mov ebp, dword [esp + 0x24]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x51e40c
cmp eax, 0x10000000
jb 0x51e40c
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x5a9ca0]
mov word [edi - 1], cx
test ebx, ebx
mov eax, ebx
jne 0x51e417
mov eax, 0x5a9ca4
lea edx, [esp + 0x10]
push edx
push eax
push ebp
call fcn.0051e020
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x51e433
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0051e490
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x54267f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x542692
xor eax, eax
jmp 0x54272b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
jmp 0x5426ca
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x542729
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x14], edx
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.00542636
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x542727
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x54272b
jmp 0x5426c3
xor eax, eax
leave
ret
Function at 0x54f0f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 4
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x591788]
xor eax, edx
dec ecx
jne 0x54f0f9
ret
Function at 0x551649
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5516a1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x5b3c54
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x551694
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5516a3
xor eax, eax
pop esi
leave
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x11127d40
Capabilities:
Print debug messages

Disassembly:
mov edx, dword [0x111bbe28]
xor eax, eax
push esi
test edx, edx
jle 0x11127d6b
mov esi, dword [esp + 8]
mov ecx, 0x111bbdec
cmp esi, dword [ecx]
jb 0x11127d64
inc eax
add ecx, 8
cmp eax, edx
jl 0x11127d56
jmp 0x11127d6b
inc dword [eax*8 + 0x111bbde8]
mov edx, dword [0x111e1114]
mov eax, dword [0x111e1110]
inc edx
inc eax
mov dword [0x111e1114], edx
xor edx, edx
mov ecx, 0x493e0
mov dword [0x111e1110], eax
div ecx
pop esi
test edx, edx
jne 0x11127d96
jmp 0x11127da0
ret

Function at 0x11127ec0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x900
push ebx
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x10a]
mov word [esp + 0x108], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x111e1114]
stosw word es:[edi], ax
mov eax, dword [0x111bbde8]
cmp ecx, eax
mov eax, str.____
jne 0x11127df3
mov eax, str.
push ecx
mov ecx, dword [0x111e1110]
push ecx
push eax
push str._DtFrame___PasshruLockSum____s___All:__d___ItemAll:__d_
lea edx, [esp + 0x18]
push 0x7f
push edx
call fcn.1113fd59
lea eax, [esp + 0x20]
lea ecx, [esp + 0x120]
push eax
push ecx
call fcn.1113faae
mov eax, dword [0x111bbe28]
add esp, 0x20
xor ebx, ebx
mov dword [0x111e1114], 0
test eax, eax
jle 0x11127e8c
push esi
mov esi, 0x111bbde8
mov edx, dword [esi]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
push edx
dec eax
lea ecx, [esp + 0x10]
push eax
push str.__d:__d_
push 0x7f
push ecx
call fcn.1113fd59
lea edx, [esp + 0x20]
lea eax, [esp + 0x120]
push edx
push eax
call fcn.1113faae
mov eax, dword [0x111bbe28]
add esp, 0x1c
mov dword [esi], 0
inc ebx
add esi, 8
cmp ebx, eax
jl 0x11127e3d
pop esi
lea ecx, [esp + 0x108]
push 0x111bbe38
push ecx
call fcn.1113faae
add esp, 8
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop ebx
add esp, 0x900
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [0x111bbe2c], eax
mov dword [0x111bbe30], ecx
mov dword [0x111bbe34], edx
call fcn.11127d00
test eax, eax
je 0x11127eeb
jmp 0x11127da0
ret
Function at 0x1112cb90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x1112cbde
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1112cbde
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x1112cbe3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x1112cbc9
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x1112cbf3
test esi, esi
jne 0x1112cc11
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x1112cc0f
mov byte [eax + esi - 1], 0
jne 0x1112cc18
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x11132370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x111323c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x111323c0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x111323c5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x111323ab
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x111323d2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x1113be80
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x100
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x1113bf58
mov ebp, dword [esp + 0x118]
test ebp, ebp
je 0x1113bf58
mov ebx, dword [esp + 0x11c]
test ebx, ebx
je 0x1113bf58
push 0x111a45a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push str.LoadLibraryA
push edi
call fcn.11150b30
mov esi, eax
add esp, 8
test esi, esi
jne 0x1113bee7
push str.LoadLibraryA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1113bf58
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xff
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.111416c0
mov eax, dword [0x111e1490]
add esp, 0xc
test eax, eax
jne 0x1113bf2f
push str.SeDebugPrivilege
mov dword [0x111e1490], 1
call fcn.1113bf70
add esp, 4
mov edx, dword [esp + 0x114]
lea ecx, [esp + 0x10]
push 0x100
push ecx
push esi
push ebp
push edx
call fcn.1113c010
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret 0xc
Function at 0x1113c010
Capabilities:
Allocate or change rwx memory
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
sub esp, 0x754
push ebx
push ebp
push esi
mov esi, dword [esp + 0x768]
push edi
xor ebx, ebx
push esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, 0xb3
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x10007
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1113c1ca
mov ebp, dword [esp + 0x768]
push 0x40
push 0x1000
push 0x480
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x1113c1ca
mov edx, dword [esp + 0x774]
lea eax, [esp + 0x2e4]
test edx, edx
je 0x1113c0ea
mov ecx, dword [esp + 0x778]
mov esi, edx
mov edx, ecx
lea edi, [esp + 0x364]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebx + 0x80]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2e8]
push ecx
call fcn.1113c310
mov edx, eax
lea ecx, [esp + 0x2ec]
sub edx, ecx
add edx, ebx
push edx
mov edx, dword [esp + 0x77c]
push edx
push eax
call fcn.1113c330
mov esi, dword [esp + 0x780]
add esp, 0x14
mov ecx, dword [esp + 0xc8]
push ecx
push eax
call fcn.1113c1e0
mov edx, dword [esp + 0xc4]
push edx
push eax
call fcn.1113c200
mov ecx, dword [esp + 0xd4]
push ecx
push eax
call fcn.1113c220
mov edx, dword [esp + 0xd8]
push edx
push eax
call fcn.1113c240
mov ecx, dword [esp + 0xd8]
push ecx
push eax
call fcn.1113c260
mov edx, dword [esp + 0xdc]
push edx
push eax
call fcn.1113c280
mov ecx, dword [esp + 0xfc]
push ecx
push eax
call fcn.1113c2a0
mov edx, dword [esp + 0x114]
push edx
push eax
call fcn.1113c2c0
mov ecx, eax
lea edx, [esp + 0x324]
sub ecx, edx
add esp, 0x40
add ecx, ebx
push ecx
mov ecx, dword [esp + 0xd4]
push ecx
push eax
call fcn.1113c2e0
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x2e4]
mov dword [esp + 0xd0], ebx
push edx
push 0x480
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1113c1ca
push 0x480
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x1113c1ca
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1113c1ca
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x754
ret
Function at 0x1113c3f0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x138
mov ecx, 0x10
xor eax, eax
push ebx
push ebp
mov ebx, dword [esp + 0x144]
push esi
mov esi, dword [esp + 0x14c]
push edi
mov ebp, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x14]
push 0x40
push eax
push esi
push ebx
call ebp
test eax, eax
jne 0x1113c436
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret
cmp word [esp + 0x10], 0x5a4d
je 0x1113c44c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x138
ret
mov edx, dword [esp + 0x4c]
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0x54]
push 0xf8
add edx, esi
push ecx
push edx
push ebx
call ebp
test eax, eax
jne 0x1113c47d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret
cmp dword [esp + 0x50], 0x4550
je 0x1113c494
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x138
ret
mov eax, dword [esp + 0x66]
pop edi
not eax
shr eax, 0xd
pop esi
pop ebp
and eax, 1
pop ebx
add esp, 0x138
ret
Function at 0x1113cfd0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c0
mov eax, dword [esp + 0x1d0]
push ebx
mov ebx, dword [esp + 0x1c8]
push ebp
push esi
push edi
push 4
add eax, 0x1b8
push 0x1000
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x1113d214
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x98]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov edi, 0x40
push ecx
lea edx, [esp + 0x9c]
push edi
push edx
push esi
push ebx
mov dword [esp + 0x24], 0
mov word [esp + 0xac], 0x5a4d
mov dword [esp + 0xe8], edi
call ebp
test eax, eax
je 0x1113d214
cmp dword [esp + 0x10], edi
jne 0x1113d214
add esi, edi
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0xd8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xd8]
push eax
push 0xf8
push ecx
push esi
push ebx
mov dword [esp + 0xec], 0x4550
mov word [esp + 0x100], pe_nt_image_headers32
mov word [esp + 0x102], 0x2000
mov word [esp + 0xf2], 1
call ebp
test eax, eax
je 0x1113d214
cmp dword [esp + 0x10], 0xf8
jne 0x1113d214
mov edx, dword [str..detour]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [0x111bc638]
add esi, 0xf8
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1e0]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov ecx, esi
sub ecx, eax
lea eax, [edx + 0x58]
add ecx, 0x28
mov dword [esp + 0x40], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x3c], ecx
push eax
lea ecx, [esp + 0x34]
push 0x28
push ecx
push esi
push ebx
call ebp
test eax, eax
je 0x1113d214
cmp dword [esp + 0x10], 0x28
jne 0x1113d214
mov edx, dword [esp + 0x1e0]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
lea eax, [edx + 0x58]
mov edi, 0x40
mov dword [esp + 0x64], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x5c]
add esi, 0x28
push edi
push ecx
push esi
push ebx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], 0x727444
mov dword [esp + 0x74], edi
call ebp
test eax, eax
je 0x1113d214
cmp dword [esp + 0x10], edi
jne 0x1113d214
add esi, edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1e0]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1d8]
lea edx, [edi + 0x18]
mov ecx, dword [eax]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x18
push ecx
push esi
push ebx
mov dword [esp + 0x40], edx
call ebp
test eax, eax
je 0x1113d214
cmp dword [esp + 0x10], 0x18
jne 0x1113d214
mov eax, dword [esp + 0x1dc]
lea edx, [esp + 0x10]
push edx
push edi
add esi, 0x18
push eax
push esi
push ebx
call ebp
test eax, eax
je 0x1113d214
cmp dword [esp + 0x10], edi
jne 0x1113d214
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c0
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c0
ret 0x10