joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002660
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100080fc], 0
je 0x10002679
mov eax, dword [0x100080fc]
jmp 0x10002719
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000268b
xor eax, eax
jmp 0x10002719
push 8
call fcn.10003829
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100026e1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100026ca
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10003ee7
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100080fc], eax
mov dword [0x10008100], 0
mov eax, dword [ebp - 8]
jmp 0x10002719
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100026fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100026ab
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10008104]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10008104], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100035c0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10003655
push esi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
mov dword [0x1000847c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
push eax
push 0x100063ec
push str.CONOUT_
call esi
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
push 0x100063f8
push str.CONIN_
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x20
push 0
push 0
push 0
push 0x10003500
push 0
push 0
call esi
push 0
push 0
push 0
push 0x100033f0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10003580
push 0
push 0
call esi
pop esi
mov eax, 1
pop ebp
ret 0xc
Function at 0x443718
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov cx, word [esp]
lea esp, [esp + 4]
inc edi
xchg ah, al
jmp 0x4436d3

Function at 0x4e3735
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [esp + 7], ecx
mov byte [esp + 0x1b], ch
push dword [esp + 2]
mov dword [esp + 0x2c], esp
pushal
mov byte [esp + 0x15], al
jmp 0x4e3703
Function at 0x9dccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dcd1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dcce2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dcd80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dcdd2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dcdd8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f52c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f4f85

Function at 0x9fa0bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f9f3e

Function at 0x9ff670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9ff69d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9ff69d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x71c66832
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..reloc
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3b2b618b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x41eb1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x62a0cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0x642258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0x642258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0x6410e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec9d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62a0d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x45d05a]
shl eax, 2
mov dword [0x45d05e], eax
push edi
push ecx
xor eax, eax
mov edi, 0x4656d8
mov ecx, 0x4d11c4
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov dword [0x45d06e], edx
mov eax, dword [edx - 8]
mov dword [0x45d066], eax
mov eax, dword [edx - 4]
mov dword [0x45d06a], eax
sub edx, 4
mov dword [0x4cdee0], edx
sub edx, 4
cmp edx, esp
jae 0x401054
mov esp, edx
push 0
call fcn.0045561a
pop ecx
push 0x45d02c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x45d062], eax
push 0
jmp fcn.0045ad54
Function at 0x4038a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff0c8
mov edx, 0x45dde9
push ebx
push esi
push edi
lea edi, [ebp - 0x938]
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0x408]
mov eax, esi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x40390a
test cl, cl
je 0x4038e2
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40390a
add eax, 2
add edx, 2
test cl, cl
jne 0x4038c6
jne 0x40390a
push 1
push ebx
push 0x465fe5
call fcn.0041e548
dec eax
jne 0x403af0
push 0
push 1
push 0
push 1
call fcn.0040da34
jmp 0x403af0
push 0x938
push 0
push edi
call fcn.00452e2c
add esp, 0xc
xor eax, eax
or ecx, 0xffffffff
push esi
push edi
lea esi, [edi + 0x40c]
mov edi, 0x4668cb
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebx + 0x808]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push esi
push edi
lea esi, [edi + 0x50c]
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
pop edi
mov al, byte [ebx + 0xc08]
pop esi
cmp eax, 0x45
setne dl
and edx, 1
cmp eax, 0x54
sete cl
mov dword [edi + 0x90c], edx
and ecx, 1
mov dword [edi + 0x910], ecx
mov eax, dword [ebx + 0x1c08]
mov dword [edi + 0x404], eax
mov edx, dword [ebx + 0x1c0c]
mov dword [edi + 0x408], edx
mov ecx, dword [ebx + 0x1c40]
mov dword [edi + 0x928], ecx
mov eax, dword [ebx + 0x1c50]
mov dword [edi + 0x924], eax
mov edx, dword [ebx + 0x1c58]
mov dword [edi + 0x918], edx
mov ecx, dword [ebx + 0x1c54]
mov dword [edi + 0x914], ecx
mov eax, dword [ebx + 0x1c68]
mov dword [edi + 0x92c], eax
mov edx, dword [ebx + 0x1c6c]
mov dword [edi + 0x930], edx
mov ecx, dword [ebx + 0x1c30]
mov dword [edi + 0x934], ecx
cmp byte [ebx + 0x408], 0
je 0x403a27
lea eax, [ebp - 0xd38]
push eax
push 0x400
call sub.KERNEL32.dll_GetCurrentDirectoryA
push esi
call fcn.00408838
xor esi, esi
jmp 0x403adb
mov eax, esi
shl eax, 8
add eax, esi
shl eax, 2
add eax, dword [ebx + 0x400]
push esi
push edi
mov esi, edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
mov edx, dword [ebx + 0x400]
shl eax, 8
add eax, esi
mov ecx, dword [edx + eax*4 + 0x400]
mov dword [edi + 0x400], ecx
push edi
call fcn.0040809c
push eax
mov eax, 0x20b
cmp dword [edi + 0x910], 0
jne 0x403a93
dec eax
push eax
call fcn.00408028
push eax
lea edx, [ebp - 0xf38]
push edx
call fcn.00456f9c
add esp, 0xc
lea ecx, [ebp - 0xf38]
push ecx
call fcn.00413da8
lea eax, [ebx + 0x408]
push eax
call fcn.00457f40
pop ecx
push edi
push 0x465fe5
call fcn.0041ecdc
lea edx, [ebp - 0xd38]
push edx
call fcn.00457f40
pop ecx
inc esi
cmp esi, dword [ebx + 0x404]
jge 0x403af0
cmp dword [0x466aa4], 0
je 0x403a2e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4044b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x2a
jne 0x4044cf
mov byte [ebx], 0
cmp byte [ebx], 0
jne 0x4044fe
mov edx, dword [ebp + 0xc]
sub edx, 1
jb 0x4044e0
je 0x4044ee
jmp 0x4044fb
mov esi, 0x45de02
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x4044fe
mov esi, 0x45de0e
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x4044fe
mov byte [ebx], 0
cmp byte [ebx], 0
je 0x40457c
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x404517
push ebx
push ebx
call fcn.004085c4
jmp 0x40457c
push 0x400
lea edx, [ebp - 0x400]
push edx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
lea ecx, [ebp - 0x400]
push ecx
call fcn.0040809c
mov esi, eax
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0x400]
or ecx, 0xffffffff
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404658
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbec
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1c0c], 0
je 0x40477c
push 1
push esi
push 0x465fe5
call fcn.0041e548
dec eax
jne 0x40477c
xor eax, eax
xor edx, edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
push ecx
push eax
push 0x465fe5
call fcn.0041f098
cmp dword [ebp - 8], 0
je 0x40477c
mov edx, dword [esi + 0x1c08]
xor eax, eax
push esi
mov edi, edx
or ecx, 0xffffffff
lea esi, [ebp - 0x414]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x414]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push eax
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x404717
lea edx, [ebp - 0x414]
push edx
lea ecx, [ebp - 0x14]
push ecx
call fcn.0041950c
xor eax, eax
mov al, byte [ebp - 0x14]
cmp eax, 0x43
je 0x40470b
cmp eax, 0x4e
jne 0x404717
mov edx, dword [ebp - 4]
push edx
call fcn.00459d7c
pop ecx
jmp 0x40477c
push 0x45de16
lea ecx, [ebp - 0x414]
push ecx
call fcn.00455e68
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x404758
lea eax, [ebp - 0x414]
push eax
push 0x1f6
call fcn.00408028
push eax
push esi
call fcn.00408c78
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call fcn.00459d7c
pop ecx
jmp 0x40477c
push ebx
mov ecx, dword [ebp - 8]
push ecx
push 1
mov eax, dword [ebp - 4]
push eax
call fcn.004562d0
add esp, 0x10
push ebx
call fcn.004559e4
pop ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00459d7c
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
push ebx
push esi
mov ebx, dword [ebp + 0x10]
mov esi, 0x45e35c
push 0x4c
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00452e2c
mov dword [ebp - 0x4c], 0x4c
mov edx, dword [ebp + 8]
mov ecx, dword [0x466a00]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x400
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
push ebx
call fcn.0040809c
cmp ebx, eax
jne 0x405770
lea edx, [ebp - 0x44c]
push edx
push 0x400
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], 0x1080c
lea eax, [ebp - 0x4c]
push eax
call sub.COMDLG32.dll_GetOpenFileNameA
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40670c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
lea eax, [ebp - 4]
push eax
push 0x463248
push 1
push 0
push 0x4631e8
call sub.OLE32.dll_CoCreateInstance
mov ebx, eax
test ebx, ebx
jl 0x4067a5
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x1c]
lea eax, [ebp - 8]
push eax
push 0x463a98
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx]
mov ebx, eax
test ebx, ebx
jl 0x40679c
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
push 1
lea ecx, [ebp - 0x210]
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406d34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 4], 0x50
lea eax, [ebp - 4]
lea edx, [ebp - 0x54]
push eax
push edx
mov ecx, dword [ebp + 8]
push ecx
push 0x80000000
call sub.ADVAPI32.dll_RegQueryValueA
test eax, eax
je 0x406d5f
xor eax, eax
jmp 0x406d92
push 0x45ef76
lea edx, [ebp - 0x54]
push edx
call fcn.00453000
add esp, 8
test eax, eax
je 0x406d8d
push 0x45ef7d
lea ecx, [ebp - 0x54]
push ecx
call fcn.00453000
add esp, 8
test eax, eax
je 0x406d8d
xor eax, eax
jmp 0x406d92
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4082dc
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.dll_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret

Function at 0x408648
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push 0
push ebx
call sub.KERNEL32.dll_SetFileAttributesA
push ebx
call fcn.0045593c
pop ecx
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x400]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x400]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x5c
push eax
call fcn.00453124
add esp, 8
mov ebx, eax
test eax, eax
je 0x4086a5
mov byte [ebx], 0
lea edx, [ebp - 0x400]
push edx
call sub.KERNEL32.dll_RemoveDirectoryA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408710
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x408829
push esi
call fcn.00452eec
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x408829
push 0
call sub.USER32.dll_OpenClipboard
test eax, eax
jne 0x408748
xor eax, eax
jmp 0x40882e
call sub.USER32.dll_EmptyClipboard
mov edi, dword [ebp - 4]
inc edi
push edi
push 0x2002
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
test eax, eax
je 0x40878f
push ebx
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 8], eax
test eax, eax
je 0x40878f
mov edx, dword [ebp - 4]
inc edx
push edx
push esi
mov ecx, dword [ebp - 8]
push ecx
call fcn.00452dbc
add esp, 0xc
push ebx
call sub.KERNEL32.dll_GlobalUnlock
push ebx
push 1
call sub.USER32.dll_SetClipboardData
push edi
push 0x2002
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
test eax, eax
je 0x4087da
push ebx
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 8], eax
test eax, eax
je 0x4087da
mov edx, dword [ebp - 4]
inc edx
push edx
push esi
mov ecx, dword [ebp - 8]
push ecx
call fcn.00452dbc
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 8]
push edx
call sub.USER32.dll_CharToOemA
push ebx
call sub.KERNEL32.dll_GlobalUnlock
push ebx
push 7
call sub.USER32.dll_SetClipboardData
cmp dword [0x466a14], 2
jne 0x408824
mov ecx, edi
add ecx, ecx
push ecx
push 0x2002
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
test eax, eax
je 0x408824
push ebx
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 8], eax
test eax, eax
je 0x408824
push edi
mov edx, dword [ebp - 8]
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
push ebx
call sub.KERNEL32.dll_GlobalUnlock
push ebx
push 0xd
call sub.USER32.dll_SetClipboardData
call sub.USER32.dll_CloseClipboard
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x408838
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, esi
jmp 0x408853
mov byte [ebx], 0
push 0
push esi
call sub.KERNEL32.dll_CreateDirectoryA
mov byte [ebx], 0x5c
inc ebx
cmp byte [ebx], 0
je 0x408869
push 0x5c
push ebx
call fcn.00452e98
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408844
push 0
push esi
call sub.KERNEL32.dll_CreateDirectoryA
pop esi
pop ebx
pop ebp
ret 4
Function at 0x40914c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 4]
push eax
call sub.SHELL32.DLL_SHGetMalloc
lea edx, [ebp - 8]
push edx
push 0x10
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov ecx, dword [ebp + 8]
push ecx
mov eax, dword [ebp - 8]
push eax
call sub.SHELL32.DLL_SHGetPathFromIDList
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x409d38
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff800
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x409e4d
push 0
push 0
push 0x147
push eax
call sub.USER32.dll_SendMessageA
mov edi, eax
cmp edi, 0xffffffff
je 0x409e4d
push 0
push edi
push 0x150
mov eax, dword [esi + 0xc]
push eax
call sub.USER32.dll_SendMessageA
cmp eax, 0x20
jge 0x409d99
push 0
push eax
call fcn.0040ab40
push 0x45f1f3
call fcn.0040abf8
jmp 0x409e22
sub eax, 0x100
je 0x409da7
sub eax, 2
je 0x409dc1
jmp 0x409e22
lea edx, [ebp - 0x400]
push edx
call fcn.0040914c
lea ecx, [ebp - 0x400]
push ecx
call fcn.0040abf8
jmp 0x409e22
lea ebx, [ebp - 0x800]
lea eax, [ebp - 0x800]
push eax
push 0x400
call sub.KERNEL32.dll_GetCurrentDirectoryA
test edi, edi
jle 0x409e22
test ebx, ebx
je 0x409ded
push 0x5c
push ebx
call fcn.00452e98
add esp, 8
mov ebx, eax
push 0
push edi
push 0x150
mov edx, dword [esi + 0xc]
push edx
call sub.USER32.dll_SendMessageA
cmp eax, 0x20
jge 0x409e18
test ebx, ebx
je 0x409e0a
mov byte [ebx], 0
lea ecx, [ebp - 0x800]
push ecx
call fcn.0040abf8
jmp 0x409e22
test ebx, ebx
je 0x409e1d
inc ebx
dec edi
test edi, edi
jg 0x409ddc
push 0x4656f0
call fcn.0041830d
push eax
call sub.USER32.dll_SetFocus
cmp dword [0x45d93c], 0
jne 0x409e4d
inc dword [0x45d93c]
push esi
call fcn.0040a198
dec dword [0x45d93c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4