joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402710
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x2a4
mov eax, dword [0x42abc0]
xor eax, esp
mov dword [esp + 0x2a0], eax
mov eax, dword [esp + 0x2a8]
push ebx
push ebp
push esi
lea esi, [eax + 0x108]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
jne 0x402772
lea eax, [esp + 0x1a0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40276a
push 0x4254b4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402772
push 0x4254c0
push esi
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_OpenFile]
push 0x4000
lea ecx, [esp + 0x14]
push ecx
push edi
call ebx
cmp eax, 0xffffffff
je 0x402793
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4027d8
push esi
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [esp + 0x9c]
push eax
call ebp
push 0x4000
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xa0]
push edx
call ebx
cmp eax, 0xffffffff
je 0x4027d6
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4027d8
xor eax, eax
mov ecx, dword [esp + 0x2ac]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e09e
add esp, 0x2a4
ret 4

Function at 0x402800
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x42abc0]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
cmp byte [eax + 0x318], 0
push esi
lea esi, [eax + 0x318]
jne 0x402845
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040e09e
add esp, 0x110
ret 4
cmp byte [eax + 0x520], 0
push edi
lea edi, [eax + 0x520]
je 0x40285c
mov eax, 1
jmp 0x4028da
push str.softwareEPSONSTM3Driver_
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x104
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push edx
push 0x20019
push 0
lea eax, [esp + 0x1c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4028ac
xor eax, eax
jmp 0x4028da
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
push str.ModelID
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.0040e09e
add esp, 0x110
ret 4
Function at 0x40bb05
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40bb33
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40bb51
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040ba6f
jmp 0x40bb51
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40bb51
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040ba6f
test edi, edi
mov eax, edi
jne 0x40bb3b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x42da68]
test ecx, ecx
je 0x40bc14
jmp 0x40bb04
ret 8

Function at 0x40e09e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42abc0]
jne 0x40e0a8
repz ret
jmp fcn.00411f9a
Function at 0x41bcc0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004121fb
xor ebx, ebx
cmp dword [0x42e7d0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41bd95
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41bd00
xor eax, eax
jmp 0x41be59
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42529c
push edi
call esi
cmp eax, ebx
je 0x41bcf9
push eax
call fcn.00412198
mov dword [esp], 0x42528c
push edi
mov dword [0x42e7d0], eax
call esi
push eax
call fcn.00412198
mov dword [esp], 0x425278
push edi
mov dword [0x42e7d4], eax
call esi
push eax
call fcn.00412198
mov dword [0x42e7d8], eax
lea eax, [ebp - 8]
push eax
call fcn.0040f97a
test eax, eax
pop ecx
pop ecx
je 0x41bd63
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00412b5f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41bd95
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00412198
cmp eax, ebx
pop ecx
mov dword [0x42e7e0], eax
je 0x41bd95
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412198
pop ecx
mov dword [0x42e7dc], eax
mov eax, dword [0x42e7dc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41be0e
cmp dword [0x42e7e0], esi
je 0x41be0e
push eax
call fcn.00412204
pop ecx
call eax
cmp eax, ebx
je 0x41bddb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42e7e0]
call fcn.00412204
pop ecx
call eax
test eax, eax
je 0x41bddb
test byte [ebp - 0x18], 1
jne 0x41be0e
lea eax, [ebp - 0xc]
push eax
call fcn.0040f9b1
test eax, eax
pop ecx
je 0x41bdf6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00412b5f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41be05
or dword [ebp + 0x10], 0x200000
jmp 0x41be3f
or dword [ebp + 0x10], 0x40000
jmp 0x41be3f
mov eax, dword [0x42e7d4]
cmp eax, esi
je 0x41be3f
push eax
call fcn.00412204
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41be3f
mov eax, dword [0x42e7d8]
cmp eax, esi
je 0x41be3f
push dword [ebp - 4]
push eax
call fcn.00412204
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42e7d0]
call fcn.00412204
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420d4c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42abc0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00420ce1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040fd90
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x420d9b
cmp dword [ebp - 0x1c], 5
jb 0x420db3
jmp 0x420daf
cmp dword [ebp - 0x10], 1
jne 0x420db3
cmp dword [ebp - 0x1c], 4
ja 0x420daf
jne 0x420db3
cmp dword [ebp - 0x18], 0
jbe 0x420db3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42532c
call fcn.00420bd2
test eax, eax
jge 0x420dd4
mov byte [0x42e91c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e09e
add ebp, 0x78
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422004]
jne 0x40100a
repz ret
jmp fcn.0040130d

Function at 0x403f8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402540
and dword [ebp - 0x14], 0
cmp dword [0x424adc], 0
mov dword [ebp - 0x18], eax
jne 0x40403e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4040e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4040e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x424adc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x424ae0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x424ae4], eax
call edi
push eax
call esi
mov dword [0x424aec], eax
test eax, eax
je 0x40403e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x424ae8], eax
mov eax, dword [0x424ae8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404097
cmp dword [0x424aec], ecx
je 0x404097
push eax
call esi
push dword [0x424aec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404097
test ebx, ebx
je 0x404097
call edi
test eax, eax
je 0x40408e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40408e
test byte [ebp - 8], 1
jne 0x404097
or dword [ebp + 0x10], 0x200000
jmp 0x4040ca
mov eax, dword [0x424ae0]
cmp eax, dword [ebp - 0x18]
je 0x4040ca
push eax
call esi
test eax, eax
je 0x4040ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4040ca
mov eax, dword [0x424ae4]
cmp eax, dword [ebp - 0x18]
je 0x4040ca
push eax
call esi
test eax, eax
je 0x4040ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x424adc]
call esi
test eax, eax
je 0x4040e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4040e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x409ce0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x422f60]
sub esp, 0x10
push esi
mov esi, dword [0x469ea8]
push edi
mov edi, dword [0x46a184]
push eax
call fcn.00409bd0
add esp, 4
cmp dword [0x46a184], 0x2f
jne 0x409d40
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Bihux_nivew_zuziduzaz_winojego_roli
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
call fcn.00409c20
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409fd0
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x46a184]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x409ff2
push 0
push 0
call edi
mov eax, dword [0x46a184]
cmp esi, 0x845013
jne 0x40a009
mov eax, dword [0x423d80]
add eax, 0xa231
mov dword [0x46a184], eax
cmp eax, 0x141
jne 0x40a024
mov dword [0x425020], 0xec58acac
mov dword [0x425024], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x409fe0
call fcn.00409d50
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cae4
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 0x41cb15
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cafd
add dl, dl
jne 0x41cb20
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cb71
xor eax, eax
add dl, dl
jne 0x41cb2d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc0e
add dl, dl
jne 0x41cb3c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cb47
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cb52
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cb5d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cb67
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cb0c
mov eax, 1
add dl, dl
jne 0x41cb7f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cb8a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cb76
sub eax, ebx
mov ebx, 1
jne 0x41cbbd
mov ecx, 1
add dl, dl
jne 0x41cba3
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cbae
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cb9a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cb0c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cbd4
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cbdf
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cbcb
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 0x41cb0c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cc2f
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 0x41cb0c
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 0x41d7a8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d7bb
add esp, 0xfffffff0
call fcn.00403da8
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403b30
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d7e1
cmp dword [esi + 0x58], 0x40
jb 0x41d9c7
jmp 0x41d7e7
jl 0x41d9c7
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e80
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041d364
cmp word [ebx + 0xc], 0x5a4d
jne 0x41d9c7
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41d9c7
cmp ecx, 0x10000
jge 0x41d9c7
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d842
cmp eax, dword [esi + 0x58]
ja 0x41d9c7
jmp 0x41d848
jg 0x41d9c7
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e80
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041d364
cmp dword [ebx + 0x4c], 0x4550
jne 0x41d9c7
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e80
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041d364
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d8ff
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d8c3
cmp eax, dword [esi + 0x58]
ja 0x41d950
jmp 0x41d8c9
jg 0x41d950
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e80
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041d364
mov byte [ebx + 4], 1
jmp 0x41d950
cmp ax, 0x14c
jne 0x41d950
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d920
cmp eax, dword [esi + 0x58]
ja 0x41d950
jmp 0x41d922
jg 0x41d950
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e80
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041d364
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41d9c7
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d981
cmp eax, dword [esi + 0x58]
ja 0x41d9c7
jmp 0x41d983
jg 0x41d9c7
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x52f27c]
call fcn.00405b74
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041d364
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41d9de
call fcn.00403e00
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e6d8
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], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x530b97
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e789
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e772
test esi, esi
jbe 0x41e789
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088a4
test eax, eax
jne 0x41e764
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 0x41e789
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e741
jmp 0x41e789
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e789
mov eax, ecx
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 0x530b9e
ret
Function at 0x41efb4
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 dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x531563
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 0x41efef
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41f008
lea eax, [ebp - 0x10]
mov edx, dword [0x547208]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41f01b
lea eax, [ebp - 0x10]
mov edx, dword [0x547208]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41f027
adc edx, 0
mov edx, dword [edx*4 + 0x5460ac]
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.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41f135
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f128
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f128
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d94
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f128
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f128
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f128
cmp dx, 0x150
ja 0x41f128
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f128
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f128
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
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.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f14d
inc ebx
cmp ebx, 0x19
jne 0x41efe1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53156a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10007073
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10007073
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10007073
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10007073
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10007073
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10007073
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10007073
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10007073
push 0xd008
push edi
call fcn.10007073
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10007073
int3

Function at 0x10007073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10007082
pop dword [ebp - 0x3c]
mov eax, 0x10007082
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x38905
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x2ab86a60
sub ecx, 0x2ab8243d
mov ebx, eax
mov edi, 0x711bac6a
sub edi, 0x611a266a
add edi, dword [ebp - 0x3c]
mov edx, 0x6f017030
add edx, 0x8efb0f5b
add dword [ebp - 0xc], 0xdabad019
mov esi, dword [edi]
xor esi, edx
xor dword [ebp - 0x24], ebx
mov dword [ebx], esi
add dword [ebp - 0x10], edi
add ebx, 0x2ec8aa68
sub ebx, 0x2ec8aa64
add edi, 0x57b11b00
add edi, 0xa84ee504
loop 0x100070d7
add eax, 0x7b4c7ecf
add eax, 0x84b48c90
xor ebx, ebx
add ebx, eax
add eax, 0x177fa29c
add eax, 0xe8805d69
mov ecx, 0x599ac13d
add ecx, 0xb6653ec3
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret