joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438ff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x90]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x409370
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea ecx, [esi + 0x20]
mov dword [ecx + 0x60], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx + 0x50], xmm0
movdqa xmmword [ecx + 0x40], xmm0
movdqa xmmword [ecx + 0x30], xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
mov dword [esi + 8], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0xc], fcn.0042ee20
mov dword [esi + 0x14], edx
mov dword [eax + 8], 1
lea eax, [esi + 4]
mov dword [eax], edx
push eax
call fcn.00409d70
mov dword [esi + 0x98], 2
lea ecx, [esi + 4]
push 0x452db0
call fcn.0040aa40
mov dword [esi + 0x10], eax
mov al, byte [ebp + 0x14]
lea ecx, [esi + 0x84]
lea edx, [esi + 3]
mov byte [edx], 0
lea edi, [esi + 0x14]
lea ebx, [esi + 8]
movzx eax, al
push ecx
push edi
push ebx
push dword [esi + 0x10]
push edx
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push dword [ecx + 4]
lea ecx, [esi + 4]
push ecx
push eax
push dword [esi + 0x1c]
lea eax, [ebp + 0xc]
push eax
call fcn.004384f0
add esp, 0x2c
test al, al
je 0x439146
mov ecx, dword [ebp + 0x20]
cmp byte [ecx + 0xb], 0
js 0x4391b2
xor eax, eax
mov byte [ecx], al
mov byte [ecx + 0xb], al
cmp byte [esi + 3], 0
je 0x439108
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push 0x2d
call dword [eax + 0x1c]
movsx eax, al
mov ecx, dword [ebp + 0x20]
push eax
call fcn.0040af40
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push 0x30
call dword [eax + 0x1c]
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x14]
lea ecx, [edi - 1]
cmp edx, ecx
jae 0x439132
mov ecx, edx
not ecx
add ecx, edi
lea ebx, [edx + ecx]
cmp byte [edx], al
jne 0x439132
inc edx
dec ecx
jne 0x439128
mov edx, ebx
mov dword [esi + 0x98], 2
mov ecx, dword [ebp + 0x20]
push edi
push edx
call fcn.00405f60
lea eax, [ebp + 0x10]
lea ecx, [ebp + 0xc]
push eax
call fcn.00409ce0
mov edi, dword [ebp + 8]
test al, al
je 0x43915f
mov eax, dword [ebp + 0x1c]
or byte [eax], 2
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov ecx, dword [esi + 4]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x439178
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x43919a
mov dword [esi + 0x98], 0
push eax
call dword [esi + 0xc]
mov edi, dword [ebp + 8]
add esp, 4
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
mov eax, dword [ecx]
mov byte [eax], 0
mov dword [ecx + 4], 0
jmp 0x4390ec
Function at 0x43e070
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x452ff4]
mov ecx, dword [0x451c00]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x43e168
mov ecx, 0x452f4c
push 0x44c02a
call fcn.0040ab60
mov ecx, 0x452f58
push 0x44c038
call fcn.0040ab60
mov ecx, 0x452f64
push 0x44c046
call fcn.0040ab60
mov ecx, 0x452f70
push 0x44c056
call fcn.0040ab60
mov ecx, 0x452f7c
push 0x44c06a
call fcn.0040ab60
mov ecx, 0x452f88
push 0x44c07c
call fcn.0040ab60
mov ecx, 0x452f94
push 0x44c08a
call fcn.0040ab60
mov ecx, 0x452fa0
push 0x44c09c
call fcn.0040ab60
mov ecx, 0x452fac
push 0x44c0a4
call fcn.0040ab60
mov ecx, 0x452fb8
push 0x44c0ac
call fcn.0040ab60
mov ecx, 0x452fc4
push 0x44c0b4
call fcn.0040ab60
mov ecx, 0x452fd0
push 0x44c0bc
call fcn.0040ab60
mov ecx, 0x452fdc
push 0x44c0c4
call fcn.0040ab60
mov ecx, 0x452fe8
push 0x44c0cc
call fcn.0040ab60
pop ebp
ret
push 0x452ff4
call fcn.0040bd26
add esp, 4
cmp dword [0x452ff4], 0xffffffff
jne 0x43e094
push 0xa8
push 0
push 0x452f4c
call fcn.0040f850
add esp, 0xc
push 0x43f500
call fcn.0040bf08
add esp, 4
push 0x452ff4
call fcn.0040bd9c
add esp, 4
jmp 0x43e094
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40633c
pop dword [ebp - 8]
mov eax, 0xbd79086b
add eax, 0x42c75ad1
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x220877b0
add dword [ebp - 0x18], 0x2c49cd9b
mov dword [ebp - 0x14], 0x2c903fd9
sub dword [ebp - 0x14], 0xfa5cf394
mov dword [ebp - 0x10], 0xe2b9d54d
sub dword [ebp - 0x10], 0x966d911f
mov dword [ebp - 0xc], 0xe460ef9a
sub dword [ebp - 0xc], 0xe460ef9a
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xec03a556
sub dword [ebp - 0x18], 0x77913c00
mov dword [ebp - 0x14], 0xde184911
sub dword [ebp - 0x14], 0x9cabe79c
mov dword [ebp - 0x10], 0x6754bcb
sub dword [ebp - 0x10], 0xa305df5f
mov dword [ebp - 0xc], 0x6f2136f1
add dword [ebp - 0xc], 0x90dec90f
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x33d3d
push 0
call eax
mov ecx, 0x731bf7e4
sub ecx, 0x731bbb0e
xor esi, esi
add esi, eax
mov edi, 0x171f2314
add edi, 0xe921dcec
add edi, dword [ebp - 8]
mov edx, 0x42472021
add edx, 0xd4a44f8a
mov dword [ebp - 4], 0xe897b178
mov ebx, dword [edi]
xor ebx, edx
xor dword [ebp - 4], ecx
mov dword [esi], ebx
add esi, 4
add edi, 0xe39672c5
add edi, 0x1c698d3f
loop 0x406456
add eax, 0xe62b
xor ebx, ebx
add ebx, eax
add eax, 0x4d7fd30b
add eax, 0xb2802cfa
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x10006f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10006fb8
cmp byte [esi + ebx - 1], 0xa
je 0x10006f8c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10009178], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x10007000
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
lea esi, [ebp - 0x10c]
push ebx
mov ebx, edx
lea edx, [ebp - 0x110]
sub esp, 0x110
mov dword [ebp - 0x110], 0x100
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetComputerNameExA]
sub esp, 0xc
test eax, eax
je 0x100070a8
mov edx, dword [ebp - 0x110]
test ebx, ebx
je 0x10007078
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
lea edx, [eax + 1]
mov dword [ebp - 0x110], edx
cmp edx, dword [edi]
ja 0x10007078
cmp edx, 4
jae 0x10007090
test edx, edx
jne 0x100070b8
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edi], edx
lea esp, [ebp - 0xc]
mov eax, 0x7a
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esi + edx - 4]
shr eax, 2
mov edi, ebx
mov dword [ebx + edx - 4], ecx
mov ecx, eax
xor eax, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x10007069
lea esp, [ebp - 0xc]
mov eax, 0x25f2
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [esi]
mov byte [ebx], al
test dl, 2
je 0x10007067
movzx eax, word [esi + edx - 2]
mov word [ebx + edx - 2], ax
xor eax, eax
jmp 0x10007069

Function at 0x100070d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x20c]
mov esi, edx
lea edx, [ebp - 0x210]
push ebx
mov ebx, ecx
sub esp, 0x214
mov dword [ebp - 0x210], 0x100
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetComputerNameExW]
sub esp, 0xc
test eax, eax
je 0x10007180
mov eax, dword [ebp - 0x210]
test esi, esi
je 0x1000714e
mov eax, dword [ebx]
movzx ecx, word [ebp - 0x20c]
mov dword [ebp - 0x214], eax
test cx, cx
je 0x10007190
mov eax, edi
nop
add eax, 2
cmp word [eax], 0
jne 0x10007130
sub eax, edi
xor edx, edx
sar eax, 1
inc eax
mov dword [ebp - 0x210], eax
cmp eax, dword [ebp - 0x214]
jbe 0x10007164
mov dword [ebx], eax
lea esp, [ebp - 0xc]
mov eax, 0x7a
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, word [edi + edx]
mov word [esi + edx], cx
add edx, 2
test cx, cx
jne 0x10007160
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 0x25f2
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x100071a1
xor edx, edx
mov word [esi], dx
jmp 0x10007170
mov eax, 1
jmp 0x1000714e
Function at 0x51c670
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbf000]
mov dword [edi + 0xcf740], 0xbad22f42
push edi
jmp 0x51c69a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51c6a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51c690
mov eax, 1
add ebx, ebx
jne 0x51c6b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51c6c4
jne 0x51c6e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51c6e3
dec eax
add ebx, ebx
jne 0x51c6d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51c6a8
add ebx, ebx
jne 0x51c6df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51c735
xor ecx, ecx
sub eax, 3
jb 0x51c6fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51c76a
sar eax, 1
mov ebp, eax
jmp 0x51c706
add ebx, ebx
jne 0x51c706
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51c6d4
inc ecx
add ebx, ebx
jne 0x51c714
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51c6d4
add ebx, ebx
jne 0x51c721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51c716
jne 0x51c732
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51c716
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51c754
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51c746
jmp 0x51c696
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51c754
add edi, ecx
jmp 0x51c696
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51c772
cmp byte [edi], 0x11
jne 0x51c772
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 0x51c777
lea edi, [esi + 0x115000]
mov eax, dword [edi]
or eax, eax
je 0x51c7ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1531a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x153324]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51c7a4
mov ecx, edi
jns 0x51c7d3
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 + 0x153328]
or eax, eax
je 0x51c7e9
mov dword [ebx], eax
add ebx, 4
jmp 0x51c7c1
call dword [esi + 0x153338]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x51c820
cmp al, 0xef
ja 0x51c813
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x51c7f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x51c802
mov ebp, dword [esi + 0x15332c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x51c854
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8c
mov eax, dword [0x40300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0xa8c]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8c]
push eax
mov dword [ebp - 0xa8c], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
mov edi, eax
lea eax, [ebp - 0xa38]
push eax
mov dword [ebp - 0xa38], ebx
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x401064
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, str._base
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, bx
jne 0x40107c
sub eax, edx
sar eax, 1
add eax, ecx
lea eax, [eax + eax + 4]
call fcn.00401230
mov edi, esp
mov dword [ebp - 0xa30], edi
call esi
mov edx, edi
movzx ecx, word [eax]
inc eax
mov word [edx], cx
inc eax
inc edx
inc edx
cmp cx, bx
jne 0x4010a1
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x4010b2
mov esi, 0x40211c
mov eax, str._base
movsd dword es:[edi], dword [esi]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4010ca
mov edi, dword [ebp - 0xa30]
sub eax, edx
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
cmp cx, bx
jne 0x4010de
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR90.dll__wsplitpath]
push 0x402120
push str.soffice
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR90.dll__wmakepath]
add esp, 0x28
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0xa8c]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0xa30]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4011b1
push 0xffffffffffffffff
push dword [ebp - 0xa48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xa48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xa44]
call esi
xor eax, eax
jmp 0x4011f2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
push ebx
lea ecx, [ebp - 0xa34]
push ecx
push 0x400
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x10
push ebx
push dword [ebp - 0xa34]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0xa34]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
lea esp, [ebp - 0xa98]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040121c
leave
ret 0x10
Function at 0x46867a
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x468697
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x468688
add dl, dl
jne 0x4686a2
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4686ee
xor eax, eax
add dl, dl
jne 0x4686af
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x46878b
add dl, dl
jne 0x4686be
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4686c9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4686d4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4686df
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4686e9
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x46868e
mov eax, 1
add dl, dl
jne 0x4686fc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x468707
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4686f3
sub eax, 2
jne 0x468736
mov ecx, 1
add dl, dl
jne 0x46871c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x468727
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x468713
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x46868e
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x46874d
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x468758
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x468744
cmp eax, 0x7d00
jae 0x46877b
cmp eax, 0x500
jb 0x468776
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x46868e
cmp eax, 0x7f
ja 0x46877e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x46868e
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4687a7
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x46868e
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x401000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, 0x40988c
mov dword [ebp - 0x2e0], eax
call fcn.0040151c
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x401039
xor eax, eax
jmp 0x40120e
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
jne 0x401032
push 0x44
pop edi
push edi
lea eax, [ebp - 0x344]
push 0
push eax
call fcn.00404a10
mov dword [ebp - 0x344], edi
xor eax, eax
lea edi, [ebp - 0x2f8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2f8]
push eax
xor edi, edi
lea eax, [ebp - 0x344]
push eax
push edi
push edi
push 4
push edi
push edi
push edi
push edi
push dword [ebp - 0x2e0]
call dword [0x409898]
test eax, eax
je 0x401032
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2f4]
mov dword [ebp - 0x2dc], 0x10007
call dword [0x40989c]
test eax, eax
je 0x401032
push dword [esi + 0x34]
push dword [ebp - 0x2f8]
call dword [0x409894]
push 4
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [ebp - 0x2f8]
call dword [0x4098a0]
mov dword [ebp - 0x2e4], eax
cmp eax, edi
je 0x401032
lea ecx, [ebp - 0x2e8]
push ecx
push dword [esi + 0x54]
push ebx
push eax
push dword [ebp - 0x2f8]
call dword [0x4098a4]
test eax, eax
je 0x401032
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
lea eax, [eax + ebx + 0xf8]
mov dword [ebp - 0x2e0], edi
cmp cx, word [esi + 6]
jae 0x401187
lea edi, [eax + 0x14]
lea eax, [ebp - 0x2e8]
push eax
push dword [edi - 4]
mov eax, dword [edi]
add eax, ebx
push eax
mov eax, dword [edi - 8]
add eax, dword [ebp - 0x2e4]
push eax
push dword [ebp - 0x2f8]
call dword [0x4098a4]
lea eax, [ebp - 0x2e8]
push eax
mov eax, dword [edi - 8]
add eax, dword [ebp - 0x2e4]
push 0x40
push dword [edi - 0xc]
push eax
push dword [ebp - 0x2f8]
call dword [0x4098ac]
movzx eax, word [esi + 6]
inc dword [ebp - 0x2e0]
add edi, 0x28
cmp dword [ebp - 0x2e0], eax
jl 0x40112b
lea eax, [ebp - 0x2e8]
push eax
push 4
lea eax, [ebp - 0x2e4]
push eax
mov eax, dword [ebp - 0x238]
add eax, 8
push eax
push dword [ebp - 0x2f8]
call dword [0x4098a4]
test eax, eax
je 0x401032
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2f4]
call dword [0x4098b0]
test eax, eax
je 0x401032
push dword [ebp - 0x2f4]
call dword [0x4098b4]
test eax, eax
je 0x401032
push dword [ebp - 0x2f8]
call dword [0x4098b8]
push dword [ebp - 0x2f4]
call dword [0x4098b8]
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004015cd
leave
ret
Function at 0x40121c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov ebx, 0x15af4dd5
mov dword [ebp - 4], 0x1546
cmp dword [ebp + 0xc], edi
jbe 0x40127b
mov eax, dword [ebp - 4]
add ebx, 0x32ead46a
adc eax, 3
shld eax, ebx, 1
push 0x544
push 0x5454d54d
push eax
add ebx, ebx
push ebx
call fcn.00405840
push 0
push 0x100
mov ebx, eax
mov eax, dword [ebp + 8]
push edx
push ebx
mov dword [ebp - 4], edx
lea esi, [edi + eax]
call fcn.00405840
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x401237
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40136c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0x14
push esi
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp + 8]
mov si, word [edx]
cmp si, word [ecx]
jne 0x4013ad
test si, si
je 0x4013a9
mov si, word [edx + 2]
cmp si, word [ecx + 2]
jne 0x4013ad
add edx, 4
add ecx, 4
test si, si
jne 0x401387
xor ecx, ecx
jmp 0x4013b2
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x40137f
mov eax, dword [eax + 0x10]
pop esi
pop ebp
ret 4

Function at 0x4013be
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x78]
and dword [ebp - 8], 0
push ebx
add eax, ecx
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
push esi
push edi
mov edi, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
add edx, ecx
add edi, ecx
add ebx, ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x401439
mov eax, dword [ebp - 8]
mov esi, dword [edx + eax*4]
mov eax, dword [ebp + 8]
add esi, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
cmp al, byte [esi]
jne 0x401425
test al, al
je 0x401421
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 1]
mov byte [ebp - 1], al
cmp al, byte [esi + 1]
jne 0x401425
add dword [ebp - 0xc], 2
add esi, 2
test al, al
jne 0x4013fb
xor eax, eax
jmp 0x40142a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401442
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x4013ed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 8]
movzx eax, word [ebx + eax*2]
mov eax, dword [edi + eax*4]
add eax, ecx
jmp 0x40143b

Function at 0x4015cd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408004]
jne 0x4015d7
repz ret
jmp fcn.0040177c