joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402823
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x6d1], 0xb6
mov byte [ebp - 0x6d0], 0xd3
call fcn.004014c1
push esi
jl 0x402852
lea eax, cs:[ebp - 0x6dc]
push eax
call fcn.004014d1
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00401486
add esp, 0xc
mov dword [ebp - 0x6c8], eax
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x403654
inc dword [ebx - 0x7a76f33c]
cmp cl, bh
invalid
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.00401432
add esp, 0xc
and dword [ebp - 0x700], 0
movsd dword es:[edi], dword [esi]
add cl, bh
invalid
inc dword [eax]
jmp 0x4028ce
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4036f1
Capabilities:
Get file attributes

Disassembly:
jne 0x4036f7
push dword [ebp]
call fcn.00401cc1
jge 0x403705
invalid
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402771
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x403722
push esi
lea ecx, [ebp - 0x18]
call fcn.00401172
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403736
cmp ax, 0x2f
jne 0x40373f
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403765
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403758
cmp ax, 0x5c
je 0x403758
dec esi
test esi, esi
jg 0x403743
test esi, esi
je 0x403814
and word [edi + esi*2], 0
push edi
call fcn.00401b75
test eax, eax
pop ecx
je 0x403754
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
jne 0x40379c
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00403387
test eax, eax
pop ecx
pop ecx
je 0x40379c
xor esi, esi
jmp 0x403839
push edi
call fcn.00401b75
test eax, eax
pop ecx
jne 0x4037b6
push edi
push 0xc
push 1
call fcn.00408dbf
add esp, 0xc
jmp 0x403795
cmp esi, ebx
jge 0x403808
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4037ee
jmp 0x4037ed
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x4037f4
cmp ax, 0x2f
je 0x4037f4
inc esi
cmp word [edi + esi*2], cx
jne 0x4037dd
push edi
mov word [edi + esi*2], cx
call fcn.00401b75
test eax, eax
pop ecx
je 0x4037a7
cmp esi, dword [ebp - 4]
jl 0x4037ba
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403859
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403844
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403844
cmp ax, 0x7a
ja 0x403844
cmp word [ecx + 2], 0x3a
jne 0x403844
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403859
push ecx
push 0xc
push 1
call fcn.00408dbf
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10036bd0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10036d9d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x10036bfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10036c01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10036bf0
mov eax, 1
add ebx, ebx
jne 0x10036c13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10036c08
jne 0x10036c24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10036c08
xor ecx, ecx
sub eax, 3
jb 0x10036c38
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10036caa
mov ebp, eax
add ebx, ebx
jne 0x10036c43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10036c50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10036c74
inc ecx
add ebx, ebx
jne 0x10036c60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10036c55
jne 0x10036c71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10036c55
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10036c94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10036c85
jmp 0x10036bf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10036c94
add edi, ecx
jmp 0x10036bf6
pop esi
mov edi, esi
mov ecx, 0xd04
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10036cb2
cmp byte [edi], 0xc
jne 0x10036cb2
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 0x10036cb7
lea edi, [esi + 0x33000]
mov eax, dword [edi]
or eax, eax
je 0x10036d2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x362e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3636c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10036ce4
mov ecx, edi
jns 0x10036d13
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 + 0x36370]
or eax, eax
je 0x10036d29
mov dword [ebx], eax
add ebx, 4
jmp 0x10036d01
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10036d60
cmp al, 0xef
ja 0x10036d53
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10036d35
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10036d42
mov ebp, dword [esi + 0x36374]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x10036d94
sub esp, 0xffffff80
jmp 0x100095f0
Function at 0x42d9e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.0042d7f0
push ebx
call fcn.0042d8c0
mov edi, eax
add esp, 8
test edi, edi
js 0x42daa1
push 0x47a34c
push dword [ebp + 0xc]
call fcn.0045b45c
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
je 0x42daa1
push ebx
call fcn.0042de80
push 0x8000
mov dword [ebp - 8], eax
call fcn.0045d551
add esp, 8
mov ebx, eax
test edi, edi
je 0x42da6e
nop
push dword [ebp - 8]
mov esi, 0x8000
cmp edi, esi
cmovl esi, edi
push esi
push ebx
call fcn.0042dab0
push dword [ebp - 4]
push esi
push 1
push ebx
call fcn.0045c1df
add esp, 0x1c
cmp eax, esi
jl 0x42da6b
sub edi, esi
jne 0x42da40
mov esi, dword [ebp - 4]
cmp dword [0x49becc], 0
jne 0x42da85
push dword [0x49c088]
call fcn.0045b1dd
add esp, 4
push esi
call fcn.0045b1dd
push ebx
call fcn.0045d54c
add esp, 8
test edi, edi
jne 0x42daa1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42dab0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x49becc], 0
push esi
je 0x42dafe
mov esi, dword [ebp + 0xc]
mov edx, dword [0x498004]
mov ecx, dword [0x498008]
lea eax, [edx + esi]
cmp eax, ecx
jl 0x42dad8
mov esi, ecx
sub esi, edx
test esi, esi
jle 0x42daf7
mov ecx, dword [section..data]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004586b0
add esp, 0xc
add dword [0x498004], esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push esi
call fcn.0045b63f
add esp, 0x10
mov edi, eax
cmp dword [0x49c068], 0
je 0x42db6b
test edi, edi
jle 0x42db6b
mov ecx, dword [0x49c080]
mov edx, edi
mov eax, dword [0x49c070]
push ebx
mov ebx, dword [0x49c06c]
add ebx, dword [0x49c07c]
add eax, ecx
mov cl, byte [0x49c084]
movzx eax, al
mov dword [ebp - 4], eax
nop word [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor al, bl
sub al, byte [ebp - 4]
add cl, al
mov byte [esi - 1], cl
sub edx, 1
jne 0x42db50
mov byte [0x49c084], cl
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42def0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0042d7f0
mov ebx, dword [ebp + 0x14]
xor esi, esi
add esp, 4
test ebx, ebx
cmovns esi, ebx
cmp dword [0x49becc], 0
je 0x42df55
push edi
call fcn.0042de80
push 0
push dword [ebp + 0x10]
mov dword [0x498004], esi
push dword [ebp + 0xc]
call fcn.0042dab0
add esp, 0x10
mov esi, eax
cmp dword [0x49becc], 0
jne 0x42e013
push dword [0x49c088]
call fcn.0045b1dd
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [0x49bec8], 0
je 0x42dfce
push edi
call fcn.0042e160
add esp, 4
test eax, eax
jne 0x42dfce
push dword [0x49c088]
mov ebx, dword [0x49c060]
call fcn.0045b1dd
push 0x47a340
push 0x49bf58
call fcn.0045b45c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42dfe2
mov ecx, dword [0x49c064]
add ecx, esi
add ecx, dword [0x49c05c]
push 0
push ecx
push edi
call fcn.0045ba2a
cmp dword [ebp + 0x10], ebx
push edi
cmovl ebx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
call fcn.0042dab0
push edi
mov esi, eax
call fcn.0045b1dd
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x47a340
push edi
call fcn.0045b45c
mov edi, eax
add esp, 8
test edi, edi
jne 0x42dfea
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
test ebx, ebx
js 0x42dffa
push 0
push esi
push edi
call fcn.0045ba2a
add esp, 0xc
push edi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0045b63f
push edi
mov esi, eax
call fcn.0045b1dd
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x42e020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0042d8c0
mov esi, eax
add esp, 4
test esi, esi
jns 0x42e040
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 1]
push ebx
push eax
call fcn.0043b430
push edi
mov ebx, eax
call fcn.0042d7f0
add esp, 8
cmp dword [0x49becc], 0
je 0x42e0a2
push edi
call fcn.0042de80
push 0
push esi
push ebx
mov dword [0x498004], 0
call fcn.0042dab0
add esp, 0x10
cmp dword [0x49becc], 0
jne 0x42e14f
push dword [0x49c088]
call fcn.0045b1dd
add esp, 4
mov byte [ebx + esi], 0
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x49bec8], 0
je 0x42e11e
push edi
call fcn.0042e160
add esp, 4
test eax, eax
jne 0x42e11e
mov eax, dword [0x49c060]
push dword [0x49c088]
mov dword [ebp - 4], eax
call fcn.0045b1dd
push 0x47a340
push 0x49bf58
call fcn.0045b45c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42e14f
mov ecx, dword [0x49c064]
add ecx, dword [0x49c05c]
push 0
push ecx
push edi
call fcn.0045ba2a
mov eax, dword [ebp - 4]
cmp esi, eax
push edi
cmovl eax, esi
push eax
push ebx
call fcn.0042dab0
push edi
call fcn.0045b1dd
add esp, 0x1c
mov byte [ebx + esi], 0
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x47a340
push edi
call fcn.0045b45c
mov edi, eax
add esp, 8
test edi, edi
je 0x42e14f
push 0
push 0
push edi
call fcn.0045ba2a
push edi
push esi
push 1
push ebx
call fcn.0045b63f
push edi
call fcn.0045b1dd
add esp, 0x20
mov byte [ebx + esi], 0
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43a170
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00456c00
push esi
push edi
call fcn.00432340
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0043b4f0
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0043b030
push dword [ebp - 4]
lea eax, [edi + 0x368]
push eax
call fcn.00438a40
lea eax, [ebp - 4]
push eax
call fcn.0043b150
add esp, 0x18
lea eax, [ebp - 0x1004]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0043b380
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.0043b030
push dword [ebp - 4]
lea esi, [edi + 0x338]
push esi
call fcn.00438a40
push 0x5c
push dword [esi]
call fcn.0043abf0
push dword [esi]
lea eax, [edi + 0x384]
push eax
call fcn.00438a40
mov eax, dword [esi]
add esp, 0x2c
dec eax
nop dword [eax]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x43a220
mov ecx, dword [str.hsptv_]
mov dword [eax], ecx
mov ecx, dword [0x47a4c8]
mov dword [eax + 4], ecx
lea eax, [ebp - 4]
push eax
call fcn.0043b150
push dword [esi]
lea eax, [edi + 0x388]
push eax
call fcn.00438a40
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43a3b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea esi, [ebx*4]
not esi
and esi, 8
or esi, 2
cmp byte [eax], 0
je 0x43a467
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0x3c
lea ecx, [ebp - 4]
movlpd qword [ebp - 0x38], xmm0
push ecx
push eax
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x3c], 0
call fcn.0043b030
mov dword [ebp - 0x38], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0043b030
add esp, 0x10
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x28], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.0043b150
lea eax, [ebp - 8]
push eax
call fcn.0043b150
add esp, 8
test esi, esi
je 0x43a4d2
jmp 0x43a4cc
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0043b030
add esp, 8
push esi
test bl, 0x10
je 0x43a493
push 0x47a34f
push 0x47a34f
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x43a4b9
test bl, 0x20
je 0x43a4b2
push 0x47a34f
push 0x47a34f
push eax
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x43a4b9
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.0043b150
add esp, 4
cmp esi, 0x20
jl 0x43a4d2
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x495c90
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0xe
push eax
call fcn.0045912a
int3
Function at 0x43a4f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00456c00
mov eax, dword [ebp + 8]
mov byte [ebp - 0x1004], 0
push esi
cmp eax, 6
ja case.default.0x43a511
jmp dword [eax*4 + 0x43a618]
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call fcn.00463840
add esp, 8
jmp 0x43a5b8
mov eax, dword [0x49c560]
mov esi, dword [eax + 0x384]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x43a5b8
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x43a5b8
mov eax, dword [0x49c560]
mov esi, dword [eax + 0x368]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 0x47a34f
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [0x49c560]
add esi, 0x390
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
test eax, 0x10000
je 0x43a601
push 0
movzx eax, ax
push eax
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0043b030
mov eax, dword [0x49c560]
push dword [ebp + 8]
add eax, 0x338
push eax
call fcn.00438a40
lea eax, [ebp + 8]
push eax
call fcn.0043b150
mov eax, dword [0x49c560]
push 0x5c
mov esi, dword [eax + 0x338]
push esi
call fcn.0043abf0
add esp, 0x1c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x495c90
lea eax, [ebp - 4]
mov dword [ebp - 4], 3
push eax
call fcn.0045912a
nop
sbb byte [ebp - 0x5aceffbd], ah
inc ebx
add byte [ebx - 0x5b], al
inc ebx
add byte [edi - 0x5b], dl
inc ebx
add byte [ebx - 0x5b], ch
inc ebx
add byte [ebp - 0x5b], bh
inc ebx
add byte [ecx - 0x33ffbc5b], cl
int3
Function at 0x43a543
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00456c00
mov eax, dword [ebp + 8]
mov byte [ebp - 0x1004], 0
push esi
cmp eax, 6
ja case.default.0x43a511
jmp dword [eax*4 + 0x43a618]
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call fcn.00463840
add esp, 8
jmp 0x43a5b8
mov eax, dword [0x49c560]
mov esi, dword [eax + 0x384]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x43a5b8
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x43a5b8
mov eax, dword [0x49c560]
mov esi, dword [eax + 0x368]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 0x47a34f
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [0x49c560]
add esi, 0x390
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
test eax, 0x10000
je 0x43a601
push 0
movzx eax, ax
push eax
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0043b030
mov eax, dword [0x49c560]
push dword [ebp + 8]
add eax, 0x338
push eax
call fcn.00438a40
lea eax, [ebp + 8]
push eax
call fcn.0043b150
mov eax, dword [0x49c560]
push 0x5c
mov esi, dword [eax + 0x338]
push esi
call fcn.0043abf0
add esp, 0x1c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x495c90
lea eax, [ebp - 4]
mov dword [ebp - 4], 3
push eax
call fcn.0045912a
nop
sbb byte [ebp - 0x5aceffbd], ah
inc ebx
add byte [ebx - 0x5b], al
inc ebx
add byte [edi - 0x5b], dl
inc ebx
add byte [ebx - 0x5b], ch
inc ebx
add byte [ebp - 0x5b], bh
inc ebx
add byte [ecx - 0x33ffbc5b], cl
int3
Function at 0x43a557
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00456c00
mov eax, dword [ebp + 8]
mov byte [ebp - 0x1004], 0
push esi
cmp eax, 6
ja case.default.0x43a511
jmp dword [eax*4 + 0x43a618]
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call fcn.00463840
add esp, 8
jmp 0x43a5b8
mov eax, dword [0x49c560]
mov esi, dword [eax + 0x384]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x43a5b8
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x43a5b8
mov eax, dword [0x49c560]
mov esi, dword [eax + 0x368]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 0x47a34f
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [0x49c560]
add esi, 0x390
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
test eax, 0x10000
je 0x43a601
push 0
movzx eax, ax
push eax
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0043b030
mov eax, dword [0x49c560]
push dword [ebp + 8]
add eax, 0x338
push eax
call fcn.00438a40
lea eax, [ebp + 8]
push eax
call fcn.0043b150
mov eax, dword [0x49c560]
push 0x5c
mov esi, dword [eax + 0x338]
push esi
call fcn.0043abf0
add esp, 0x1c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x495c90
lea eax, [ebp - 4]
mov dword [ebp - 4], 3
push eax
call fcn.0045912a
nop
sbb byte [ebp - 0x5aceffbd], ah
inc ebx
add byte [ebx - 0x5b], al
inc ebx
add byte [edi - 0x5b], dl
inc ebx
add byte [ebx - 0x5b], ch
inc ebx
add byte [ebp - 0x5b], bh
inc ebx
add byte [ecx - 0x33ffbc5b], cl
int3
Function at 0x43b040
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00464459

Function at 0x43b060
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
and ecx, 1
mov eax, ebx
shl ecx, 4
mov edx, ecx
or edx, 6
and al, 2
push esi
lea eax, [ebp - 0x144]
cmove edx, ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x43b0a7
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
and ebx, 4
nop
mov ecx, dword [ebp - 4]
xor eax, eax
and ecx, dword [ebp - 0x144]
cmp eax, ecx
sbb eax, eax
neg eax
test ebx, ebx
jne 0x43b0cc
xor eax, eax
cmp eax, ecx
sbb eax, eax
inc eax
test eax, eax
je 0x43b118
mov al, byte [ebp - 0x118]
xor ecx, ecx
test al, al
setne cl
cmp al, 0x2e
jne 0x43b0f8
mov al, byte [ebp - 0x117]
test al, al
je 0x43b118
cmp al, 0x2e
jne 0x43b0f8
cmp byte [ebp - 0x116], 0
je 0x43b118
test ecx, ecx
je 0x43b118
lea eax, [ebp - 0x118]
inc esi
push eax
push edi
call fcn.004389c0
push 0x47a490
push edi
call fcn.004389c0
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43b0b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x43b0b0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
mov ecx, 0x47a34c
test esi, esi
mov eax, 0x47a524
push edi
cmovs eax, ecx
push eax
push dword [ebp + 8]
call fcn.0045b45c
mov edi, eax
add esp, 8
test edi, edi
jne 0x43b480
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
test esi, esi
js 0x43b490
push 0
push esi
push edi
call fcn.0045ba2a
add esp, 0xc
push edi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0045c1df
push edi
mov esi, eax
call fcn.0045b1dd
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
ret