joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b1d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x43b1d7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x43b2b4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4f9270]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4f9270]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4f9270]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4f9270]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4f9270]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4f9270]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4f9270]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4f9270]
inc ecx
sub edx, 8
sub esi, 1
jne 0x43b1f0
pop edi
test edx, edx
je 0x43b2db
jmp 0x43b2c0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4f9270]
inc ecx
sub edx, 1
jne 0x43b2c0
not eax
pop esi
ret

Function at 0x43b2e0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4f9270]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4f9270]
mov dword [edx + 8], ecx
ret

Function at 0x43b330
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4f9270]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4f9270]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x43baa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x43bad6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43bacc
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x43bae7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.004680d0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x43bca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x43bce7
cmp byte [esi + 1], 0
je 0x43bcef
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x43bd02
cmp byte [esi + 1], 0
je 0x43bcf6
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x43bd0a
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x43bcc1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x43bd0a
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x43bd1c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0045bda9
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43bd39
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x43be4f
jmp 0x43bd59
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x43bd68
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x43bd7f
mov ebx, 0x404
cmp byte [esi], 0
je 0x43bda4
cmp byte [esi + 1], 0
je 0x43be4f
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43bda7
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x43bdd0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43bdcb
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x43bdf9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x43bde1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.004680d0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x43be4f
lea eax, [ebx - 3]
test eax, eax
jl 0x43be3d
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x43be2f
cmp byte [eax + ecx + 1], 0x4b
jne 0x43be2f
cmp byte [eax + ecx + 2], 5
jne 0x43be2f
cmp byte [eax + ecx + 3], 6
je 0x43be35
test eax, eax
jge 0x43be10
jmp 0x43be3d
mov ecx, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x43be4f
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x43bd50
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045d785
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ca30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x43cace
cmp dword [esi + 4], 0xffffffff
jne 0x43cace
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ca60
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x43ca99
cmp ax, 0x2f
je 0x43ca99
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x43ca86
mov eax, dword [0x4fb660]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
call fcn.0043ba00
add esp, 4
test eax, eax
jne 0x43cab4
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret 4
call fcn.0043be70
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 4
mov eax, 0x1000000
pop edi
pop ebp
ret 4

Function at 0x43d160
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x507628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43d194
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43d194
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x43d27e
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x43d1b3
cmp ax, 0x5c
jne 0x43d1b5
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x43d1a7
push edi
cmp ecx, ebx
je 0x43d1f6
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004680d0
lea edx, [ebp - 0x414]
push edx
xor ecx, ecx
push esi
mov word [ebp + edi - 0x414], cx
call fcn.0043d160
add esp, 0x14
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x43d21f
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x43d210
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43d223
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x43d240
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x43d27e
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045ba17
mov esp, ebp
pop ebp
ret
Function at 0x43df10
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x43dffb
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x43df47
cmp dword [esi + 0x40], edi
jae 0x43df47
push eax
call fcn.0043e28c
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x43df5f
lea eax, [edi + edi]
push eax
call fcn.0043e281
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.004680d0
add esp, 0xc
xor ebx, ebx
test edi, edi
jbe 0x43dff8
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4f7a90]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4f7a90]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x43df77
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x43e03a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x43e01f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.004680d0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43e05c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4458c5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x44590d
call fcn.004450ea
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44590d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x445950
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x445939
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x445939
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44594d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x44cf07
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 0x44cf4e
call fcn.004450ea
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44cf4e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44cf6a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044ca7f
mov esi, eax
test edi, edi
je 0x44cf68
test ebx, ebx
je 0x44cf68
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44dd74
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4cd5e4
call fcn.00460b50
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44dd99
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x44dddf
lea ecx, [ebp - 0x10]
call fcn.00405790
mov ecx, dword [esi + 0x50]
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.0044d601
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004057c0
mov eax, esi
call fcn.00460c28
ret 8
Function at 0x450ca1
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x450cc5
cmp dword [edi + 0x54], 0
jne 0x450cc5
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004450ea
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.00450c62
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 0x45ba17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x507628]
jne 0x45ba21
repz ret
jmp fcn.00462f01

Function at 0x46e9ec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00462865
and dword [ebp - 4], 0
cmp dword [0x50f510], 0
mov ebx, eax
jne 0x46ea9d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46eb4e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d4c40
push edi
call esi
test eax, eax
je 0x46eb4e
push eax
call fcn.004627f3
mov dword [esp], 0x4d4c30
push edi
mov dword [0x50f510], eax
call esi
push eax
call fcn.004627f3
mov dword [esp], 0x4d4c1c
push edi
mov dword [0x50f514], eax
call esi
push eax
call fcn.004627f3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x50f518], eax
call esi
push eax
call fcn.004627f3
pop ecx
mov dword [0x50f520], eax
test eax, eax
je 0x46ea9d
push 0x4d4be8
push edi
call esi
push eax
call fcn.004627f3
pop ecx
mov dword [0x50f51c], eax
mov eax, dword [0x50f51c]
cmp eax, ebx
je 0x46eaf5
cmp dword [0x50f520], ebx
je 0x46eaf5
push eax
call fcn.0046286e
push dword [0x50f520]
mov esi, eax
call fcn.0046286e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46eaf5
test edi, edi
je 0x46eaf5
call esi
test eax, eax
je 0x46eaec
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46eaec
test byte [ebp - 0xc], 1
jne 0x46eaf5
or dword [ebp + 0x10], 0x200000
jmp 0x46eb2e
mov eax, dword [0x50f514]
cmp eax, ebx
je 0x46eb2e
push eax
call fcn.0046286e
pop ecx
test eax, eax
je 0x46eb2e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46eb2e
mov eax, dword [0x50f518]
cmp eax, ebx
je 0x46eb2e
push eax
call fcn.0046286e
pop ecx
test eax, eax
je 0x46eb2e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50f510]
call fcn.0046286e
pop ecx
test eax, eax
je 0x46eb4e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46eb50
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x473ec0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x50f5a0], 0
je 0x473ed6
xor eax, eax
jmp 0x4740f2
cmp dword [0x50f59c], 0
je 0x473ee9
mov eax, dword [0x50f59c]
jmp 0x4740f2
push 0x24
push 0
push 0x50f578
call fcn.00460c60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x50f578], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x50f57c], eax
cmp dword [0x50f57c], 0
jne 0x473f8e
mov dword [0x50f5a0], 1
cmp dword [0x50f57c], 0
je 0x473f41
mov eax, dword [0x50f57c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x50f580], 0
mov dword [0x50f584], 0
mov dword [0x50f588], 0
mov dword [0x50f58c], 0
mov dword [0x50f590], 0
mov dword [0x50f594], 0
mov dword [0x50f598], 0
xor eax, eax
jmp 0x4740f2
push str.ImagehlpApiVersionEx
mov ecx, dword [0x50f57c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x50f580], eax
push str.SymInitialize
mov edx, dword [0x50f57c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x50f584], eax
push str.SymSetOptions
mov eax, dword [0x50f57c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x50f588], eax
push str.SymGetOptions
mov ecx, dword [0x50f57c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x50f58c], eax
push str.SymLoadModule64
mov edx, dword [0x50f57c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x50f590], eax
push str.SymGetModuleInfo64
mov eax, dword [0x50f57c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x50f594], eax
push str.SymFromName
mov ecx, dword [0x50f57c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x50f598], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.00460c60
add esp, 0xc
mov eax, 0xb
mov word [ebp - 8], ax
cmp dword [0x50f580], 0
je 0x474073
cmp dword [0x50f584], 0
je 0x474073
cmp dword [0x50f590], 0
je 0x474073
cmp dword [0x50f594], 0
je 0x474073
cmp dword [0x50f598], 0
jne 0x474078
jmp 0x473f22
lea ecx, [ebp - 8]
push ecx
call dword [0x50f580]
movzx edx, word [ebp - 8]
cmp edx, 0xb
jge 0x474090
jmp 0x473f22
push 0
push 0
mov eax, dword [0x50f578]
push eax
call dword [0x50f584]
test eax, eax
jne 0x4740a9
jmp 0x473f22
cmp dword [0x50f58c], 0
je 0x4740e3
cmp dword [0x50f588], 0
je 0x4740e3
call dword [0x50f58c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
or edx, 0x2704
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [0x50f588]
mov dword [0x50f59c], 0x50f578
mov eax, dword [0x50f59c]
mov esp, ebp
pop ebp
ret
Function at 0x4745e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.004746b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x4746a5
mov edx, dword [ebp - 4]
cmp edx, dword [0x508a5c]
jb 0x474625
mov eax, dword [ebp - 4]
cmp eax, dword [0x508a60]
ja 0x474625
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x4745f5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.00460c60
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x47464b
jmp 0x4746a5
cmp dword [ebp - 0x10], 0x10000
jne 0x47468e
cmp dword [ebp - 0x14], 0x10000
jb 0x47468e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x474681
mov eax, dword [ebp - 0x24]
jmp 0x4746a7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x4746a0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.004746b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4745f5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4746e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.004747c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x4747ad
mov edx, dword [ebp - 4]
cmp edx, dword [0x508a5c]
jb 0x47472a
mov eax, dword [ebp - 4]
cmp eax, dword [0x508a60]
ja 0x47472a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x4746fa
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.00460c60
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x474750
jmp 0x4747ad
cmp dword [ebp - 0x10], 0x10000
jne 0x474793
cmp dword [ebp - 0x14], 0x10000
jb 0x474793
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x474786
mov eax, dword [ebp - 0x24]
jmp 0x4747af
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x4747a8
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.004747c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4746fa
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x474b10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x50f5b4], eax
je 0x474b2e
mov eax, 0x10dd
jmp 0x474c0f
mov eax, dword [0x50f5c4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x474bac
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x474b8a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x474b8a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00474c80
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0043e28c
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x474b36
mov dword [0x50f5c4], 0
call fcn.00474c20
mov ecx, dword [0x50f5c0]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x474bf9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0043e28c
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x474bc4
mov dword [0x50f5c0], 0
mov dword [0x50f5b4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret