joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003462
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [0x100d064]
xor ebx, ebx
cmp eax, ebx
je 0x10034dc
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003490
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [ebp + 8]
push dword [0x100d064]
call esi
test eax, eax
je 0x10034df
mov ecx, 0x1002300
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10034bf
push ebx
lea edx, [ebp - 4]
push edx
sub eax, edi
push eax
push ecx
push dword [0x100d064]
call esi
test eax, eax
pop edi
je 0x10034df
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x1003693
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x310
cmp dword [0x100c044], 0
mov eax, dword [0x100c028]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jne 0x1003781
push esi
push 0x10023d0
push 0x10023c8
push eax
call fcn.0100691d
test eax, eax
mov esi, 0x104
je 0x10036f9
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 1
push eax
call fcn.010067e2
test eax, eax
je 0x10036f9
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100d0c0
jmp 0x100371a
push esi
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
push 0x10023b8
lea eax, [ebp - 0x310]
push eax
call fcn.01002c4b
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x100c058], eax
je 0x100375a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10023a0
push eax
call esi
push 0x100238c
push dword [0x100c058]
mov dword [0x100c044], eax
call esi
mov dword [0x100c040], eax
cmp dword [0x100c044], 0
pop esi
jne 0x100376e
mov dword [0x100c044], 0x1003689
cmp dword [0x100c040], 0
jne 0x1003781
mov dword [0x100c040], 0x100367f
mov ecx, dword [ebp - 4]
call fcn.01006a23
leave
ret 4
Function at 0x1003b04
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push 0x10023ec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1003bcf
push esi
mov esi, 0x100d300
push esi
push 0x10023dc
push 0x100d0c0
call fcn.01002c4b
push edi
push 0x4000002
push 1
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100c020], edx
je 0x1003bce
push ebx
xor eax, eax
mov ebx, 0x100c8e0
push eax
mov ecx, 0xc5
mov edi, ebx
rep stosd dword es:[edi], eax
mov byte [0x100caf0], al
lea eax, [ebp - 4]
push eax
mov edi, 0x314
push edi
push ebx
push edx
mov dword [0x100c8e0], 0x6e776453
mov dword [0x100c8e4], 0x10000
mov dword [0x100c8e8], 0xc0000013
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop ebx
je 0x1003bbb
cmp dword [ebp - 4], edi
jne 0x1003bbb
push esi
push 0x10023ec
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x1003bce
push dword [0x100c020]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100c020], 0xffffffff
pop esi
pop edi
leave
ret

Function at 0x1003bd7
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101d420], 0
jne 0x1003c54
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.01002d90
lea eax, [ebp - 0x280]
push eax
call fcn.010034f5
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100c05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100ce24]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002dff
test esi, esi
jne 0x1003c5e
inc esi
cmp dword [0x100c060], 0
je 0x1003c79
push 0x100d080
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100c060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10043d3
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100c028]
push esi
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100443f
lea eax, [ebp - 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1004446
xor eax, eax
jmp 0x10044f9
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push 0x10000
push 0x100d420
push 4
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x10044f8
push edi
push dword [0x100d420]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
push edi
call fcn.010042b8
test eax, eax
pop ecx
mov dword [esi], eax
je 0x10044d5
mov esi, dword [0x100d420]
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x14]
push eax
push 0x10000
push 0x100d420
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x10044f7
push dword [0x100d420]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.010042b8
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
jne 0x10044dc
push 8
call fcn.01003bd7
mov ecx, esi
mov esi, dword [0x100d420]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01006a23
leave
ret 0xc
Function at 0x1004b7e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, esi
xor ebx, ebx
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1004b92
push 0x2e
push esi
call dword [sym.imp.msvcrt.dll_strrchr]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1004bff
push 0x10025d4
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x1004bff
xor ebx, ebx
inc ebx
mov eax, dword [0x101d428]
xor edx, edx
mov ecx, 0x3e8
div ecx
inc dword [0x101d428]
push edx
push 0x10025cc
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1004bc2
push esi
push 0x100c004
call fcn.01004b50
jmp 0x1004c02
mov byte [esi], 0
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c028]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004cdc
sub eax, ecx
lea ecx, [eax + 1]
mov edx, ecx
push edi
shr ecx, 2
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp + eax - 0x108]
cmp byte [eax - 1], 0x5c
pop edi
je 0x1004d12
mov byte [eax], 0x5c
mov byte [eax + 1], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.01004c61
test eax, eax
pop esi
pop ebx
je 0x1004d77
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004d77
test al, 0x10
je 0x1004d77
push 0x1002470
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1004d72
push 0x10025dc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004d72
push 0
lea ecx, [ebp - 0x108]
push ecx
call eax
test eax, eax
jne 0x1004d72
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x1004d79
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01006a23
leave
ret 0xc
Function at 0x1006a23
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100c028]
jne 0x1006a34
test ecx, 0xffff0000
jne 0x1006a34
ret
jmp fcn.01006a3e

Function at 0x1007f3d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x1007f7a
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1007f57
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1007f96
dec esi
je 0x1007f8f
dec esi
jne 0x1007f9b
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x554d32
Capabilities:
Encode data using xor

Disassembly:
movzx ax, dl
mov eax, dword [edx + 8]
pushal
pushfd
lea esp, [esp + 0x44]
jmp fcn.005a4696
lea esp, [esp + 0x50]
ja 0x564621
rcl al, 7
sub ebx, edi
sal edi, cl
add ebx, esp
bsr di, bp
mov edi, ebx
ror al, cl
jmp 0x5a53e9
shl al, cl
neg al
mov al, 0x2e
cmp esi, 0x91d3f7bb
cmc
call fcn.00563bf0
add byte [eax], al
inc edi
je 0x5a544d
popal
jae 0x5a5478
inc ebp
jb 0x5a5479
outsd dx, dword [esi]
jb 0x5a540a
lea esp, [esp + 4]
jne 0x5b40ba
pushal
jmp 0x55309f
fcmovne st(0), st(4)
and bl, bh
xchg dword [ebx - 0x80], edx
test eax, 0xff0b18ad
loopne 0x5a549d
mov al, 0x9c
das
inc edi
sub eax, 0xe9f6b5b1
mul byte [esi]
stosb byte es:[edi], al
xchg eax, edi
cmpsb byte [esi], byte es:[edi]
pop edx
test dword [0x5126d010], ecx
ja 0x5a54c9
movsb byte es:[edi], byte [esi]
int3
sbb dword [esi], 0x2f58b826
and eax, 0x90392bc8
push ds
mov eax, 0xc8252f58
sub edi, dword [ecx]
nop
jl 0x5a54d0
int3
scasb al, byte es:[edi]
xchg byte [ebx + edi*4], bl
xor ah, dl
adc al, dl
sub eax, 0x8cfa82cc
clc
adc eax, 0x70e7af4
adc dh, bl
or cl, byte [esp + ebx - 0x61]
sub ecx, esi
dec dword [eax]
mov al, byte [0x6cbef02a]
pushfd
or dword [ebp - 0x2d], esp
or esp, edi
mov dword [ebx], ebx
mov al, 0x25
invalid
adc al, dl
test al, 0xc4
clc
mov ah, byte [ecx]
imul ebx, dword [ecx], 0xffffffef
and dword [ebx + 0x19], ebp
out dx, eax
mov dh, 0xed
imul ecx, dword [edi], 0x70cf229b
or eax, 0xe62850e6
cmp bl, byte [ebx + 0x26d01044]
push eax
movsd dword es:[edi], dword [esi]
push cs
enter 0xffffffffffff965c, 0x19
pushfd
push ebp
imul byte [ebx]
jnp 0x5a5573
inc esp
sub ebp, 0x1e70bd3
scasd eax, dword es:[edi]
push ecx
in eax, 0x73
je 0x5a5499
adc al, dl
push esi
movsd dword es:[edi], dword [esi]
invalid
hlt
jl 0x5a55bd
not byte [edx]
test al, 0xb
add dword [ebx + 0x2d57f702], esp
jbe 0x5a5538
push ss
or edx, dword [ebx - 0x51c762b]
sub esi, edx
sti
cmp esp, dword [0x2d763729]
in eax, dx
dec ebx
sbb ch, byte [ebx + 0xd]
or ebp, dword [edx]
test eax, 0x9f5697dd
mov ebp, 0x1eb81f88
invalid
push cs
shl byte [esi], 1
sbb esp, dword [esi]
rol ah, 3
shr dword [edi - 0x47], 0x41
xchg edx, eax
push 0xa958747
cwde
mov byte [ebp - 0x72], ch
sub al, 0x93
aas
movsb byte es:[edi], byte [esi]
xchg edx, eax
mov byte [0x81974770], al
jae 0x5a560b
xor byte [bx + si], ch
test byte [edi], 0x14
aad 0x4b
nop
sub eax, dword [ebp + 0x7f]
adc edx, ecx
adc al, 0x4c
int3
and byte [ecx - 0x56f21bde], 0xcb
cmpsd dword [esi], dword es:[edi]
cld
invalid
jne 0x5a55f3
jmp 0x5a561b
cmp byte [ecx + 0x61], bl
ret
Function at 0x563411
Capabilities:
Encode data using xor

Disassembly:
mov byte [esp], cl
call 0x5671aa
call 0x5533a6
add byte [eax], al
inc esi
jb 0x563480
push edx
jae 0x56348f
jne 0x563494
arpl word [ebp], sp
shld bx, bp, cl
movsx ebx, al
lea ebx, [ebx + 0x34400bd9]
rol bx, cl
mov ebx, eax
pushfd
jmp 0x5649d1
jbe 0x5634bc
lodsb al, byte [esi]
dec ebx
sbb dword [ecx - 0x347489b7], 0xfffffffa
xor dword [eax], ebx
inc edx
adc byte [ebx - 0x4e], 0x65
lea eax, [edx - 0x1b]
or byte [edx - 0x36fe76a], bh
stosd dword es:[edi], eax
pop ecx
retf
push ss
jge 0x563459
or dword [edi + edx], edx
pushfd
cdq
leave
push ds
invalid
ret
fist word [esi - 0x2c466592]
inc ecx
dec ebp
aas
arpl sp, dx
pushal
lcall 0x633f, 0x4d41d3b9
aam 0x60
aad 0x21
call dword [edi + 0x18]
lcall 0x3e0f, 0xe95ce42
insd dword es:[edi], dx
salc
inc edi
xor al, 0x96
push 0xfac24826
dec ch
adc bh, ch
sub byte [edx - 0x31], bh
or byte [0x90e820a], bl
jge 0x563497
iretd
add eax, 0x3b5103f7
int 0xee
invalid
pushal
clc
mov byte [esp + 8], ch
cmp al, 9
mov byte [esp + 0xc], 0x13
jmp 0x563257
lea esp, [esp + 4]
je 0x5a4b8a
cmc
pushfd
cmc
sub al, 0x30
jmp 0x563d61
cmc
mov byte [esp], 0x2f
cmp byte [edi], 0x23
pushal
mov word [esp], 0x99c3
pushfd
lea esp, [esp + 0x28]
jne 0x56356f
seta ah
ror ax, 0xd
sub ah, 0x4d
stc
xor edx, edx
add ax, dx
lahf
shld ax, dx, cl
aaa
mov eax, edx
not al
setl al
add edi, 1
sub al, ch
mov al, byte [edi]
cmc
push edi
test al, al
jmp 0x564645
clc
jmp 0x56356b
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
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 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
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 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
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 0x41f05c
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 0x3c8f54a
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 0x41f0ab
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 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
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 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
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 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
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 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
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 0x3c8f551
ret
Function at 0x420294
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 0x3c908af
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 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x3cad54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x3cad54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x3cac378]
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 0x420481
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 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
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 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
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 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
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 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
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 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
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 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3c908b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1002aaee
pop dword [ebp - 0x18]
mov eax, 0x1002aaee
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x9f8571d5
sub dword [ebp - 0x28], 0x51332c8a
mov dword [ebp - 0x24], 0x781b5775
sub dword [ebp - 0x24], 0x45e80b30
mov dword [ebp - 0x20], 0x64a4ced4
add dword [ebp - 0x20], 0xe7a7755a
mov dword [ebp - 0x1c], 0x4f45eb58
sub dword [ebp - 0x1c], 0x4f45eb58
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x20339d36
sub dword [ebp - 0x28], 0xabc133e0
mov dword [ebp - 0x24], 0x6cc51660
sub dword [ebp - 0x24], 0x2b58b4eb
mov dword [ebp - 0x20], 0xaf908a29
add dword [ebp - 0x20], 0xb3dee243
mov dword [ebp - 0x1c], 0x58903e7c
sub dword [ebp - 0x1c], 0x58903e7c
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x2d86826d
add eax, 0xe27c3dbb
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x34c50
push 0
call eax
mov ecx, 0x5e73b6e6
add ecx, 0xa18c8a4f
xor edx, edx
add edx, eax
mov esi, 0x10039600
add esi, dword [ebp - 0x18]
mov ebx, 0x13319bae
mov dword [ebp - 8], 0x3bf460f0
mov edi, dword [esi]
sub dword [ebp - 0xc], 0x9b49aea2
xor edi, ebx
add dword [ebp - 0x10], ecx
mov dword [edx], edi
xor dword [ebp - 4], eax
add edx, 0x63066962
sub edx, 0x6306695e
add esi, 0x1e1e0e1
sub esi, 0x1e1e0dd
loop 0x1002abfc
add eax, 0x406ab254
add eax, 0xbf964553
mov ebx, eax
add eax, 0x6e45e60d
sub eax, 0x6e45e608
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret