joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052f0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ecx
push esi
push edi
sub esp, 0x20
mov edi, eax
mov esi, edx
mov eax, esp
mov ebx, edx
mov edx, 0x405079
call fcn.00405160
push 0x41a108
movzx eax, byte [edi + 0x1c]
push eax
lea eax, [esp + 8]
push eax
push 0x405087
mov ebx, esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
test eax, eax
setne al
mov edx, 0x40504a
mov byte [edi + 0x1c], al
mov eax, esp
call fcn.00405160
push 0x41a108
mov eax, dword [edi + 0xc]
push eax
lea eax, [esp + 8]
push eax
push 0x405087
mov ebx, esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov edx, 0x405055
mov dword [edi + 0xc], eax
mov eax, esp
call fcn.00405160
push 0x41a108
mov edx, dword [edi + 0x10]
push edx
lea eax, [esp + 8]
push eax
push 0x405087
mov ebx, esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov edx, 0x4050f1
mov dword [edi + 0x10], eax
mov eax, esp
call fcn.00405160
push 0x41a108
movzx eax, word [edi + 6]
push eax
lea eax, [esp + 8]
push eax
push 0x405087
mov ebx, esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov edx, 0x4050e5
mov word [edi + 6], ax
mov eax, esp
call fcn.00405160
push 0x41a108
movzx eax, word [edi + 8]
push eax
lea eax, [esp + 8]
push eax
push 0x405087
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov word [edi + 8], ax
add esp, 0x20
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x4064d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
sub esp, 0x10
mov ebx, eax
mov ebp, edx
cmp edx, 0xffffffff
jne 0x4064e8
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalSize]
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test eax, eax
jne 0x4064fe
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
call fcn.00406420
test al, al
jne 0x406512
xor eax, eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
mov eax, ebx
call fcn.00406430
mov edx, eax
sub edx, ebx
call fcn.00406470
mov dword [esp + 8], edx
add edx, eax
mov dword [esp + 4], edx
lea eax, [edx + 3]
and al, 0xfc
mov dword [esp + 4], eax
sub ebp, eax
mov eax, dword [esp + 8]
add eax, dword [0x41938c]
mov dword [esp + 0xc], eax
add eax, 3
and al, 0xfc
mov dword [esp + 0xc], eax
add eax, ebp
push eax
push 0x42
mov dword [esp + 8], ebp
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test eax, eax
je 0x4064f5
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edx, eax
test eax, eax
jne 0x406582
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
xor eax, eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
mov ecx, dword [esp + 8]
mov esi, ebx
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov edi, dword [esp + 8]
mov ecx, dword [0x41938c]
mov esi, dword [0x419388]
add edi, edx
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov esi, dword [esp + 4]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp]
add esi, ebx
add edi, edx
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, ebp
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x406eb6
Capabilities:
Terminate process
Write file on windows

Disassembly:
jmp 0x40d640
push ebx
push ecx
push edx
push ebp
mov ebp, esp
sub esp, 8
mov eax, 1
call fcn.00410b10
mov eax, dword [0x41961c]
add eax, 3
and al, 0xfc
xor edx, edx
sub esp, eax
mov ecx, esp
mov ebx, dword [0x41961c]
mov eax, ecx
call fcn.00407cd0
mov eax, dword [0x41961c]
mov dword [ecx + 0x104], eax
mov eax, ecx
mov edx, ecx
call fcn.00410bc0
lea eax, [ebp - 8]
call fcn.0040ec50
mov ecx, dword [0x419648]
add ecx, 3
and cl, 0xfc
call fcn.00410bf0
cmp ecx, eax
jb 0x40d6d2
xor eax, eax
mov ecx, dword [0x419648]
add eax, ecx
mov dword [0x41964c], eax
call fcn.00410c10
push 0xa
mov eax, dword [0x419628]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call fcn.00401210
jmp 0x410c12
push ecx
call fcn.00410cb5
mov eax, dword [0x419648]
add eax, 3
and al, 0xfc
sub esp, eax
mov eax, esp
jmp 0x40d6a3
mov ecx, eax
call dword [0x41967c]
cmp dword [0x41acc0], 0
je 0x410c4f
cmp dword [0x4194a8], 0
je 0x410c3c
mov edx, 0xff
mov eax, 0x10
call dword [0x4194a8]
call dword [0x41967c]
call dword [0x419680]
mov eax, ecx
jmp fcn.0040ecb0
mov edx, 0xff
mov eax, 0x10
call fcn.00410b60
jmp 0x410c3c

Function at 0x407160
Capabilities:
Read .ini file

Disassembly:
push esi
sub esp, 0x104
mov esi, ebx
mov ebx, ecx
push edx
push 0x100
lea edx, [esp + 8]
push edx
push 0x406f93
mov edx, dword [0x41939c]
push edx
push eax
mov byte [esp + 0x118], 1
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [esp], 0
je 0x4071c3
mov edx, esp
mov eax, 0x41a74c
call fcn.0040d750
test al, al
je 0x4071c3
push 0x41a74c
call dword [sym.imp.GDI32.DLL_CreateFontIndirectA]
mov dword [0x419390], eax
test eax, eax
je 0x4071c3
mov byte [esp + 0x100], 0
mov eax, ebx
call fcn.00407070
cmp byte [esp + 0x100], 0
je 0x407219
mov eax, dword [0x419394]
mov dword [0x419390], eax
test eax, eax
jne 0x407221
push 0xb
call dword [sym.imp.GDI32.DLL_GetStockObject]
push esi
mov dword [0x419390], eax
call dword [sym.imp.GDI32.DLL_GetStockObject]
push 0x41a74c
push 0x3c
push eax
mov dword [0x419390], eax
call dword [sym.imp.GDI32.DLL_GetObjectA]
push 0x41a74c
call dword [sym.imp.GDI32.DLL_CreateFontIndirectA]
mov dword [0x419390], eax
add esp, 0x104
pop esi
ret
push 0x41a74c
push 0x3c
push eax
call dword [sym.imp.GDI32.DLL_GetObjectA]
add esp, 0x104
pop esi
ret
Function at 0x409930
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
push 0x409900
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebp, eax
test eax, eax
je 0x4099db
push 0x40991a
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ebx
push 0
push 0
push 0x801a
push 0
call eax
test eax, eax
jl 0x4099ce
mov edi, ebx
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x40990d
mov edx, ecx
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0xc]
cmp eax, esi
jae 0x4099ce
mov esi, 0x40990d
mov edi, ebx
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x4099b9
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x4099a1
pop edi
xor edx, edx
mov eax, ebx
call fcn.0040dd20
test eax, eax
je 0x4099ce
mov eax, ebx
call fcn.0040e810
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x40dfa0
Capabilities:
Get common file path

Disassembly:
push ecx
push edx
sub esp, 0x104
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
xor eax, eax
mov al, byte [esp]
call fcn.00410d90
sub eax, 0x60
add esp, 0x104
pop edx
pop ecx
ret

Function at 0x40dfd0
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push esi
push edi
sub esp, 0x104
mov edi, eax
mov ebx, edx
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov ecx, eax
test eax, eax
je 0x40e022
inc eax
test edi, edi
jne 0x40e029
cmp ebx, eax
jbe 0x40dffd
mov eax, ebx
call fcn.0040c260
mov edi, eax
test eax, eax
jne 0x40e03c
call dword [0x4194b0]
mov dword [eax + 4], 5
xor eax, eax
add esp, 0x104
pop edi
pop esi
pop ecx
pop ebx
ret
call fcn.00411470
jmp 0x40e015
cmp eax, ebx
jbe 0x40e03c
call dword [0x4194b0]
mov dword [eax + 4], 0xe
jmp 0x40e015
mov esi, esp
inc ecx
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
add esp, 0x104
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x40e070
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push ecx
push edx
sub esp, 0x104
mov ebx, eax
add al, 0x60
mov byte [esp], al
mov eax, esp
mov byte [esp + 1], 0x3a
push eax
mov word [esp + 6], 0x2e
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
xor eax, eax
mov al, byte [esp]
call fcn.00410d90
sub eax, 0x60
cmp eax, ebx
sete al
and eax, 0xff
dec eax
add esp, 0x104
pop edx
pop ecx
pop ebx
ret
Function at 0x40e9b0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x41acc0], eax
mov dword [0x4194ac], edx
call fcn.00412850
xor eax, eax
mov dword [0x41b2ec], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x419661], al
shr eax, 0x10
mov word [0x419663], ax
xor eax, eax
mov ax, word [0x419663]
and edx, 0xffff
mov dword [0x419665], eax
xor eax, eax
sar edx, 8
mov al, byte [0x419661]
and edx, 0xff
mov dword [0x419669], eax
xor eax, eax
mov al, dl
mov byte [0x419662], dl
mov dword [0x41966d], eax
mov eax, dword [0x419669]
mov edx, dword [0x41966d]
shl eax, 8
or eax, edx
mov dword [0x419671], eax
cmp byte [0x419661], 4
jae 0x40ead7
mov eax, 0x40e948
push eax
xor edx, edx
push 0x40e975
mov dword [0x41965d], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
test eax, eax
je 0x40ea6a
call edx
mov dword [0x41965d], eax
push 0x104
push 0x41acc4
push 0
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x41adc8
xor eax, eax
mov dword [0x41962c], 0x41acc4
call fcn.00412980
mov dword [0x419638], 0x41adc8
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.00412a20
mov edx, eax
mov bl, byte [eax]
mov dword [0x41acb8], eax
cmp bl, 0x22
je 0x40eae1
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x40e411], 2
je 0x40eaf9
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x40e411], 2
je 0x40eb00
inc eax
jmp 0x40eac7
mov eax, 0x40e95e
jmp 0x40ea42
inc eax
cmp bl, byte [eax]
je 0x40eaf1
cmp byte [eax], 0
je 0x40eaf1
inc eax
cmp byte [eax], 0x22
jne 0x40eae6
cmp byte [eax], 0
je 0x40eac7
inc eax
jmp 0x40eac7
test dl, dl
je 0x40eac7
inc eax
jmp 0x40eaba
mov dword [0x419628], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x40eb76
call fcn.00412a60
mov edx, eax
mov bx, word [eax]
mov dword [0x41acbc], eax
cmp bx, 0x22
je 0x40eb49
xor eax, eax
mov ax, word [edx]
call fcn.00412a87
test eax, eax
je 0x40eb6b
xor eax, eax
mov ax, word [edx]
call fcn.00412a87
test eax, eax
je 0x40eb7b
add edx, 2
jmp 0x40eb36
lea edx, [eax + 2]
cmp bx, word [edx]
je 0x40eb60
cmp word [edx], 0
je 0x40eb60
add edx, 2
cmp word [edx], 0x22
jne 0x40eb51
cmp word [edx], 0
je 0x40eb36
add edx, 2
jmp 0x40eb36
cmp word [edx], 0
je 0x40eb36
add edx, 2
jmp 0x40eb28
mov edx, 0x40e982
mov dword [0x419634], edx
test edi, edi
jne 0x40eb8e
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x41afd0
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x41b0d4
mov eax, esi
mov dword [0x419630], 0x41afd0
call fcn.00412980
mov dword [0x41963c], 0x41b0d4
mov eax, 1
pop edi
pop esi
pop ecx
ret
Function at 0x40ed10
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 8
mov esi, eax
mov ebp, edx
mov edi, ebx
test eax, eax
jl 0x40eda4
cmp eax, dword [0x4199c4]
jae 0x40eda4
call fcn.00412780
mov edx, eax
mov dword [esp + 4], eax
mov eax, esi
xor ebx, ebx
call fcn.00413890
test al, 0x80
je 0x40ed68
mov eax, esi
call dword [0x41946c]
push 2
push 0
push 0
push edx
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x40edb8
push 0
lea eax, [esp + 4]
push eax
push edi
push ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x40edc2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
cmp ebx, 1
jne 0x40ed95
mov eax, esi
call dword [0x419470]
mov eax, edx
call fcn.00411420
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [0x4194b0]
mov dword [eax + 4], 4
mov eax, 0xffffffff
jmp 0x40ed9c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x40ed8d
cmp edi, dword [esp]
je 0x40edd4
call dword [0x4194b0]
mov dword [eax + 4], 0xc
cmp ebx, 1
jne 0x40ede1
mov eax, esi
call dword [0x419470]
mov eax, dword [esp]
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret

Function at 0x410a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
push 0x40
push 0x1000
mov edx, dword [eax]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop edx
pop ecx
ret
Function at 0x432d20
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcb8
xor eax, eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x338], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x432f07
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x338]
call fcn.00432a68
mov edx, dword [ebp - 0x338]
lea eax, [ebp - 4]
mov ecx, 0x432f20
call fcn.004061e0
xor ecx, ecx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x2e0]
call fcn.004043f0
call fcn.00403d50
lea eax, [ebp - 0x2e0]
call fcn.004040b0
call fcn.00403d50
mov edx, 0x432f48
lea eax, [ebp - 0x2e0]
call fcn.00404aa4
call fcn.00404ba4
call fcn.00403d50
push 0x432f60
lea edx, [ebp - 0x340]
xor eax, eax
call fcn.00403fbc
push dword [ebp - 0x340]
push 0x432f78
lea eax, [ebp - 0x33c]
mov edx, 3
call fcn.00406268
mov edx, dword [ebp - 0x33c]
lea eax, [ebp - 0x2e0]
call fcn.00404aa4
call fcn.00404ba4
call fcn.00403d50
push 0x432f88
lea edx, [ebp - 0x348]
xor eax, eax
call fcn.00403fbc
push dword [ebp - 0x348]
push 0x432f78
push 0x432fac
lea eax, [ebp - 0x344]
mov edx, 4
call fcn.00406268
mov edx, dword [ebp - 0x344]
lea eax, [ebp - 0x2e0]
call fcn.00404aa4
call fcn.00404ba4
call fcn.00403d50
mov edx, 0x432fcc
lea eax, [ebp - 0x2e0]
call fcn.00404aa4
call fcn.00404ba4
call fcn.00403d50
lea eax, [ebp - 0x2e0]
call fcn.004044f0
call fcn.00403d50
lea eax, [ebp - 0x334]
xor ecx, ecx
mov edx, 0x44
call fcn.00404548
mov dword [ebp - 0x308], 1
mov word [ebp - 0x304], 0
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x334]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040601c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x432ee1
mov eax, dword [ebp - 0x2ec]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x2f0]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432f0e
lea eax, [ebp - 0x348]
mov edx, 5
call fcn.00405b34
lea eax, [ebp - 4]
call fcn.00405ad4
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d254
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 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
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 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
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 0x41d27c
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 0x41f3b0
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 0x1123089e
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 0x41f3ff
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 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
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 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
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 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
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 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
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 0x112308a5
ret
Function at 0x4205fc
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 0x11231c17
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 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x1124f5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x1124f5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x1124e3fc]
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 0x4207e9
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.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
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.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
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.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
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 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
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.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
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 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x11231c1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x402dcc
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x402e30
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x402e19
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x402e08
xor ecx, eax
xor edx, ebx
dec edi
jne 0x402df9
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x41777e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0041792e
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x41787c
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x41781f
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x417862
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x417836
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x417851
test al, 0x40
je 0x417848
mov ecx, dword [edi + 0x20]
jmp 0x41784f
test al, 0x80
je 0x417862
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x417862
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4177ee
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret