joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029ee3
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 0x10029f05
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10029f05
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10029f05
ret
cmp word [ebx + 4], 0x14c
jne 0x10029f05
test word [ebx + 0x16], 2
je 0x10029f05
test word [ebx + 0x16], 0x100
je 0x10029f05
cmp word [ebx + 0x18], 0x10b
jne 0x10029f05
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10029f05
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10029f91
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10029f25
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10010e70
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10029f05
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 0x10029f91
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 0x10029f05
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10029f05
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10029f05
ret
cmp word [ebx + 4], 0x14c
jne 0x10029f05
test word [ebx + 0x16], 2
je 0x10029f05
test word [ebx + 0x16], 0x100
je 0x10029f05
cmp word [ebx + 0x18], 0x10b
jne 0x10029f05
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10029f05
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10029f91
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10029f25
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10010e70
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10029f05
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 0x1002a048
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1002a0a1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1002a048
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1002a057
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 0x1042fcfa
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 0x1002a0a8
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.10010f1e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1002a147
add edi, 4
add eax, 2
dec ecx
jne 0x1002a08d
call 0x1002a0f4
loope 0x1002a0ea
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1002a144
mov dh, 0xe8
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 0x1002a155
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 0x1002a108
cmp eax, ecx
ja 0x1002a108
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1002a192
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1002a188
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100113fd
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1002a057
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1002a0a1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1002a048
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1002a057
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 0x1042fcfa
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 0x1002a0a8
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.10010f1e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1002a147
add edi, 4
add eax, 2
dec ecx
jne 0x1002a08d
call 0x1002a0f4
loope 0x1002a0ea
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1002a144
mov dh, 0xe8
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 0x1002a155
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 0x1002a108
cmp eax, ecx
ja 0x1002a108
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1002a192
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1002a188
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100113fd
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4184e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x418515
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
jmp 0x418510
test byte [esp + 0xc], 0x80
je 0x41853f
and eax, 0xfffffffe
jmp 0x418542
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x418524
xor eax, eax
pop esi
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x722a2833
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
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, 0x1e1531d4
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x403f0e
Capabilities:
Check if file exists

