joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4349a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push 2
push eax
push dword [0x4690d4]
xor ebx, ebx
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x434b34
push eax
push dword [0x4690d4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x434b34
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x434b34
mov ecx, pe_nt_image_headers32
cmp dword [edi + 0x20], ebx
je 0x434a04
movzx esi, word [edi + 0x20]
jmp 0x434a25
movzx eax, word [edi + 0xe]
dec eax
je 0x434a22
sub eax, 3
je 0x434a1e
sub eax, 4
je 0x434a1a
sub eax, 0x10
jmp 0x434a25
mov esi, ecx
jmp 0x434a25
push 0x10
jmp 0x434a24
push 2
pop esi
movzx eax, si
mov dword [ebp + 0xc], eax
lea eax, [eax*4 + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x434ac5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x434ab5
mov word [ebx + 2], si
mov esi, dword [ebp + 0xc]
mov eax, 0x300
mov word [ebx], ax
test esi, esi
jle 0x434a8b
lea ecx, [ebx + 5]
lea edx, [edi + 0x29]
mov al, byte [edx + 1]
mov byte [ecx - 1], al
mov al, byte [edx]
mov byte [ecx], al
mov al, byte [edx - 1]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0
lea edx, [edx + 4]
lea ecx, [ecx + 4]
dec esi
jne 0x434a6b
mov esi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ecx, dword [ebp + 0x10]
push 1
push eax
push dword [ebp + 8]
mov dword [ecx], eax
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x434ab8
mov esi, dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
jmp 0x434ac8
mov esi, dword [ebp + 0xc]
mov eax, dword [edi]
push 4
push dword [ebp + 8]
lea esi, [eax + esi*4]
add esi, edi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
test eax, eax
je 0x434afe
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub ecx, dword [eax]
sub edx, dword [eax + 4]
push 0xcc0020
push ebx
push edi
push esi
push dword [edi + 8]
push dword [edi + 4]
push ebx
push ebx
push edx
push ecx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push str.______________________OUT_n
push str.CopyDIB
push 5
call fcn.00405a24
xor eax, eax
add esp, 0xc
inc eax
jmp 0x434b4a
push str.______________________OUT_ERROR__n
push str.CopyDIB
push 5
call fcn.00405a24
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436806
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_
mov edi, pe_nt_image_headers32
lea eax, [ebp - 0x40c]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x618], ebx
call fcn.00439aca
push esi
lea eax, [ebp - 0x40c]
push edi
push eax
call fcn.004391ef
add esp, 0x18
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x40c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x436873
xor eax, eax
jmp 0x436942
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push str.ProfileImagePath
push dword [ebp - 0x618]
mov dword [ebp - 0x61c], 0x206
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x618]
test eax, eax
je 0x4368b0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43686c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x103
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043965b
cmp word [ebp + eax*2 - 0x20e], 0x5c
pop ecx
pop ecx
je 0x4368ea
push 0x44d8a8
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004391ef
add esp, 0xc
push str.NTUSER.DAT
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004391ef
push 0x208
lea eax, [ebp - 0x614]
push ebx
push eax
call fcn.00438dc0
add esp, 0x18
lea eax, [ebp - 0x614]
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x614]
push eax
push esi
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438628
leave
ret
Function at 0x445df6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00441aa4
mov dword [ebp - 0x14], eax
cmp dword [0x469ffc], edi
jne 0x445ee7
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x445e74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x445fc7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x445fc7
push 0x457870
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x445fc7
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x469ffc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46a000], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46a004], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46a00c], eax
test eax, eax
je 0x445ee4
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46a008], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x445f0c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x445eff
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x445f21
push 4
pop eax
jmp 0x445fc9
cmp dword [ebp - 0x14], edi
je 0x445f21
push dword [0x469ffc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x445f06
mov eax, dword [0x46a008]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x445f7f
cmp dword [0x46a00c], esi
je 0x445f7f
push eax
call ebx
push dword [0x46a00c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x445f7f
test eax, eax
je 0x445f7f
call ecx
test eax, eax
je 0x445f74
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x445f74
test byte [ebp - 8], 1
jne 0x445f7f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x445faf
mov eax, dword [0x46a000]
cmp eax, esi
je 0x445fac
push eax
call ebx
test eax, eax
je 0x445fac
call eax
mov edi, eax
test edi, edi
je 0x445fac
mov eax, dword [0x46a004]
cmp eax, esi
je 0x445fac
push eax
call ebx
test eax, eax
je 0x445fac
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x469ffc]
call ebx
test eax, eax
je 0x445fc7
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x445fc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438628
leave
ret
Function at 0x1000ab50
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1000ad1d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x1000ab7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1000ab81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1000ab70
mov eax, 1
add ebx, ebx
jne 0x1000ab93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1000ab88
jne 0x1000aba4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000ab88
xor ecx, ecx
sub eax, 3
jb 0x1000abb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1000ac2a
mov ebp, eax
add ebx, ebx
jne 0x1000abc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1000abd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1000abf4
inc ecx
add ebx, ebx
jne 0x1000abe0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1000abd5
jne 0x1000abf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000abd5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1000ac14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1000ac05
jmp 0x1000ab76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1000ac14
add edi, ecx
jmp 0x1000ab76
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1000ac32
cmp byte [edi], 0
jne 0x1000ac32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1000ac37
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x1000acaf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa0dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1000ac64
mov ecx, edi
jns 0x1000ac93
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa0e0]
or eax, eax
je 0x1000aca9
mov dword [ebx], eax
add ebx, 4
jmp 0x1000ac81
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1000ace0
cmp al, 0xef
ja 0x1000acd3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1000acb5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1000acc2
mov ebp, dword [esi + 0xa0e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1000ad14
sub esp, 0xffffff80
jmp 0x10004a37
Function at 0x404620
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebx
push esi
sub esp, 8
mov eax, dword [0x42e0c0]
xor eax, esp
mov dword [esp + 4], eax
mov byte [esp + 3], 1
rdtsc
xchg ebx, eax
rdtsc
sub eax, ebx
cmp eax, dword [esp + 0x14]
jg 0x404647
mov byte [esp + 3], 0
movzx esi, byte [esp + 3]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040dcad
mov eax, esi
add esp, 8
pop esi
pop ebx
ret
Function at 0x40e5ab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e5ea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e5ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e5ea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e5ea
cmp dword [ecx + 0x74], 0xe
jbe 0x40e5ea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4be008], 0x8088405
inc edx
mov dword [ebx + 0x4be008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4a258e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2595
ret
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4a38f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x4c054c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x4c054c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x4bf378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a38fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x1000ddc5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d564c
call fcn.100d39f0
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
push esi
mov dword [ebp - 0x10], ebx
call fcn.10001d91
and dword [ebp - 4], 0
lea eax, [esi + 0xc]
push eax
lea ecx, [ebx + 0xc]
call fcn.10001d91
mov eax, dword [esi + 0x18]
add esi, 0x40
mov dword [ebx + 0x18], eax
mov eax, dword [esi - 0x24]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi - 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [esi - 0x1c]
mov dword [ebx + 0x24], eax
mov eax, dword [esi - 0x18]
mov dword [ebx + 0x28], eax
mov al, byte [esi - 0x14]
mov byte [ebx + 0x2c], al
mov al, byte [esi - 0x13]
mov byte [ebx + 0x2d], al
mov al, byte [esi - 0x12]
mov byte [ebx + 0x2e], al
mov al, byte [esi - 0x11]
mov byte [ebx + 0x2f], al
mov al, byte [esi - 0x10]
mov byte [ebx + 0x30], al
mov al, byte [esi - 0xf]
mov byte [ebx + 0x31], al
mov ax, word [esi - 0xe]
mov word [ebx + 0x32], ax
mov eax, dword [esi - 8]
mov dword [ebx + 0x38], eax
mov eax, dword [esi - 4]
lea edi, [ebx + 0x40]
mov dword [ebx + 0x3c], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100187e9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
xor ebx, ebx
push 0x3c
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov ax, word [edi]
mov word [esi + 0x10], ax
movzx eax, word [edi + 2]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x28], eax
movzx eax, word [edi + 0x18]
mov dword [esi + 0x18], eax
movzx eax, word [edi + 0x1a]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ebx
mov eax, dword [edi + 0x20]
mov dword [esi + 0x4c], eax
lea eax, [edi + 0x28]
push eax
lea eax, [esi + 0x54]
push eax
call sub.msvcrt.dll_memcpy
mov ax, word [esi + 0x10]
add esp, 0xc
and ax, 0xf000
cmp ax, 0x8000
jne 0x10018869
mov eax, dword [edi + 0x6c]
or dword [esi + 0x20], ebx
or dword [esi + 0x24], eax
movzx eax, word [edi + 0x74]
or dword [esi + 0x40], ebx
cdq
or dword [esi + 0x44], eax
movzx eax, word [edi + 0x78]
shl eax, 0x10
or dword [esi + 0x14], eax
movzx eax, word [edi + 0x7a]
shl eax, 0x10
or dword [esi + 0x18], eax
mov eax, dword [esp + 0x14]
mov cx, word [eax + 0x48]
mov eax, 0x80
cmp cx, ax
jbe 0x100188db
mov dx, word [edi + 0x80]
movzx ebx, dx
add ebx, eax
movzx eax, cx
cmp ebx, eax
jle 0x100188b1
xor al, al
jmp 0x100188dd
cmp dx, 0x1c
jb 0x100188db
mov eax, dword [edi + 0x88]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x8c]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x90]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x94]
mov dword [esi + 0x3c], eax
mov al, 1
pop edi
pop esi
pop ebx
ret 8

Function at 0x1001b445
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x100d6270
call fcn.100d39f0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100dfa34
mov dword [esi + 4], 0x100e1f84
mov dword [esi + 8], 0x100df7f0
mov dword [esi + 0xc], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x60], eax
push fcn.1000b676
push 0x1001b5c1
push 6
lea eax, [esi + 0x160]
push 8
push eax
mov byte [ebp - 4], 7
call fcn.1006dc5d
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x100e1f50
mov dword [esi + 4], 0x100e1f34
mov dword [esi + 8], 0x100e1f24
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x10024fac
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
push esi
mov ecx, dword [esp + 8]
lea esi, [edx + ecx]
cmp edx, esi
je 0x10024fdb
push edi
movzx edi, byte [edx]
mov ecx, eax
and ecx, 0xff
xor ecx, edi
shr eax, 8
movzx ecx, word [ecx*2 + 0x100fe5f0]
xor eax, ecx
inc edx
cmp edx, esi
jne 0x10024fbb
pop edi
pop esi
ret 4

Function at 0x100298d8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d7119
call fcn.100d39f0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100dfa34
mov dword [esi + 4], 0x100dfe34
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.100024c7
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x100e3730
mov dword [esi + 4], 0x100e3720
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret