joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ad10
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x40ad18
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x40b3ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41eb54
mov edx, 0x40b3d0
call fcn.00403780
call fcn.0040825c
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
mov ecx, 0x40b3f4
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x15c]
call fcn.00403aa4
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 8], eax
mov eax, 0x41eb54
mov edx, 0x40b400
call fcn.00403780
cmp dword [ebp - 8], 0xffffffff
je 0x40b360
Function at 0x40b8f9
Capabilities:
Enumerate network shares

Disassembly:
add byte [eax], al
add byte [ebx + 0x5653f4c4], al
push edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0xc], 2
ja 0x40b94b
cmp dword [ebp + 0xc], 2
jne 0x40bb77
bound eax, qword [edx]
add byte [eax], al
call 0x371529
mov esi, dword [eax + 0xa0]
add esi, edi
push esi
push edi
call 0x371529
mov eax, dword [eax + 0x9c]
call eax
add esp, 8
test eax, eax
jle 0x40bb77
push esi
push edi
call fcn.0040b8c9
add esp, 8
jmp 0x40bb77
sub al, 2
add byte [eax], al
add dword [eax], eax
add byte [ecx + 0x41eb7c], ah

Function at 0x40b9ac
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40bd11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41eb54
mov edx, 0x40bd24
call fcn.00403780
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x13
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jns 0x40ba02
call fcn.00402f14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40bcf6
mov eax, 0x41eb54
mov edx, 0x40bd78
call fcn.00403780
mov dword [ebp - 0x10], 0x7e0
mov eax, dword [ebp - 0x10]
call fcn.004024d0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00402bd8
mov dword [ebp - 0xc], 0x3f
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
jns 0x40ba62
call fcn.00402f14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40ba78
cmp dword [ebp - 0x18], 0xea
jne 0x40bcb1
mov eax, dword [ebp - 0xc]
sub eax, 1
jae 0x40ba85
call fcn.00402f1c
test eax, eax
jns 0x40ba8e
call fcn.00402f14
test eax, eax
jl 0x40ba3d
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40baaa
call fcn.00402f14
imul eax, eax, 4
jno 0x40bab4
call fcn.00402f1c
mov edx, dword [ebp - 0x1c]
test byte [edx + eax*8 + 0xc], 2
je 0x40bae0
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40bacb
call fcn.00402f14
imul eax, eax, 4
jno 0x40bad5
call fcn.00402f1c
mov edx, dword [ebp - 0x1c]
lea eax, [edx + eax*8]
call fcn.0040b9ac
mov eax, dword [ebp - 0x14]
cmp eax, 0x3e
jbe 0x40baed
call fcn.00402f14
imul eax, eax, 4
invalid
Function at 0x40d3dc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x41eb54
mov edx, 0x40d474
call fcn.00403780
push 0
push 0
mov eax, dword [0x41edd4]
call fcn.00403aa4
push eax
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
mov eax, 0x41eb54
mov edx, 0x40d4ac
call fcn.00403780
push 0
push 0
mov eax, dword [0x41edd8]
call fcn.00403aa4
push eax
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
mov eax, 0x41eb54
mov edx, 0x40d534
call fcn.00403780
push 0
push 0
mov eax, dword [0x41eddc]
call fcn.00403aa4
push eax
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
mov eax, 0x41eb54
mov edx, 0x40d580
call fcn.00403780
pop ebp
ret
Function at 0x40f4a8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x40f711
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0040272c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0040520c
mov edx, dword [ebp - 0x10]
mov eax, 0x41eb2c
call fcn.00403780
mov eax, 0x41eb54
mov edx, 0x40f724
call fcn.00403780
cmp byte [0x41eb95], 0
jne 0x40f51a
mov eax, dword [0x41eb2c]
push eax
mov ecx, dword [0x41ecd4]
mov edx, dword [0x41ed00]
mov eax, 0x80000002
call fcn.00406d68
mov eax, 0x41eb54
mov edx, 0x40f7c8
call fcn.00403780
cmp byte [0x41eb95], 0
je 0x40f53c
call fcn.0040fcd8
jmp 0x40f6f6
mov eax, 0x41eb54
mov edx, 0x40f838
call fcn.00403780
xor eax, eax
mov dword [ebp - 4], eax
push 0
mov eax, dword [0x41ee08]
call fcn.00403aa4
push eax
call sub.user32.dll_FindWindowA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40f577
push 0x3e8
call sub.kernel32.dll_Sleep
jmp 0x40f550
mov eax, 0x41eb54
mov edx, 0x40f8d0
call fcn.00403780
push 0xea60
call sub.kernel32.dll_Sleep
push 0
push 0x40f94c
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_FindWindowExA
mov dword [ebp - 4], eax
mov eax, dword [0x41ece8]
call fcn.00403aa4
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
mov eax, 0x41eb54
mov edx, 0x40f95c
call fcn.00403780
cmp dword [ebp - 8], 0
jne 0x40f5e0
mov eax, dword [0x41ecf0]
call fcn.00403aa4
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40f6be
mov eax, 0x41eb54
mov edx, 0x40fa0c
call fcn.00403780
mov eax, dword [0x41ee0c]
call fcn.00403aa4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f6be
call dword [ebp - 0xc]
mov eax, 0x41eb54
mov edx, 0x40fa38
call fcn.00403780
push 0xbb8
call sub.kernel32.dll_Sleep
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SendMessageA
mov eax, 0x41eb54
mov edx, 0x40fab0
call fcn.00403780
push 0x1f4
call sub.kernel32.dll_Sleep
push 0
push 0xd
push 0x101
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SendMessageA
mov eax, 0x41eb54
mov edx, 0x40fb00
call fcn.00403780
push 0xc8
call sub.kernel32.dll_Sleep
mov eax, 0x40fbc0
call fcn.00419614
mov eax, 0x41eb54
mov edx, 0x40fbd0
call fcn.00403780
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, 0x41eb54
mov edx, 0x40fc94
call fcn.00403780
mov eax, dword [0x41ecfc]
call fcn.00403aa4
mov edx, eax
mov eax, 0x41eba8
mov ecx, 0xbb8
call fcn.00406a50
test al, al
je 0x40f6f6
call fcn.0040fcd8
mov eax, 0x41eb54
mov edx, 0x40fcb4
call fcn.00403780
call fcn.00412b18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f718
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403750
ret
Function at 0x412764
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x41289b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41eb54
mov edx, 0x4128b4
call fcn.00403780
cmp dword [0x41eb9c], 0
jne 0x4127a5
call fcn.00412690
push 2
push 0
push 0
mov eax, dword [0x41eb9c]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp eax, 0xffffffff
jne 0x4127c0
call fcn.00412690
mov eax, 0x41eb54
mov edx, 0x4128e0
call fcn.00403780
lea edx, [ebp - 0xc]
mov al, byte [0x41eb96]
call fcn.00405288
push dword [ebp - 0xc]
push 0x4129b0
push dword [ebp - 4]
push 0x4129bc
lea eax, [ebp - 4]
cld
mov edx, 4
call fcn.00403964
mov eax, 0x41eb54
mov edx, 0x4129c8
call fcn.00403780
mov byte [0x41eb96], 0
mov eax, 0x41eb54
mov edx, 0x412a80
call fcn.00403780
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004038a4
test eax, eax
jns 0x412835
call fcn.00402f14
push eax
lea eax, [ebp - 4]
call fcn.00403af4
mov edx, 1
dec edx
test eax, eax
je 0x41284d
cmp edx, dword [eax - 4]
jb 0x412852
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [0x41eb9c]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x41286e
mov dword [ebp - 8], 0xffffffff
mov eax, 0x41eb54
mov edx, 0x412af8
call fcn.00403780
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4128a2
lea eax, [ebp - 0xc]
call fcn.0040372c
lea eax, [ebp - 4]
call fcn.0040372c
ret
Function at 0x417dfc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x41eb94], 0
jne 0x417e3e
push 0x417e44
push 0
call sub.user32.dll_FindWindowA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x417e2d
push 0x417e5c
push 0
call sub.user32.dll_FindWindowA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x417e3e
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x417e74
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x417e7c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x418b53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41eb54
mov edx, 0x418b68
call fcn.00403780
lea eax, [ebp - 0xc]
mov ecx, 0x418bbc
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0xc]
call fcn.00403aa4
push eax
call sub.kernel32.dll_GetDriveTypeA
add eax, 0xfffffffe
sub eax, 3
jb 0x417eda
sub eax, 1
jne 0x418b38
push dword [ebp - 4]
push dword [0x41ed48]
push dword [0x41ed58]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0040520c
mov eax, dword [ebp - 8]
call fcn.00405764
test al, al
jne 0x417f47
push 1
push 0x96
push 0x7a120
push dword [ebp - 4]
jne 0x417f18

Function at 0x41957a
Capabilities:
Log keystrokes

Disassembly:
add byte [eax], al
call 0x40270c
lea edx, [ebp - 0xc4]
mov eax, 0x41b108
call fcn.00405114
mov edx, dword [ebp - 0xc4]
mov eax, 0x41ed70
call 0x40270c
lea edx, [ebp - 0xc8]
mov eax, 0x2e18

Function at 0x41957c
Capabilities:
Log keystrokes

Disassembly:
add byte [eax], al
call 0x40270c
lea edx, [ebp - 0xc4]
mov eax, 0x41b108
call fcn.00405114
mov edx, dword [ebp - 0xc4]
mov eax, 0x41ed70
call 0x40270c
lea edx, [ebp - 0xc8]
mov eax, 0x2e18

Function at 0x4195ac
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
and eax, 0xff
bt dword [0x41d260], eax
jae 0x4195e5
xor eax, eax
mov al, byte [ebp - 2]
add eax, 1
jno 0x4195d6
call fcn.00402f1c
cmp eax, 0xff
jbe 0x4195e2
call fcn.00402f14
mov byte [ebp - 2], al
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
push 0
xor eax, eax
mov al, byte [ebp - 1]
push eax
call sub.user32.dll_MapVirtualKeyA
cmp eax, 0xff
jbe 0x419606
call fcn.00402f14
push eax
mov al, byte [ebp - 1]
push eax
call sub.user32.dll_keybd_event
pop ecx
pop ebp
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
cmp dword [ebx + 0x466817c1], eax
outsb dx, byte [esi]
inc eax
add byte [ecx - 0x12], dl
adc eax, 0x2ac180
mov eax, dword [0x4102ac]
add esp, 0xc
test dword [ebx], ecx
je 0x401787
push eax
push str.Total_of__d_requests_completed_n
call dword [0x404364]
add esp, 8
push 1
call dword [sym.imp.MSVCRT.dll_exit]
and byte [ebp - 0x75], dl
jno 0x1240d084
add byte [ecx + 0x410266], ah
test eax, eax
js 0x4017ee
retf 0x1d41
lea ebx, [ebx + eax]
inc ecx
add byte [edx - 0x46], dl
cwde
mov bh, 0x40
adc edi, dword [eax - 0x2a]
mov eax, dword [0xe8410241]
add esp, 0x66
test eax, eax
outsb dx, byte [esi]
adc eax, 0xf02cca1
ret

Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
adc dword [edi - 0x44], 0x5f
pop esi
pop ebx
mov ebx, dword [ebx]
sti
ret
push ebp
mov ebp, esp
sub esp, 0x78
cmp ecx, dword [ebx - 0x7205f38b]
inc ebp
mov byte [edi - 0x17a9af52], dl
mov dword [edi], eax
jg 0x401e57
mov ecx, dword [ebp + 8]
mov word [sym.imp.MSVCRT.dll__iob], ss
push eax
push ecx
add dword [esi], 0x40
mov ebp, dword [edx + edi*8 - 0xadffc0]
adc eax, 0x40c1a3
inc byte [ebx]
add bh, byte [edi]
inc esp
add esp, 0x14
in eax, dx
sal byte [edi + ecx + 0x50], 0x68
push esp
rol byte [eax - 6], cl
call dword [0x405164]
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
wait
nop
nop
and byte [eax - 0x6f6f6f5a], dl
jge 0x401e2f
nop
Function at 0x4c18f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x72000]
push edi
jmp 0x4c190a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c1911
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c1900
mov eax, 1
add ebx, ebx
jne 0x4c1923
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c1934
jne 0x4c1953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c1953
dec eax
add ebx, ebx
jne 0x4c1940
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c1918
add ebx, ebx
jne 0x4c194f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c19a5
xor ecx, ecx
sub eax, 3
jb 0x4c196b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c19da
sar eax, 1
mov ebp, eax
jmp 0x4c1976
add ebx, ebx
jne 0x4c1976
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c1944
inc ecx
add ebx, ebx
jne 0x4c1984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c1944
add ebx, ebx
jne 0x4c1991
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c1986
jne 0x4c19a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c1986
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c19c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c19b6
jmp 0x4c1906
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c19c4
add edi, ecx
jmp 0x4c1906
pop esi
mov edi, esi
mov ecx, 0x1af1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c19e2
cmp byte [edi], 0xc
jne 0x4c19e2
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 0x4c19e7
lea edi, [esi + 0xbe000]
mov eax, dword [edi]
or eax, eax
je 0x4c1a5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc2c24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc2d3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c1a14
mov ecx, edi
jns 0x4c1a43
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 + 0xc2d40]
or eax, eax
je 0x4c1a59
mov dword [ebx], eax
add ebx, 4
jmp 0x4c1a31
call dword [esi + 0xc2d50]
mov ebp, dword [esi + 0xc2d44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4c1a93
sub esp, 0xffffff80
jmp 0x409d08
Function at 0x4018c1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x2c
cmp dword [0x40bd10], eax
jne 0x401915
push eax
push 0x2c
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [0x413c0c]
test eax, eax
jl 0x401915
xor edx, edx
mov eax, 0x40bd10
div dword [ebp - 0x14]
imul eax, dword [ebp - 0x14]
jmp 0x401909
cmp word [eax], 0x5a4d
jne 0x401906
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x401910
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
ja 0x4018f3
jmp 0x401915
mov dword [0x40bd10], eax
mov eax, dword [0x40bd10]
leave
ret

Function at 0x40442c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
test eax, eax
jne 0x404469
xor eax, eax
leave
ret
add eax, 0x2c
push 1
push eax
call fcn.00405e2c
cmp dword [ebp + 8], eax
mov eax, dword [ebp - 4]
pop ecx
pop ecx
je 0x404471
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp dword [eax + 0x18], 0
jne 0x40444f
jmp 0x40444b
mov eax, dword [eax + 0x18]
leave
ret

Function at 0x404476
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x34
test ecx, ecx
push ebx
push esi
push edi
je 0x404539
cmp word [ecx], 0x5a4d
jne 0x404539
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404539
mov esi, dword [eax + 0x78]
test esi, esi
je 0x404539
mov eax, dword [eax + 0x7c]
and dword [ebp - 4], 0
add esi, ecx
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x1c]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x24]
add eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x18]
add edi, ecx
add ebx, ecx
test eax, eax
mov dword [ebp - 0x10], eax
jbe 0x404539
mov eax, dword [edi]
add eax, ecx
mov edx, dword [eax]
cmp edx, dword [ebp + 0xc]
jne 0x40452b
push 0
push 0
push eax
call fcn.00406272
add esp, 0xc
cmp eax, dword [ebp + 0x10]
jne 0x404528
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
cmp eax, esi
mov dword [ebp - 0x14], eax
jb 0x40453b
cmp eax, dword [ebp - 0xc]
ja 0x40453b
push 0x2e
push 0x1c
push eax
call fcn.00405e62
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
ja 0x404540
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [ebp - 0x10]
jb 0x4044db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
inc esi
push esi
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.00405853
push 4
lea eax, [ebp + esi - 0x34]
push 0x409418
push eax
call fcn.00405853
add esi, edi
xor edi, edi
push edi
push edi
push esi
call fcn.00406272
add esp, 0x24
push eax
push dword [esi]
lea eax, [ebp - 0x34]
push 1
push edi
push eax
call fcn.00406272
push eax
call fcn.0040442c
add esp, 0x10
push eax
call fcn.00404476
add esp, 0xc
jmp 0x40453b
Function at 0x407010
Capabilities:
Enumerate pe sections

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

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408962
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edi
mov edx, edx
call fcn.0040898e
inc eax
add edx, edx
xor dword [ebx], edi
mov edx, 0xe60fdcf9
inc ebx
dec eax
mov eax, 0x1717a40c
cmp ebx, ecx
jne fcn.00408962
ret
Function at 0x4014a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x496004]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
xor edx, edx
nop dword [eax]
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x498ac0], eax
inc edx
cmp edx, 0x100
jb 0x4014c0
mov eax, 0x498ac4
mov esi, 0x1c0
mov edx, dword [eax - 4]
lea eax, [eax + 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x498ac0]
mov dword [eax + 0x3ec], edx
mov edx, dword [eax - 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x498ac0]
mov dword [eax + 0x3f0], edx
mov edx, dword [eax - 0xc]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x498ac0]
mov dword [eax + 0x3f4], edx
mov edx, dword [eax - 8]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x498ac0]
mov dword [eax + 0x3f8], edx
sub esi, 1
jne 0x401564
lea ecx, [esp + 0xc]
mov dword [0x498ab0], 0x4016d0
call fcn.00402390
test eax, eax
je 0x4016af
mov ecx, dword [esp + 0x1c]
mov edx, ecx
shr edx, 8
mov eax, ecx
mov edi, edx
and eax, 0xf00
and edi, 0xff000
and edx, 0xf00
and ecx, 0xf0
or edi, eax
or edx, ecx
shr edi, 8
shr edx, 4
mov eax, 0x48b890
xor ecx, ecx
mov ebx, dword [esp + 0x10]
cmp dword [eax - 8], ebx
jne 0x40162e
mov ebx, dword [esp + 0x14]
cmp dword [eax - 4], ebx
mov ebx, dword [esp + 0x18]
jne 0x40162e
cmp dword [eax], ebx
je 0x40164c
add esi, 0xc
inc ecx
add eax, 0xc
cmp esi, 0x24
jb 0x401614
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00436a89
mov esp, ebp
pop ebp
ret
sub ecx, 0
je 0x401685
sub ecx, 1
je 0x401669
sub ecx, 1
jne 0x4016af
cmp edi, 6
jb 0x40167a
jne 0x4016a5
cmp edx, 0xf
jae 0x4016a5
jmp 0x40167a
cmp edi, 5
jb 0x40167a
jne 0x4016a5
cmp edx, 6
jb 0x40167a
cmp edx, 0xa
jne 0x4016a5
mov eax, 1
test eax, eax
jne 0x4016af
jmp 0x4016a5
cmp edi, 6
jb 0x4016af
jne 0x4016a5
cmp edx, 0x1c
je 0x4016af
cmp edx, 0x26
je 0x4016af
cmp edx, 0x27
je 0x4016af
cmp edx, 0x35
je 0x4016af
cmp edx, 0x36
je 0x4016af
mov dword [0x498ab0], 0x401770
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00436a89
mov esp, ebp
pop ebp
ret