Disassembly:
push 0x70
mov eax, 0x43e319
call fcn.0042619a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x60]
push eax
mov esi, ecx
call fcn.00404844
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
jmp 0x403f87
lea esi, [ebp - 0x38]
call fcn.00422eaf
cmp dword [eax + 0x18], 8
jb 0x403f58
mov eax, dword [eax + 4]
jmp 0x403f5b
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403f7f
lea esi, [ebp - 0x38]
call fcn.00422eaf
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x60]
push ecx
push edx
push eax
lea edi, [ebp - 0x60]
call fcn.004048df
lea esi, [ebp - 0x38]
call fcn.00404893
lea edi, [ebp - 0x40]
lea esi, [ebp - 0x38]
call fcn.004048c2
test al, al
jne 0x403f45
cmp dword [ebp - 0x48], ebx
jne 0x403fb9
mov esi, 0x44e
lea edi, [ebp - 0x60]
call fcn.00404968
push dword [ebp - 0x60]
call fcn.00425197
pop ecx
mov eax, esi
call fcn.0042621d
ret
mov esi, dword [ebp - 0x44]
mov edi, esi
call fcn.0040a43a
call fcn.0040a9b0
push esi
push 0x443d50
push 0x443d54
lea ecx, [ebp - 0x30]
call fcn.0040bc34
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x60]
mov ecx, dword [eax]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
jmp 0x404042
lea esi, [ebp - 0x38]
call fcn.00422eaf
cmp dword [eax + 0x18], 8
jb 0x40400b
mov eax, dword [eax + 4]
jmp 0x40400e
add eax, 4
push eax
push str.___s_
lea ecx, [ebp - 0x7c]
call fcn.0040bc34
pop ecx
pop ecx
push eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004049ae
push ebx
push 1
lea esi, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00402701
lea esi, [ebp - 0x38]
call fcn.00404893
lea edi, [ebp - 0x40]
lea esi, [ebp - 0x38]
call fcn.004048c2
test al, al
jne 0x403ff8
push ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x64], 0xf
call fcn.00402b98
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], 8
mov edi, dword [ebp - 0x2c]
jae 0x404071
lea edi, [ebp - 0x2c]
mov esi, str.compress32.dll
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
jne 0x40409e
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
jne 0x40409e
push str.compress_dll_not_found
lea ecx, [ebp - 0x7c]
call fcn.0040259b
or edi, 0xffffffff
jmp 0x4040cf
mov edx, dword [eax + 0x54]
mov ecx, dword [eax + 0x50]
not edx
cmp ecx, edx
je 0x4040b1
push str.compress_dll_not_fit
jmp 0x404091
add eax, ecx
lea ecx, [ebp - 0x34]
push ecx
push edi
mov dword [ebp - 0x34], ebx
call eax
mov edi, eax
cmp dword [ebp - 0x34], ebx
je 0x4040cf
push dword [ebp - 0x34]
lea ecx, [ebp - 0x7c]
call fcn.0040259b
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.00402609
cmp edi, ebx
je 0x4040e6
mov esi, dword [ebp - 0x44]
call fcn.0040a9b0
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.00402701
mov esi, edi
jmp 0x403fa0
Function at 0x404260
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e82f
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x44e060]
xor eax, esp
mov dword [esp + 0x860], eax
push ebx
push esi
push edi
mov eax, dword [0x44e060]
xor eax, esp
push eax
lea eax, [esp + 0x878]
mov dword fs:[0], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [esp + 0x464], ax
lea eax, [esp + 0x466]
push eax
mov edi, ecx
call fcn.004278a0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [esp + 0x66c], ax
lea eax, [esp + 0x66e]
push eax
call fcn.004278a0
add esp, 0xc
lea eax, [esp + 0x45c]
push eax
mov ebx, 0x443e20
call fcn.0040aa60
lea eax, [esp + 0x664]
push eax
mov ebx, str.cachedump
call fcn.0040aa60
lea eax, [esp + 0x45c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x404498
xor eax, eax
push esi
mov word [esp + 0x258], ax
xor ebx, ebx
lea eax, [esp + 0x25a]
push ebx
push eax
call fcn.004278a0
add esp, 0xc
push 1
push ebx
lea eax, [esp + 0x25c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.client_log.zip
lea eax, [esp + 0x258]
push eax
call edi
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push esi
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push ebx
push eax
call fcn.004278a0
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.client_log
lea eax, [esp + 0x50]
push eax
call edi
lea esi, [esp + 0x4c]
call fcn.0040a544
mov eax, esi
push eax
lea ebx, [esp + 0x460]
call fcn.0040a84c
lea eax, [esp + 0x14]
push eax
call fcn.00404844
mov eax, esi
xor ebx, ebx
push eax
lea esi, [esp + 0x34]
mov dword [esp + 0x884], ebx
call fcn.004021fa
mov byte [esp + 0x880], 1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov eax, esi
push eax
lea edi, [esp + 0x20]
call fcn.004048df
push ebx
push 1
mov byte [esp + 0x888], bl
call fcn.00402701
lea eax, [esp + 0x664]
push eax
lea esi, [esp + 0x34]
call fcn.004021fa
mov byte [esp + 0x880], 2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov eax, esi
push eax
call fcn.004048df
push ebx
push 1
mov byte [esp + 0x888], bl
call fcn.00402701
lea eax, [esp + 0x254]
push eax
mov ecx, edi
call fcn.00403f0e
pop ecx
cmp eax, ebx
jne 0x404469
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [esp + 0x254]
call fcn.0040c0ce
jmp 0x40447c
push eax
push 0x443e78
push ebx
xor edi, edi
xor esi, esi
call fcn.0040ab05
add esp, 0xc
lea esi, [esp + 0x4c]
call fcn.0040a9de
lea edi, [esp + 0x14]
call fcn.00404968
push dword [esp + 0x14]
call fcn.00425197
pop ecx
mov ecx, dword [esp + 0x878]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x860]
xor ecx, esp
call fcn.0042515e
mov esp, ebp
pop ebp
ret
Function at 0x40468b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11b8
call fcn.00430970
mov eax, dword [0x44e060]
xor eax, esp
mov dword [esp + 0x11b4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push str.GlobalA51BB395_ECF3_4294_9A75_995BAB94ED74
mov dword [esp + 0xc], ebx
call fcn.00403e1a
test eax, eax
je 0x4046c8
push 2
pop eax
jmp 0x40482e
cmp dword [0x450cd8], 2
je 0x4046d9
xor eax, eax
inc eax
jmp 0x40482e
call fcn.0040b825
mov esi, str.17D54393_825C_44ab_B8AB_BC49A255D47B
push esi
call fcn.00403e1a
test eax, eax
jne 0x40482c
push esi
push 0x12
push 0x12
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 1
push 2
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0x190
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004278a0
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 3
call dword [sym.imp.libcurl32.dll_curl_global_init]
pop ecx
mov byte [0x451b52], 1
call fcn.00404ff7
call fcn.0041d971
mov eax, dword [0x45309c]
test eax, eax
jne 0x404767
push 0x444388
call fcn.00408bd0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45309c], eax
test eax, eax
je 0x40476f
push 0x40102b
push ebx
call eax
call fcn.0041e693
lea ecx, [esp + 0xc]
call fcn.0041a57d
cmp dword [eax + 0x18], 8
jb 0x404788
mov eax, dword [eax + 4]
jmp 0x40478b
add eax, 4
push eax
call fcn.00407480
push 0
push 1
lea esi, [esp + 0x14]
call fcn.00402701
call fcn.0040ab53
test eax, eax
je 0x4047f4
push str._X64AgentProtectThread
push 0xae
push str..poagent.cpp
push str._s._d:_s
lea eax, [esp + 0x1c8]
push 0x800
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea eax, [esp + 0x1b8]
push eax
mov eax, dword [0x450ce0]
push dword [eax + 4]
push 0x4040f8
call fcn.00409402
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404803
mov eax, dword [0x450ce0]
push dword [eax + 4]
xor ebx, ebx
call fcn.00401d57
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041a53c
test eax, eax
je 0x404823
push 0
push str.CLIENT_ONLINE
call fcn.00408c51
mov eax, dword [esp + 8]
call fcn.004045dd
xor eax, eax
mov ecx, dword [esp + 0x11bc]
pop esi
pop ebx
xor ecx, esp
call fcn.0042515e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404dfe
Capabilities:
Get session user name

Disassembly:
push 0x474
mov eax, 0x440215
call fcn.0042619a
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x218], ax
xor ebx, ebx
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004278a0
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
mov edi, 0x104
push eax
mov dword [ebp - 0x42c], edi
call fcn.004278a0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov dword [ebp - 0x424], edi
call sub.Secur32.dll_GetUserNameExW
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push ebx
push ebx
lea eax, [ebp - 0x480]
call fcn.0041288d
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x448]
mov dword [ebp - 4], 2
call fcn.004021fa
mov eax, esi
push eax
lea edi, [ebp - 0x464]
mov byte [ebp - 4], 3
call fcn.0040135e
sub esp, 0x14
mov byte [ebp - 4], 4
mov edx, eax
mov esi, esp
mov dword [ebp - 0x428], esp
call fcn.00411a39
lea eax, [ebp - 0x480]
push eax
mov edx, str.user
mov byte [ebp - 4], 5
call fcn.00412b29
mov esi, eax
mov byte [ebp - 4], 4
call fcn.00411c76
push ebx
push 1
mov ecx, edi
call fcn.00402609
push ebx
push 1
lea esi, [ebp - 0x448]
mov byte [ebp - 4], 2
call fcn.00402701
lea eax, [ebp - 0x420]
push eax
lea esi, [ebp - 0x448]
call fcn.004021fa
mov eax, esi
mov byte [ebp - 4], 6
push eax
lea edi, [ebp - 0x464]
call fcn.0040135e
sub esp, 0x14
mov byte [ebp - 4], 7
mov edx, eax
mov esi, esp
mov dword [ebp - 0x428], esp
call fcn.00411a39
lea eax, [ebp - 0x480]
push eax
mov edx, 0x443fb0
mov byte [ebp - 4], 8
call fcn.00412b29
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00411c76
push ebx
push 1
mov ecx, edi
call fcn.00402609
push ebx
push 1
lea esi, [ebp - 0x448]
mov byte [ebp - 4], 2
call fcn.00402701
lea eax, [ebp - 0x480]
push eax
lea ecx, [ebp - 0x448]
call fcn.00412f4d
push eax
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 9
call fcn.0040131e
cmp dword [eax + 0x18], 8
pop ecx
jb 0x404fb0
mov eax, dword [eax + 4]
jmp 0x404fb3
add eax, 4
mov esi, eax
mov ebx, str.adDomainUser
mov edi, str.Softwareprojonepodlp_smpcache_
call fcn.0040bcec
push 0
push 1
lea esi, [ebp - 0x464]
call fcn.00402701
push 0
push 1
lea ecx, [ebp - 0x448]
call fcn.00402609
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.00411c09
call fcn.0042621d
ret
Function at 0x407480
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x40749d
push 0x104
push dword [esp + 0xc]
push 0x4522d0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [0x44fd9c], esi
je 0x4074c2
push esi
push esi
push esi
push 0x4073ba
push esi
push esi
mov dword [0x44fd9c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret 4

Function at 0x409402
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x40943b
push dword [ebp + 0x10]
push dword [ebp - 4]
push str.thread__d_created:__s
call fcn.00408e99
add esp, 0xc
mov eax, edi
pop edi
leave
ret 0xc
Function at 0x40a220
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa94
mov eax, dword [0x44e060]
xor eax, esp
mov dword [esp + 0xa90], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
test esi, esi
je 0x40a421
test eax, eax
jne 0x40a270
test ecx, ecx
je 0x40a421
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x40a2cb
cmp ax, 0x5c
je 0x40a2cb
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x690], ax
lea eax, [esp + 0x692]
push eax
call fcn.004278a0
add esp, 0xc
lea eax, [esp + 0x688]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [esp + 0x68c]
push eax
call edi
lea esi, [esp + 0x688]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a421
test al, 0x10
je 0x40a421
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [esp + 0x484]
push eax
call ebx
push 0x4444d8
lea eax, [esp + 0x484]
push eax
call edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x40a421
mov dword [esp + 0x10], 1
push 0x4444dc
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40a3f0
push 0x4444e0
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40a3f0
cmp dword [esp + 0x28], 0xffffffff
je 0x40a3f0
push esi
lea eax, [esp + 0x27c]
push eax
call ebx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x27c]
push eax
call edi
test byte [esp + 0x28], 0x10
je 0x40a3d5
cmp dword [esp + 0x14], 0
je 0x40a3a2
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x40a409
cmp dword [ebp + 0xc], 0
je 0x40a3f0
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push dword [esp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [ebp + 0xc]
push eax
call fcn.0040a220
push 2
pop ecx
cmp eax, ecx
jne 0x40a3f0
mov dword [esp + 0x10], ecx
jmp 0x40a411
cmp dword [esp + 0x18], 0
je 0x40a3f0
push dword [esp + 0x1c]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x20]
test eax, eax
je 0x40a409
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a32b
jmp 0x40a411
mov dword [esp + 0x10], 2
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x40a423
xor eax, eax
mov ecx, dword [esp + 0xa9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042515e
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40a43a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x44e060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x40a534
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x40a534
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.004278a0
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.0040aca7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a4b1
shr eax, 4
not eax
and eax, 1
jmp 0x40a536
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.0040a544
test eax, eax
je 0x40a534
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x40a516
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x40a51c
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.00403dc4
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x40a536
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042515e
leave
ret