joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002c00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
push 0
push 0x80
push 3
push 0
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10002c42
or ecx, 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], ecx
jmp 0x10002c66
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10002d40
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x1002d8c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1002d778
mov eax, dword [ebp + 8]
push eax
call fcn.1000861a
add esp, 8
test eax, eax
je 0x10002f05
push 0x208
push 0
lea ecx, [ebp - 0x414]
push ecx
call fcn.100084c0
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.100084c0
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x61c]
push eax
call fcn.100084c0
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x824]
push ecx
call fcn.100084c0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.1000d7b6
add esp, 4
mov esi, eax
push str.Hand2Note.exe
call fcn.1000d7b6
add esp, 4
sub esi, eax
sub esi, 1
push esi
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.1000da8e
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.1000d672
add esp, 8
push str.umpdc.dll
lea ecx, [ebp - 0x20c]
push ecx
call fcn.1000d601
add esp, 8
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x61c]
push eax
call fcn.1000d672
add esp, 8
push str.umpdc.tmp
lea ecx, [ebp - 0x61c]
push ecx
call fcn.1000d601
add esp, 8
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x824]
push ecx
call fcn.1000d672
add esp, 8
push str.integrationumpdc.dll
lea edx, [ebp - 0x824]
push edx
call fcn.1000d601
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call fcn.10002c00
add esp, 4
mov esi, eax
mov edi, edx
lea ecx, [ebp - 0x824]
push ecx
call fcn.10002c00
add esp, 4
mov dword [ebp - 0x82c], esi
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x830], edx
mov edx, dword [ebp - 0x82c]
cmp edx, dword [ebp - 0x834]
jne 0x10002edb
mov eax, dword [ebp - 0x828]
cmp eax, dword [ebp - 0x830]
je 0x10002eef
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007180
mov esp, ebp
pop ebp
ret
Function at 0x100038e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10003a90
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100039ad
mov edx, dword [ebp - 4]
cmp edx, dword [0x1002d8b8]
jb 0x1000392a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1002d8bc]
ja 0x1000392a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100038fa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100084c0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10003950
jmp 0x100039ad
cmp dword [ebp - 0x14], 0x10000
jne 0x10003993
cmp dword [ebp - 0x18], 0x10000
jb 0x10003993
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10003986
mov eax, dword [ebp - 8]
jmp 0x100039af
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100039a8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10003a90
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100038fa
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100039c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10003ac0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10003a85
mov edx, dword [ebp - 4]
cmp edx, dword [0x1002d8b8]
jb 0x10003a05
mov eax, dword [ebp - 4]
cmp eax, dword [0x1002d8bc]
ja 0x10003a05
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100039d5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100084c0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10003a2b
jmp 0x10003a85
cmp dword [ebp - 0x14], 0x10000
jne 0x10003a6e
cmp dword [ebp - 0x18], 0x10000
jb 0x10003a6e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10003a61
mov eax, dword [ebp - 8]
jmp 0x10003a87
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10003a80
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10003ac0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100039d5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10005740
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1004e224], 0
je 0x10005756
xor eax, eax
jmp 0x10005972
cmp dword [0x1004e220], 0
je 0x10005769
mov eax, dword [0x1004e220]
jmp 0x10005972
push 0x24
push 0
push 0x1004e1fc
call fcn.100084c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1004e1fc], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x1004e200], eax
cmp dword [0x1004e200], 0
jne 0x1000580e
mov dword [0x1004e224], 1
cmp dword [0x1004e200], 0
je 0x100057c1
mov eax, dword [0x1004e200]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1004e204], 0
mov dword [0x1004e208], 0
mov dword [0x1004e20c], 0
mov dword [0x1004e210], 0
mov dword [0x1004e214], 0
mov dword [0x1004e218], 0
mov dword [0x1004e21c], 0
xor eax, eax
jmp 0x10005972
push str.ImagehlpApiVersionEx
mov ecx, dword [0x1004e200]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004e204], eax
push str.SymInitialize
mov edx, dword [0x1004e200]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004e208], eax
push str.SymSetOptions
mov eax, dword [0x1004e200]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004e20c], eax
push str.SymGetOptions
mov ecx, dword [0x1004e200]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004e210], eax
push str.SymLoadModule64
mov edx, dword [0x1004e200]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004e214], eax
push str.SymGetModuleInfo64
mov eax, dword [0x1004e200]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004e218], eax
push str.SymFromName
mov ecx, dword [0x1004e200]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004e21c], eax
push 8
push 0
lea edx, [ebp - 0xc]
push edx
call fcn.100084c0
add esp, 0xc
mov eax, 0xc
mov word [ebp - 0xc], ax
cmp dword [0x1004e204], 0
je 0x100058f3
cmp dword [0x1004e208], 0
je 0x100058f3
cmp dword [0x1004e214], 0
je 0x100058f3
cmp dword [0x1004e218], 0
je 0x100058f3
cmp dword [0x1004e21c], 0
jne 0x100058f8
jmp 0x100057a2
lea ecx, [ebp - 0xc]
push ecx
call dword [0x1004e204]
movzx edx, word [ebp - 0xc]
cmp edx, 0xc
jge 0x10005910
jmp 0x100057a2
push 0
push 0
mov eax, dword [0x1004e1fc]
push eax
call dword [0x1004e208]
test eax, eax
jne 0x10005929
jmp 0x100057a2
cmp dword [0x1004e210], 0
je 0x10005963
cmp dword [0x1004e20c], 0
je 0x10005963
call dword [0x1004e210]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xfffffff8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x2704
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call dword [0x1004e20c]
mov dword [0x1004e220], 0x1004e1fc
mov eax, dword [0x1004e220]
mov esp, ebp
pop ebp
ret
Function at 0x1000dfd5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000e014
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e014
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e014
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000e014
cmp dword [ecx + 0x74], 0xe
jbe 0x1000e014
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10011f35
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10011fd2
push ebx
push esi
call fcn.10011efe
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10011e92
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011f7f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011fd1
push edi
push eax
call fcn.1000ecc9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011f9f
call fcn.1000ec8f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011fd0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10011e92
add esp, 0x20
test eax, eax
jne 0x10011fbe
push edi
call fcn.1000ec8f
jmp 0x10011fc6
push ebx
call fcn.1000ec8f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001223f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001cdf8
push 0x1001cdf0
push str.FlsAlloc
push 0x1f
call fcn.1001215b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012273
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b1e8]
call esi
jmp 0x10012279
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100122bd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ce08
push 0x1001ce00
push str.FlsGetValue
push 0x21
call fcn.1001215b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100122f4
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b1e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100122fc
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ce10
push 0x1001ce08
push str.FlsSetValue
push 0x22
call fcn.1001215b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012336
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001b1e8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x76114064
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x71907ef0
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4fb910
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.0045c8ca
mov eax, dword [0x547014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x549190]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x4fbae8
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x4fba37
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x4fba37
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x4fba15
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x4fb999
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4fbaa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x4fbb08
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x4fbae3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x4fbb08
jmp 0x4fb972
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d49b
mov esp, ebp
pop ebp
ret
Function at 0x4fbba0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.0045c8ca
mov eax, dword [0x547014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x549190]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x4fbd8b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x4fbcd6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x4fbcd6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x4fbcb2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x4fbc29
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4fbd44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x4fbdab
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x4fbd86
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x4fbdab
jmp 0x4fbc02
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d49b
mov esp, ebp
pop ebp
ret
Function at 0x10012aef
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x10076df4]
add eax, 0xffffda07
mov dword [0x10076df4], eax
call fcn.10001070
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
je 0x10012b39
jmp 0x10012c8e
mov eax, dword [esp + 0x28]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x24], eax
jmp 0x10012bd7
lea eax, [esp + 0x30]
mov dword [0x10076df4], 0xbdc
mov dword [esp + 0x20], eax
call fcn.10013e1a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x1c], ecx
jne 0x10012c86
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.10012d3d
lea ecx, [0x1001407c]
mov dword [0x10076df8], 0xb1d
mov edx, dword [esp + 0x88]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], 0x15a800
mov edx, dword [0x10076de0]
mov dword [esp + 0x60], edx
mov edx, dword [0x10076de4]
mov dword [esp + 0x6c], edx
mov edx, dword [0x10076de8]
mov dword [esp + 0x38], edx
mov edx, dword [0x10076dec]
mov dword [esp + 0x44], edx
mov dword [0x10076df4], 0x135a
mov edx, dword [0x10076df0]
mov dword [esp + 0x48], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
cmp word [eax], 0x5a4d
mov dword [esp + 0x28], eax
jne 0x10012b22
mov eax, dword [esp + 0x28]
add eax, 0x3c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x28]
cmp dword [edx + ecx], 0x4550
mov dword [esp + 0x10], ecx
jne 0x10012b22
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x10]
mov esi, dword [ecx + edx + 0x50]
add eax, 0x4c
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
mov dword [0x10076df4], 0x111c
mov esi, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.10012ff1
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x10076df4]
add ecx, 0xfffff0fe
mov dword [0x10076df4], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10012d3d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x10076df4], 0x483
mov dword [0x10076df8], 0xa86
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, ecx, 0xe0
mov edi, edx
add edi, esi
add edi, 0x84
mov esi, ecx
add esi, 1
imul ecx, ecx, 0xe0
add edx, ecx
add edx, 0xcc
mov ecx, dword [edx]
movzx edx, word [edi]
xor edx, ecx
add edx, eax
cmp esi, 0x6d9
mov eax, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x138], eax
jne 0x10012d76
lea eax, [0x100164cb]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x10076df8], 0x18c2
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
call fcn.10013711
mov dword [0x10076df4], 0x2e3
mov dword [0x10076df8], 0x2085
call fcn.1001329d
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.100134f7
mov ecx, eax
mov dword [0x10076e14], eax
mov eax, esp
mov edx, dword [ebp - 0x13c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, eax, 0xe0
mov edi, edx
add edi, esi
add edi, 0xcc
mov esi, dword [edi]
imul edi, eax, 0xe0
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0xe0
add edx, ebx
add edx, 0x84
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.10013fce
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x6d9
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x10012e77
lea eax, [0x100164d9]
mov ecx, 0x20
lea edx, [ebp - 0x12c]
mov esi, dword [ebp - 0x148]
add esi, 0x118bfc
mov edi, dword [ebp - 0x148]
add edi, 0x124d6f
mov dword [0x10076df4], 0x1ad9
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], esi
call fcn.10013ada
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.10013883
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x160]
mov dword [ecx], edx
mov edx, dword [0x10076df8]
add edx, 0xfffff632
mov dword [0x10076df4], edx
mov dword [ecx + 4], 0x15a800
mov edx, dword [ebp - 0x16c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x1f60
mov edx, dword [0x10076df4]
add edx, 0xffffe960
mov dword [0x10076df8], edx
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret