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

Disassembly:
push ebp
push esp
pop ebp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x42f4c1
je 0x42f30a
jne 0x42f30a
cmp dword [ebp - 0x40c], 2
mov edx, dword [ebp - 0x194]
call dword [0x697b8184]
mov eax, 0x100772e0
push 0x2bf
mov dword [ebp - 0x40], 0x41ab00
jmp dword [0x106e0218]
je 0x42f5a9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
push 0x42f224
ret
pop esi
je 0x42f3ff
jne 0x42f3ff
cmp edx, dword [edi]
push 0x4c4944
lea ecx, [ebp - 0x94]
mov edx, 0xde1910
mov esi, dword [edi*8 + 0xd2942c]
mov edx, dword [esi + 0x11e8]
sub edi, dword [ebx + 0x1d190be5]
jge 0x42f315
mov byte [0xb70fd51f], al
push es
je 0x42f485
jne 0x42f485
push 0x6978f170
lea ecx, [edi + eax + 0x320]
mov edx, dword [0xde0e60]
cmp eax, dword [0x448220]
push 0x100e6e58
xorps xmm4, xmmword [edi]
xor dword [edx + 0x1f], edx
pop edx
cmp byte [esi + 0xf5d735e], bl
test byte [edi + 0xf000001], ch
test dword [ecx + 0x68000001], ebp
cwde
mov edi, 0xb8a100ec
pop esi
cdq
imul ecx, dword [ebx + 0x5048d], 0x8eb06800
push ecx
add bh, al
inc ebp
clc
nop
sub eax, 0x906800d3
sub dl, byte [eax]
pop ebp
je 0x42f4c0
jne 0x42f4c0
add byte [eax], al
push 0xecbf98
mov eax, dword [0x69995eb8]
mov ecx, dword [ebp + 0x504]
push 0x518eb0
mov dword [ebp - 8], 0xd32d90
push 0x102a6690
add dl, al
pop ebx
mov byte [0x66830f8c], al
add al, byte [eax]
add byte [edi], cl
test byte [edx + 0xfffffff], cl
test dword [edi + edi*8 + 0x358bffff], eax
shr byte [eax + 0xd8b1024], 1
pop eax
mov word [edx + 0x11], ss
mov dword [ebp - 0x254], 0xa8aa94
mov byte [0xcf4910], 0
sahf
dec esp
popfd
or dl, byte [ebp - 0x51]
and bh, byte [edx + 0x9b8d]
add byte [eax], al
cmp esi, edx
push 0x42f33d
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
push 0x42f43e
ret
pop ebp
push 0x42f51b
ret
add esi, 2
dec ecx
jne 0x42f37a
jmp 0x42f5a1
lea esi, [esi + eax*2]
jmp 0x42f45a
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
je 0x42f568
jne 0x42f568
mov edx, dword [0xd2acc0]
push 0xbc9a98
mov dword [0x42e5b8], eax
mov eax, dword [0x1153d5d0]
mov eax, 0x101cab2b
adc dword [edi + 4], eax
movdqa xmm2, xmm1
mov dword [eax + 0x4ca4], 0x9c4
push 0x783200
mov dword [esp + 0xdc], 0x1028d9ac
test bl, 9
mov ebx, dword [edx]
sbb byte [eax + 0x14], cl
mov eax, ebx
mov al, 0xc3
push 0x42f3b6
ret
mov esi, eax
test esi, esi
je 0x42f246
jne 0x42f246
push 0x1142a694
mov dword [ebx + 0x24c], eax
mov esi, 0x447530
cmpsb byte [esi], byte es:[edi]
inc edx
adc dword [ecx + 0x24c83], ecx
add byte [esi + 0x447530], bh
mov dword [esi], 0xa720dc
mov ecx, dword [ebp - 0x1098]
push 0xb2c4b8
loopne 0x42f57a
invalid
cmp esi, edx
jb 0x42f3b6
xor eax, eax
jmp 0x42f29c
Function at 0x45ee80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476398
mov eax, dword fs:[0]
push eax
je 0x45f5f4
jne 0x45f5f4
push 0x1123
push 0xbdd77c
sub esi, dword [ebp - 4]
outsb dx, byte [esi]
adc byte [edx + eax - 0x29d8fd90], ch
arpl word [eax], sp
sub bh, al
push esi
je 0x4602fa
jne 0x4602fa
mov dword [0xcbd9e4], ebx
cmp ebx, dword [0x105caa64]
mov dl, 0x2c
or dword [esi + 0x4d4], 1
push 0xa47c58
mov dword [edx], 0x1004e9ac
add eax, dword [ebp + 0x18]
cmp dword [edi + 4], edx
push 0xbe97e8
mov ecx, 0xa6ecdc
push 0x1148bda4
mov eax, dword [0xd222c8]
insd dword es:[edi], dx
iretd
sub esp, 0x28
je 0x45ffe8
jne 0x45ffe8
push 0x697ea69c
mov eax, 0x4ee5b0
push 0xa4fa94
jmp dword [0x4241fc]
push ebx
push 0x460825
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
push 0x45f398
ret
Function at 0x46bccd
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0
call dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
pop esi
push esi
call fcn.00470160
push esi
call fcn.0046d31d
push esi
call fcn.004702ae
push esi
call fcn.0047311a
push esi
call fcn.00473134
push esi
call fcn.0046f17b
add esp, 0x18
pop esi
jmp 0x46c8ed
push esi
push edi
push 0x4016fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x402604
push edi
call esi
xor eax, dword [0x52ffd8]
push 0x402610
push edi
mov dword [0x536860], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402618
push edi
mov dword [0x536864], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402624
push edi
mov dword [0x536868], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402630
push edi
mov dword [0x53686c], eax
call esi
xor eax, dword [0x52ffd8]
push 0x40264c
push edi
mov dword [0x536870], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402660
push edi
mov dword [0x536874], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402678
push edi
mov dword [0x536878], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402690
push edi
mov dword [0x53687c], eax
call esi
xor eax, dword [0x52ffd8]
push 0x4026a4
push edi
mov dword [0x536880], eax
call esi
xor eax, dword [0x52ffd8]
push 0x4026c4
push edi
mov dword [0x536884], eax
call esi
xor eax, dword [0x52ffd8]
push 0x4026dc
push edi
mov dword [0x536888], eax
call esi
xor eax, dword [0x52ffd8]
push 0x4026f4
push edi
mov dword [0x53688c], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402708
push edi
mov dword [0x536890], eax
call esi
xor eax, dword [0x52ffd8]
push 0x40271c
push edi
mov dword [0x536894], eax
call esi
xor eax, dword [0x52ffd8]
mov dword [0x536898], eax
push 0x402738
push edi
call esi
xor eax, dword [0x52ffd8]
push 0x402758
push edi
mov dword [0x53689c], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402774
push edi
mov dword [0x5368a0], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402794
push edi
mov dword [0x5368a4], eax
call esi
xor eax, dword [0x52ffd8]
push 0x4027a8
push edi
mov dword [0x5368a8], eax
call esi
xor eax, dword [0x52ffd8]
push 0x4027c4
push edi
mov dword [0x5368ac], eax
call esi
xor eax, dword [0x52ffd8]
push 0x4027d8
push edi
mov dword [0x5368b4], eax
call esi
xor eax, dword [0x52ffd8]
push 0x4027e8
push edi
mov dword [0x5368b0], eax
call esi
xor eax, dword [0x52ffd8]
push 0x4027f8
push edi
mov dword [0x5368b8], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402808
push edi
mov dword [0x5368bc], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402818
push edi
mov dword [0x5368c0], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402834
push edi
mov dword [0x5368c4], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402848
push edi
mov dword [0x5368c8], eax
call esi
xor eax, dword [0x52ffd8]
push 0x402858
push edi
mov dword [0x5368cc], eax
call esi
xor eax, dword [0x52ffd8]
pop edi
mov dword [0x5368d0], eax
pop esi
ret
Function at 0x46bef5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x52ffd8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0046bed1
push eax
pop edi
pop ecx
test edi, edi
je 0x46c097
push ebx
push 3
call fcn.0046c69b
pop ecx
cmp eax, 1
je 0x46c03f
push 3
call fcn.0046c69b
pop ecx
or eax, eax
jne 0x46bf49
cmp dword [0x5310d0], 1
je 0x46c03f
cmp esi, 0xfc
je 0x46c096
push 0x402544
push 0x314
push 0x5310d8
call fcn.004712ae
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x46c0a5
push 0x104
push 0x53110a
push ebx
mov word [0x531312], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x2fb
test eax, eax
jne 0x46bfb1
push 0x402578
push esi
push 0x53110a
call fcn.004712ae
add esp, 0xc
or eax, eax
jne 0x46c0a5
push 0x53110a
call fcn.00473447
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x46bff7
push 0x53110a
call fcn.00473447
lea ecx, [eax*2 + 0x531094]
mov eax, ecx
sub eax, 0x53110a
push 3
sar eax, 1
push 0x4025a8
sub esi, eax
push esi
push ecx
call fcn.00473460
add esp, 0x14
or eax, eax
jne 0x46c0a5
push 0x4025b0
push 0x314
mov esi, 0x5310d8
push esi
call fcn.004733db
add esp, 0xc
or eax, eax
jne 0x46c0a5
push edi
push 0x314
push esi
call fcn.004733db
add esp, 0xc
test eax, eax
jne 0x46c0a5
push 0x12010
push 0x4025b8
push esi
call fcn.0047351e
add esp, 0xc
jmp 0x46c096
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
or esi, esi
je 0x46c096
cmp esi, 0xffffffff
je 0x46c096
xor ebx, ebx
mov ecx, ebx
mov al, byte [edi + ecx*2]
mov byte [ebp + ecx - 0x1f8], al
cmp word [edi + ecx*2], bx
je 0x46c06f
inc ecx
cmp ecx, 0x1f4
jb 0x46c056
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00473350
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00468889
leave
ret
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046d365
int3

