joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5256e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc8000]
mov dword [edi + 0xcf740], 0xc9a54146
push edi
jmp 0x52570a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x525711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x525700
mov eax, 1
add ebx, ebx
jne 0x525723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x525734
jne 0x525753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x525753
dec eax
add ebx, ebx
jne 0x525740
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x525718
add ebx, ebx
jne 0x52574f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5257a5
xor ecx, ecx
sub eax, 3
jb 0x52576b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5257da
sar eax, 1
mov ebp, eax
jmp 0x525776
add ebx, ebx
jne 0x525776
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x525744
inc ecx
add ebx, ebx
jne 0x525784
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x525744
add ebx, ebx
jne 0x525791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x525786
jne 0x5257a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x525786
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5257c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5257b6
jmp 0x525706
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5257c4
add edi, ecx
jmp 0x525706
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5257e2
cmp byte [edi], 0x11
jne 0x5257e2
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 0x5257e7
lea edi, [esi + 0x11e000]
mov eax, dword [edi]
or eax, eax
je 0x52585f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x165860]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1659dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x525814
mov ecx, edi
jns 0x525843
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 + 0x1659e0]
or eax, eax
je 0x525859
mov dword [ebx], eax
add ebx, 4
jmp 0x525831
call dword [esi + 0x1659f0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x525890
cmp al, 0xef
ja 0x525883
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x525865
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x525872
mov ebp, dword [esi + 0x1659e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5258c4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402d00
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov dword [0x41a424], esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.AULA__F68
call edi
movups xmm0, xmmword [0x41608c]
push 0x41a468
push 1
movups xmmword [0x41a468], xmm0
push 0
movq xmm0, qword [0x41609c]
movq qword [0x41a478], xmm0
movups xmm0, xmmword [0x416074]
movups xmmword [0x41a47e], xmm0
movq xmm0, qword [0x416084]
movq qword [0x41a48e], xmm0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x402d90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402ed3
movups xmm0, xmmword [0x416074]
push str.4695579F_999A_41d4_9FAF_EFFCE93EBE19
movq xmm1, qword [0x41609c]
movups xmm2, xmmword [0x41608c]
movq qword [0x41a878], xmm1
movups xmmword [0x41a87e], xmm0
movq xmm0, qword [0x416084]
movq qword [0x41a88e], xmm0
movups xmm0, xmmword [0x41605c]
movq qword [0x41a678], xmm1
movups xmmword [0x41a67e], xmm0
movq xmm0, qword [0x41606c]
movups xmmword [0x41a868], xmm2
movups xmmword [0x41a668], xmm2
movq qword [0x41a68e], xmm0
call edi
mov ecx, esi
mov dword [0x41aa6c], eax
call fcn.00402ef0
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x41a868
push 0x41a668
push 0
mov dword [0x41aa68], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x402ed3
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push 0
push eax
call esi
test eax, eax
je 0x402eb8
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x402ea7
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x402e87
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040439d
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040439d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4036c0
Capabilities:
Create thread

Disassembly:
cmp dword [0x41a45c], 0
je 0x4036d2
cmp dword [0x41a458], 0
jne 0x40373c
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41a45c], eax
test eax, eax
je 0x40373c
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41a460], eax
test eax, eax
je 0x40373c
mov ecx, dword [0x41a45c]
push 0
push 0
push 0x41a44c
push 0x403190
mov dword [0x41a450], ecx
mov ecx, dword [0x41a464]
push 0
push 0
mov dword [0x41a454], ecx
mov dword [0x41a44c], eax
call fcn.00407661
add esp, 0x18
mov dword [0x41a458], eax
ret

Function at 0x403740
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x41a45c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4037a3
cmp dword [0x41a458], 0
je 0x403792
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push 1
push 0x41a458
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x40378d
cmp eax, 0x80
je 0x40378d
push 0
push dword [0x41a458]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x41a45c]
test eax, eax
je 0x4037a3
push eax
call esi
mov dword [0x41a45c], 0
mov eax, dword [0x41a460]
test eax, eax
je 0x4037b9
push eax
call esi
mov dword [0x41a460], 0
mov eax, dword [0x41a458]
test eax, eax
je 0x4037cf
push eax
call esi
mov dword [0x41a458], 0
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x252412e7
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7412081d
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x406f68
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x406fe4
mov byte [ebp - 0x1004], 0
mov eax, dword [ebx + 0x19]
call fcn.00403af4
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x406fdb
mov eax, edi
lea edx, [ebp - 0x1004]
mov ecx, 0x1000
call fcn.004038dc
jmp 0x407015
mov eax, edi
call fcn.00403694
jmp 0x407015
mov eax, edi
mov edx, esi
call fcn.004036e8
mov eax, dword [ebx + 0x19]
call fcn.00403af4
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409a38
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x409a3f
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x409a3a
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x409a24
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x409a2c
cmp edx, ebx
jne 0x409b7a
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4099fb
add eax, dword [eax + 4]
jmp 0x4099e8
mov dword [ebp + 0xc], ebx
jmp 0x409a4a
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x409a62
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x409a80
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
invalid

Function at 0x40a25c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [edx], ch
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
add byte [ebp - 0x3337b], cl
call dword [eax + 0x6a]
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.0040938b
mov dh, 0x37
mov al, 0
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosd dword es:[edi], eax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00409369
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
Function at 0x40a2d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6

Function at 0x40a828
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec eax
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.0040938b
pop esp
adc bh, byte [edx + 0x30]
lea eax, [ebp - 0x72c]
push eax
call fcn.0040939b
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00409350
add esp, 0xc
mov dword [ebp - 0x6e4], eax
call fcn.0040938b
adc ch, dh
or eax, 0xf8e8858d
invalid

Function at 0x40b8b4
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x40b8c0
or byte [eax + 0x27], 0x10
mov ecx, dword [eax + 0x1c]
jecxz 0x40b8d9
push eax
je 0x40b8da
call dword [0x426148]
pop eax
push 5
push dword [eax + 0x1c]
call sub.user32.dll_ShowWindow
ret
and byte [eax + 0x37], 0xfe
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x426148]
ret

Function at 0x40d908
Capabilities:
Get file attributes

Disassembly:
call fcn.0040502c
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40d91c
dec eax
and al, 0x10
sete al
ret

Function at 0x40d998
Capabilities:
Get common file path

Disassembly:
push ebx
xchg ebx, eax
sub esp, 0x104
mov eax, esp
push 0x104
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
call fcn.00403870
mov edx, ebx
mov eax, dword [edx]
call fcn.00405c64
add esp, 0x104
pop ebx
ret

Function at 0x40d9c8
Capabilities:
Get common file path

Disassembly:
push ebx
xchg ebx, eax
sub esp, 0x104
mov eax, esp
push 0x104
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
call fcn.00403870
mov edx, ebx
mov eax, dword [edx]
call fcn.00405c64
add esp, 0x104
pop ebx
ret

Function at 0x40d9f8
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.00403870
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.00405c64
ret
Function at 0x40e488
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e4bc
xor eax, eax
jmp 0x40e50d
lea eax, [ebp - 0xc]
push eax
mov ax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x40e4f0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x40e4f0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle
mov ax, word [ebp + 8]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415858
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4299d0
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x41587a
shr eax, 1
xor eax, 0xedb88320
jmp 0x41587c
shr eax, 1
dec edx
jne 0x415868
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x415861
mov byte [0x429dd0], 1
pop esi
pop ebx
ret

Function at 0x415898
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x429dd0], 0
jne 0x4158af
call fcn.00415858
mov eax, edi
dec eax
test eax, eax
jl 0x4158d8
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4299d0]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4158b9
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x41ce54
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
mov dword [esp], pe_nt_image_headers32
test al, al
je 0x41ce75
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
jmp 0x41ce80
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.004038dc
add esp, 0x104
pop ebx
ret

Function at 0x41ce98
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffc10
mov ebx, edx
push esp
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x3e9
call fcn.004038dc
add esp, 0x3f0
pop ebx
ret
Function at 0x4015d0
Capabilities:
Accept command line arguments
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x27c
mov dword [esp], str.GETTEXT_MUI1
mov eax, dword [0x4d0240]
mov dword [ebp - 0x1c], eax
xor eax, eax
call sub.msvcrt.dll__putenv
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
sub esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp], str.kernel32.dll
call ebx
sub esp, 4
test eax, eax
je 0x401688
mov esi, eax
mov dword [esp + 4], str.SetProcessDEPPolicy
mov dword [esp], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
sub esp, 8
test eax, eax
je 0x401668
mov dword [esp], 1
call eax
sub esp, 4
mov dword [esp + 4], str.SetDllDirectoryA
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
je 0x401688
mov dword [esp], 0x4c3097
call eax
sub esp, 4
mov dword [esp], str.kernel32.dll
call ebx
sub esp, 4
test eax, eax
je 0x4016bc
mov dword [esp + 4], str.SetDefaultDllDirectories
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x4016bc
mov dword [esp], 0x800
call eax
sub esp, 4
mov dword [esp], str.kernel32.dll
call ebx
sub esp, 4
test eax, eax
je 0x401713
mov dword [esp + 4], str.SetProcessMitigationPolicy
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x401713
lea edx, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0
mov dword [esp + 8], 4
mov byte [ebp - 0x22c], 4
mov dword [esp], 0xa
mov dword [esp + 4], edx
call eax
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x234]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
invalid
Function at 0x401f90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x44], 0x4bda00
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], 0x4be7d4
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x38], 0x402129
mov dword [esp], edx
call fcn.00414b80
mov ecx, dword [0x4d0240]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x1c]
sub esp, 8
mov dword [ebp - 0x24], ecx
test edx, edx
je 0x402111
mov dword [esp], edx
call sub.msvcrt.dll_wcslen
add eax, eax
mov edx, eax
mov dword [ebp - 0x64], eax
sar edx, 1
cmp edx, 7
mov dword [ebp - 0x28], edx
ja 0x4020c0
cmp edx, 1
mov eax, dword [ebp - 0x24]
je 0x402103
test edx, edx
jne 0x4020e2
xor ecx, ecx
mov dword [ebp - 0x20], edx
mov word [eax + edx*2], cx
mov dword [esp + 4], 0x4c8618
mov dword [esp], 0xc8
call fcn.004bcdf0
test eax, eax
mov dword [ebp - 0x60], eax
je 0x40208f
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], 7
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x401f70
mov dword [esp], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x58], 1
call fcn.00408f50
sub esp, 0x14
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
cmp edx, ecx
je 0x4020a1
mov dword [esp], edx
call fcn.004bcd40
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.00414c10
mov ecx, dword [ebp - 0xc]
xor ecx, dword [0x4d0240]
mov eax, dword [ebp - 0x60]
jne 0x402124
leave
ret
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x24]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004a8d20
mov edx, dword [ebp - 0x28]
sub esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x64]
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x60]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x402033
mov ecx, dword [ebp - 0x60]
movzx ecx, word [ecx]
mov word [eax], cx
jmp 0x402033
mov dword [esp], 0x4c3300
mov dword [ebp - 0x58], 0xffffffff
call fcn.004b4b90
call fcn.00404820
add ebp, 8
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x64], ecx
mov dword [esp + 4], 0x4c8618
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.004bcd50
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x1c]
cmp ecx, edx
je 0x402157
mov dword [esp], ecx
call fcn.004bcd40
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call fcn.00414f10
lea esi, [esi]
Function at 0x405020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
mov eax, dword [esi + 4]
test eax, eax
jne 0x405050
lea eax, [ebx + 8]
mov dword [ebx + 4], 0
mov byte [ebx + 8], 0
mov dword [ebx], eax
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call edi
sub esp, 0x20
test eax, eax
je 0x405036
mov dword [esp], eax
mov dword [esp + 0x2c], eax
call fcn.004bcd70
mov edx, dword [esp + 0x2c]
mov ebp, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
mov eax, dword [esi]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call edi
sub esp, 0x20
lea esi, [esp + 0x40]
mov dword [esp], ebp
mov dword [esp + 0x38], esi
call sub.msvcrt.dll_strlen
cmp eax, 0xf
mov edi, eax
mov dword [esp + 0x34], eax
ja 0x405150
cmp eax, 1
je 0x405191
test eax, eax
jne 0x4051c1
mov edx, esi
mov dword [esp + 0x3c], eax
mov byte [edx + eax], 0
mov dword [esp], ebp
call fcn.004bcd30
lea eax, [ebx + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x4051a0
mov dword [ebx], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 4], eax
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea eax, [esp + 0x34]
lea ecx, [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004a5db0
sub esp, 8
mov edx, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edx
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
jmp 0x405116
movzx edx, byte [ebp]
mov byte [esp + 0x40], dl
mov edx, esi
jmp 0x405116
mov eax, dword [esp + 0x40]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x14], eax
jmp 0x40513c
mov eax, esi
jmp 0x405177