Function at 0x46c7b5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
pop edi
or edi, edi
je 0x46c80d
push ebx
sub ebx, ebx
push esi
push edi
pop esi
cmp word [edi], bx
je 0x46c7e1
add esi, 2
cmp word [esi], bx
jne 0x46c7d1
add esi, 2
cmp word [esi], bx
jne 0x46c7d1
sub esi, edi
add esi, 2
push esi
call fcn.004701b7
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x46c802
push esi
push edi
push eax
call fcn.004688a0
mov ebx, dword [ebp - 4]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
push ebx
pop eax
pop ebx
pop edi
leave
ret
Function at 0x46ce90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
push ebx
mov ecx, dword [eax + 0x3c]
add ecx, eax
push esi
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x46cecc
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x46cec4
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x46cece
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x46ceb4
sub eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x46cfa0
Capabilities:
Parse pe header

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x46cfb4
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x46cfcf
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x47351e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x24
mov eax, dword [0x52ffd8]
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
push eax
pop esi
mov dword [ebp - 0x18], esi
call fcn.0046c8af
mov dword [ebp - 0x14], eax
cmp dword [0x531ef8], edi
jne 0x47360f
push 0x800
push edi
push 0x402d08
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
or esi, esi
jne 0x47359c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4736ef
push 0x402d08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
pop esi
test esi, esi
je 0x4736ef
push 0x402d20
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
or eax, eax
je 0x4736ef
push eax
call ebx
push 0x402d2c
push esi
mov dword [0x531ef8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402d3c
push esi
mov dword [0x531efc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402d50
push esi
mov dword [0x531f00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x531f08], eax
test eax, eax
je 0x47360c
push 0x402d6c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x531f04], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
or eax, eax
je 0x473634
mov eax, dword [ebp - 0x1c]
or eax, eax
je 0x473627
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x473649
push 4
pop eax
jmp 0x4736f1
cmp dword [ebp - 0x14], edi
je 0x473649
push dword [0x531ef8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x47362e
mov eax, dword [0x531f04]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4736a7
cmp dword [0x531f08], esi
je 0x4736a7
push eax
call ebx
push dword [0x531f08]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4736a7
test eax, eax
je 0x4736a7
call ecx
test eax, eax
je 0x47369c
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 0x47369c
test byte [ebp - 8], 1
jne 0x4736a7
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4736d7
mov eax, dword [0x531efc]
cmp eax, esi
je 0x4736d4
push eax
call ebx
test eax, eax
je 0x4736d4
call eax
mov edi, eax
test edi, edi
je 0x4736d4
mov eax, dword [0x531f00]
cmp eax, esi
je 0x4736d4
push eax
call ebx
test eax, eax
je 0x4736d4
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x531ef8]
call ebx
or eax, eax
je 0x4736ef
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4736f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468889
leave
ret
Function at 0x475880
Capabilities:
Clear file content

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
sub esi, esi
push 1
push esi
push esi
push edi
push esi
pop ebx
mov dword [ebp - 8], esi
call fcn.004728fb
mov ecx, edx
mov dword [ebp - 0x18], eax
and eax, ecx
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp eax, 0xffffffff
je 0x475908
push 2
push esi
push esi
push edi
call fcn.004728fb
push eax
pop ecx
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x475908
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x47599f
jg 0x4758e2
or esi, esi
je 0x47599f
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x475914
call fcn.0046d3c4
mov dword [eax], 0xc
call fcn.0046d3c4
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push edi
call fcn.00475a5e
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jl 0x47593c
jg 0x475935
cmp esi, 0x1000
jb 0x47593c
mov eax, 0x1000
jmp 0x47593e
push esi
pop eax
push eax
push dword [ebp - 0xc]
push edi
call fcn.00471d08
add esp, 0xc
cmp eax, 0xffffffff
je 0x475965
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x475980
jg 0x475927
or esi, esi
je 0x475980
jmp 0x475927
call fcn.0046d390
cmp dword [eax], 5
jne 0x47597a
call fcn.0046d3c4
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.00475a5e
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x475a05
test eax, eax
jg 0x475a11
jl 0x4759a9
test esi, esi
jae 0x475a11
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004728fb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x475908
push edi
call fcn.0047548a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov ebx, eax
mov eax, edx
push ebx
pop ecx
and ecx, eax
mov dword [ebp - 8], eax
cmp ecx, 0xffffffff
jne 0x475a11
call fcn.0046d3c4
mov dword [eax], 0xd
call fcn.0046d390
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x475908
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.004728fb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x475908
sub eax, eax
jmp 0x47590f
Function at 0x401050
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [edx + 0x3c]
add ecx, edx
mov edx, 0x10b
movzx eax, word [ecx + 0x18]
push edi
cmp ax, dx
je 0x401071
mov edx, 0x20b
cmp ax, dx
jne 0x4010cc
movzx eax, word [ecx + 0x14]
lea edi, [ecx + 0x18]
add edi, eax
movzx eax, word [ecx + 6]
cmp esi, dword [edi + 0x14]
jae 0x401088
pop edi
mov eax, esi
pop esi
ret
push ebx
movzx ebx, ax
xor ecx, ecx
test ebx, ebx
jle 0x4010b1
xor eax, eax
lea eax, [eax + eax*4]
mov edx, dword [edi + eax*8 + 0xc]
cmp esi, edx
jb 0x4010a9
mov eax, dword [edi + eax*8 + 0x10]
add eax, edx
cmp esi, eax
jb 0x4010b7
inc ecx
movzx eax, cx
cmp eax, ebx
jl 0x401094
pop ebx
pop edi
xor eax, eax
pop esi
ret
movzx eax, cx
pop ebx
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x14]
sub ecx, dword [edi + eax*8 + 0xc]
pop edi
lea eax, [esi + ecx]
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x4016c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push str.kernel32.dll
call dword [0x41e57c]
push str.ws2_32.dll
mov dword [0x41e544], eax
call dword [0x41e57c]
push str.Advapi32.dll
mov dword [0x41e534], eax
call dword [0x41e57c]
push str.ntdll.dll
mov dword [0x41e530], eax
call dword [0x41e57c]
push str.Rstrtmgr.dll
mov dword [0x41e524], eax
call dword [0x41e57c]
push str.Ole32.dll
mov dword [0x41e528], eax
call dword [0x41e57c]
push str.OleAut32.dll
mov dword [0x41e540], eax
call dword [0x41e57c]
push str.Netapi32.dll
mov dword [0x41e538], eax
call dword [0x41e57c]
push str.Iphlpapi.dll
mov dword [0x41e550], eax
call dword [0x41e57c]
push str.Shlwapi.dll
mov dword [0x41e54c], eax
call dword [0x41e57c]
push str.Shell32.dll
mov dword [0x41e52c], eax
call dword [0x41e57c]
mov ecx, dword [0x41e524]
mov dword [0x41e548], eax
test ecx, ecx
je 0x40177f
call fcn.00401130
mov ecx, dword [0x41e544]
test ecx, ecx
je 0x40178e
call fcn.00401130
mov ecx, dword [0x41e534]
test ecx, ecx
je 0x40179d
call fcn.00401130
mov ecx, dword [0x41e530]
test ecx, ecx
je 0x4017ac
call fcn.00401130
mov ecx, dword [0x41e528]
test ecx, ecx
je 0x4017c5
mov dword [0x41e53c], 1
call fcn.00401130
mov ecx, dword [0x41e540]
test ecx, ecx
je 0x4017da
call fcn.00401130
mov ecx, dword [0x41e540]
cmp dword [0x41e538], 0
je 0x4017e8
call fcn.00401130
mov ecx, dword [0x41e550]
test ecx, ecx
je 0x4017f7
call fcn.00401130
mov ecx, dword [0x41e54c]
test ecx, ecx
je 0x401806
call fcn.00401130
mov ecx, dword [0x41e52c]
test ecx, ecx
je 0x401815
call fcn.00401130
mov ecx, dword [0x41e548]
test ecx, ecx
jne fcn.00401130
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, edx
mov edx, ecx
push edi
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], esi
mov ebx, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
mov dword [ebp - 0x10], eax
mov eax, esi
shr eax, 0x10
add ebx, edx
mov dword [ebp - 8], edx
test eax, eax
je 0x401a52
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
add esi, edx
mov dword [ebp - 4], eax
cmp dword [ebx + 0x18], edi
jbe 0x401a52
mov ecx, dword [esi]
add ecx, edx
xor edx, edx
cmp byte [ecx], dl
je 0x401a37
lea ebx, [ebx]
inc edx
cmp byte [edx + ecx], 0
jne 0x401a30
push ecx
call fcn.00402bd0
mov edx, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x401a64
add dword [ebp - 4], 2
inc edi
add esi, 4
cmp edi, dword [ebx + 0x18]
jb 0x401a20
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + edx]
add ecx, edx
cmp ecx, ebx
jbe 0x401a89
mov eax, ecx
sub eax, ebx
cmp eax, dword [ebp - 0x10]
jae 0x401a89
call fcn.004018e0
mov ecx, eax
mov eax, dword [ebp + 8]
pop edi
add ecx, 2
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401aa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x41b050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
push esi
mov eax, dword [eax + 0xc]
push edi
mov edi, dword [eax + 0x10]
mov esi, edi
mov esi, dword [esi]
cmp dword [esi + 0x18], 0
je 0x401b10
mov edx, dword [esi + 0x30]
xor eax, eax
cmp word [edx], ax
je 0x401aec
cmp eax, 0x3f
jae 0x401ae7
mov cl, byte [edx]
add edx, 2
mov byte [ebp + eax - 0x44], cl
inc eax
cmp word [edx], 0
jne 0x401ad2
cmp eax, 0x40
jae 0x401b27
xor edx, edx
mov byte [ebp + eax - 0x44], 0
cmp byte [ebp - 0x44], dl
je 0x401b00
inc edx
cmp byte [ebp + edx - 0x44], 0
jne 0x401af8
push ecx
lea ecx, [ebp - 0x44]
call fcn.00402bd0
cmp eax, 0x240dfbc0
je 0x401b14
cmp edi, esi
jne 0x401ac0
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x18]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ae85
mov esp, ebp
pop ebp
ret
call fcn.0040b815
int3

Function at 0x402bd0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x41b050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
push edi
mov edx, 0x40
lea eax, [ebp - 0x44]
lea ecx, [ecx]
mov byte [eax], 0
inc eax
dec edx
jne 0x402bf0
mov edi, esi
shr edi, 2
lea edx, [ebp - 0x44]
test edi, edi
je 0x402c10
mov eax, dword [ecx]
mov dword [edx], eax
add ecx, 4
add edx, 4
dec edi
jne 0x402c03
mov edi, esi
and edi, 3
je 0x402c2b
sub edx, ecx
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
dec edi
jne 0x402c20
xor ecx, ecx
test esi, esi
jle 0x402c48
mov al, byte [ebp + ecx - 0x44]
cmp al, 0x41
jl 0x402c43
cmp al, 0x5a
jg 0x402c43
add al, 0x20
mov byte [ebp + ecx - 0x44], al
inc ecx
cmp ecx, esi
jl 0x402c31
mov ebx, esi
mov dword [ebp - 0x48], ebx
lea edx, [ebp - 0x44]
mov edi, 0x5b2d
cmp esi, 4
jl 0x402c96
shr ebx, 2
mov eax, ebx
neg eax
lea esi, [esi + eax*4]
jmp 0x402c70
mov eax, dword [edx]
imul edi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor edi, ecx
add edx, 4
dec ebx
jne 0x402c70
mov ebx, dword [ebp - 0x48]
xor ecx, ecx
dec esi
je 0x402cb1
dec esi
je 0x402ca8
dec esi
jne 0x402cb6
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
imul ebx, ebx, 0x5bd1e995
imul edi, edi, 0x5bd1e995
mov edx, ecx
shr edx, 0x18
xor edx, ecx
imul edx, edx, 0x5bd1e995
mov eax, ebx
shr eax, 0x18
xor eax, ebx
xor edx, edi
imul eax, eax, 0x5bd1e995
imul edx, edx, 0x5bd1e995
xor edx, eax
mov ecx, edx
shr ecx, 0xd
xor ecx, edx
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ae85
mov esp, ebp
pop ebp
ret 4