joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d2a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f87b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x44f1a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2ac], ecx
mov ecx, dword [ebp - 0x2ac]
add ecx, 4
call fcn.00414170
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, dword [ebp - 0x2ac]
call fcn.0043cc60
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push SysReAllocString
mov ecx, dword [ebp - 0x2ac]
call fcn.0043cc60
mov ecx, dword [ebp - 0x2ac]
add ecx, 4
call fcn.004140d0
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
jne 0x43d33d
xor al, al
jmp 0x43d503
cmp dword [ebp - 0x260], 0xa
jle 0x43d34d
xor al, al
jmp 0x43d503
lea ecx, [ebp - 0x261]
call fcn.00412ba0
push eax
lea ecx, [ebp - 0x30]
call fcn.00403c80
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
push 0x444f90
mov ecx, dword [ebp - 0x2ac]
call fcn.0043c040
movzx ecx, al
test ecx, ecx
jne 0x43d3a4
mov byte [ebp - 0x262], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403a20
mov al, byte [ebp - 0x262]
jmp 0x43d503
lea edx, [ebp - 0x25c]
push edx
mov ecx, dword [ebp - 0x2ac]
call fcn.0043c500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.00403ce0
push eax
push 0x444fb0
lea ecx, [ebp - 0x30]
call fcn.00406ed0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x284]
push ecx
call fcn.00413b80
add esp, 8
mov dword [ebp - 0x2b0], eax
mov edx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2b4], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2b4]
add ecx, 4
call fcn.00403ce0
push eax
push 0x444fb4
lea ecx, [ebp - 0x30]
call fcn.00406ed0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00403a20
xor eax, eax
mov word [ebp - 0x23c], ax
push 0x206
push 0
lea ecx, [ebp - 0x23a]
push ecx
call fcn.0041c5e0
add esp, 0xc
lea edx, [ebp - 0x23c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x444fb8
lea ecx, [ebp - 0x23c]
push ecx
call fcn.0041d793
add esp, 8
lea ecx, [ebp - 0x2a5]
call fcn.00412ba0
push eax
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x2a4]
call fcn.004025a0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2a4]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00402660
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a4]
call fcn.00402df0
push 0
lea ecx, [ebp - 0x2c]
call fcn.004026a0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403ce0
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004376e0
add esp, 0x10
mov byte [ebp - 0x2a6], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.00403a20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403a20
mov al, byte [ebp - 0x2a6]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bbb4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43d5b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f34e
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x44f1a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
cmp dword [ebp + 8], 0
je 0x43d617
lea ecx, [ebp - 0x2d]
call fcn.00412ba0
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004025a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.00402660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402df0
jmp 0x43d651
lea ecx, [ebp - 0x51]
call fcn.00412ba0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x50]
call fcn.004025a0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.00402660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402df0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x43df80
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f5de
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x44f1a4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x470], ecx
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 1
mov dword [ebp - 0x14], 0x400
push 0
push 0
push 0
push 0
push str.Url_request
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x43dff8
mov eax, 0x80004005
jmp 0x43e14f
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00403120
push eax
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43e13d
mov dword [ebp - 0x424], 0
lea ecx, [ebp - 0x424]
push ecx
push 0x400
lea edx, [ebp - 0x41c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x43e065
cmp dword [ebp - 0x424], 0
jne 0x43e074
mov dword [ebp - 0x420], 0
jmp 0x43e122
mov ecx, dword [ebp - 0x424]
mov byte [ebp + ecx - 0x41c], 0
lea ecx, [ebp - 0x469]
call fcn.00412ba0
push eax
lea edx, [ebp - 0x41c]
push edx
lea ecx, [ebp - 0x468]
call fcn.004049a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x448]
push ecx
call fcn.00403140
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x468]
call fcn.00403a20
lea edx, [ebp - 0x448]
test edx, edx
je 0x43e0e7
lea eax, [ebp - 0x448]
add eax, 4
mov dword [ebp - 0x474], eax
jmp 0x43e0f1
mov dword [ebp - 0x474], 0
mov ecx, dword [ebp - 0x474]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 4
call fcn.00401220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
call fcn.00402df0
cmp dword [ebp - 0x420], 0
jne 0x43e026
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x43e14f
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041bbb4
mov esp, ebp
pop ebp
ret 8
Function at 0x43e170
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f629
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x44f1a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], ecx
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x94]
call fcn.0043db90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x71]
call fcn.00412ba0
push eax
lea ecx, [ebp - 0x70]
call fcn.004030c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x94]
call fcn.0043df80
test eax, eax
je 0x43e20d
mov dword [ebp - 0x78], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00402df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402df0
mov eax, dword [ebp - 0x78]
jmp 0x43e378
lea ecx, [ebp - 0x6c]
call fcn.00401e80
movzx eax, al
test eax, eax
je 0x43e246
mov dword [ebp - 0x7c], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00402df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402df0
mov eax, dword [ebp - 0x7c]
jmp 0x43e378
lea ecx, [ebp - 0x7d]
call fcn.00412ba0
push eax
lea ecx, [ebp - 0x30]
call fcn.004030c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
push ecx
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x84], esp
lea edx, [ebp - 0x70]
push edx
call fcn.00402d50
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x94]
call fcn.0043dc60
mov byte [ebp - 0x9d], al
movzx ecx, byte [ebp - 0x9d]
test ecx, ecx
jne 0x43e2e5
mov dword [ebp - 0x88], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00402df0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00402df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402df0
mov eax, dword [ebp - 0x88]
jmp 0x43e378
push 5
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403120
push eax
push 0x4451d4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x43e341
mov dword [ebp - 0x8c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00402df0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00402df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402df0
mov eax, dword [ebp - 0x8c]
jmp 0x43e378
mov dword [ebp - 0x90], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00402df0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00402df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402df0
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bbb4
mov esp, ebp
pop ebp
ret 4
Function at 0x471211
Capabilities:
Encode data using xor

Disassembly:
add byte [ebx], dh
add byte [ebx], dh
add byte [eax + eax + 0x53], al
add byte [ebx], cl
add byte cs:[ebx], al
push edx
add byte [eax + eax], dl
add byte [eax], al
add byte [0x4de81600], cl
add byte [ecx], dh
add byte [eax], dh
add byte [ebx], dh
add byte [ebx], dh
add byte [eax + eax + 0x53], al
add byte [ebx], cl
add byte cs:[ebx], al
push ebx
add byte [eax + eax], al
add byte [eax], al
add byte [0x4ddda100], cl
add byte [ecx], dh
add byte [eax], dh
add byte [ebx], dh
add byte [ebx], dh
add byte [eax + eax + 0x53], al
add byte [ebx], cl
add byte cs:[ecx], cl
inc esp
add byte [eax], bl
add byte [eax], al
add byte [eax], al
or eax, 0x4df83400
add byte [ecx], dh
add byte [eax], dh
add byte [ebx], dh
add byte [ebx], dh
add byte [eax + eax + 0x53], al
add byte [ebx], cl
add byte cs:[eax + eax + 0x54], cl
add byte [ebx], dl
add byte [eax], al
add byte [eax], al
or eax, 0x4dfa2000
add byte [ecx], dh
add byte [eax], dh
add byte [ebx], dh
add byte [ebx], dh
add byte [eax + eax + 0x53], al
add byte [ebx], cl
add byte cs:[ebp], dl
inc esp
add byte [eax + eax], dl
add byte [eax], al
add byte [0x4df47c00], cl
add byte [ecx], dh
add byte [eax], dh
add byte [ebx], dh
add byte [ebx], dh
add byte [eax + eax + 0x53], al
add byte [ebx], cl
add byte cs:[ebp], dl
dec esi
add byte [eax + eax], dl
add byte [eax], al
add byte [0x4dd2da00], cl
add byte [ecx], dh
add byte [eax], dh
add byte [ebx], dh
add byte [ebx], dh
add byte [eax + eax + 0x53], al
add byte [ebx], cl
add byte cs:[edi], dl
dec ecx
add byte [eax], cl
add byte [eax], al
add byte [eax], al
xor al, byte [eax]
jg 0x4712e8
inc ebx
add byte [edx], bh
add byte [eax + eax + 0x57], bl
add byte [ecx], ch
outsb dx, byte [esi]
add byte [eax + eax + 0x6f], ah
add byte [edi], dh
jae 0x471300
add byte cs:[edi], ch
insb byte es:[edi], dx
add byte [eax + eax + 0x5c], ah
add byte [eax], dl
jb 0x47130e
outsd dx, dword [esi]
add byte [edi], ah
jb 0x471314
popal
add byte [ebp], ch
and byte [eax], al
inc esi
add byte [ecx], ch
insb byte es:[edi], dx
add byte [ebp], ah
jae 0x471324
pop esp
add byte [ebx], al
outsd dx, dword [esi]
add byte [ebp], ch
insd dword es:[edi], dx
add byte [edi], ch
outsb dx, byte [esi]
add byte [eax], ah
add byte [esi], al
imul eax, dword [eax], 0x65006c
jae 0x47133e
pop esp
add byte [ebx], dl
jns 0x471344
jae 0x471346
je 0x471348
add byte gs:[ebp], ch
pop esp
add byte [eax], al
add byte [0x44cab100], cl
add byte [ecx], ch
jb 0x47135a
add byte gs:[ebx], ah
je 0x471360
inc esp
add byte [edx], al
add byte cs:[eax + eax + 0x6c], ah
add byte [eax + eax], ch
add byte [eax], al
add byte [edx], cl
add byte [ecx + eax*8], al
ja 0x471376
popal
add byte [edx], ah
xor eax, dword [eax]
xor al, byte [eax]
add byte cs:[eax + eax + 0x6c], ah
add byte [eax + eax], ch
add byte [0x77d0fe00], cl
add byte [ecx], ah
bound eax, qword [eax]
xor eax, dword [eax]
xor al, byte [eax]
jb 0x471398
add byte gs:[ebx], dh
add byte cs:[eax + eax + 0x6c], ah
add byte [eax + eax], ch
add byte [eax], al
add byte [esi], dh
add byte [esi], cl
ret 0x43
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x416710]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x14
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00405ba0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push section..data
lea edx, [ebp - 0x110]
push edx
call fcn.00405b88
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x4010a2
push 2
push 0xfffffffffffffff4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00405a3f
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 1
push 0xc
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
call fcn.00405998
add esp, 0x10
cmp eax, 1
jne 0x4010a2
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0x214158
jne 0x4010a2
mov eax, 1
jmp 0x4010a4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c1a
mov esp, ebp
pop ebp
ret

Function at 0x401120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00405a3f
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x401156
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0xc]
jae 0x40124f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 1
push 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.00405998
add esp, 0x10
cmp eax, 1
jne 0x40124a
cmp dword [ebp - 0x14], 0x214658
jne 0x40124a
push 0x14
call fcn.00406004
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
call fcn.00406004
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00405ba0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call fcn.00405998
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00405f47
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x10], 0
cmp dword [ebp - 0x1c], 0
jne 0x401224
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
jmp 0x40122d
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push 1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00405a3f
add esp, 0xc
jmp 0x40114d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x401310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00405a3f
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00405f47
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 4]
je 0x40134e
xor eax, eax
jmp 0x4013c3
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.00406004
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4013c0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.00405998
add esp, 0x10
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 8]
jne 0x4013b4
mov edx, dword [ebp + 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00402e70
add esp, 0x10
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call fcn.00405d1c
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x401420
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8054
call fcn.00406370
mov eax, dword [0x416710]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x404c], 0
cmp dword [ebp + 0xc], 0
jne 0x40144e
xor eax, eax
jmp 0x401669
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00405a3f
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00405f47
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 4]
je 0x401482
xor eax, eax
jmp 0x401669
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x400c], eax
mov dword [ebp - 0x4024], 0
mov dword [ebp - 0x4020], 0
mov dword [ebp - 0x401c], 0
mov dword [ebp - 0x4040], 0
mov dword [ebp - 0x4044], 0
push 0x38
push str.1.2.4
lea ecx, [ebp - 0x4044]
push ecx
call fcn.004030e0
add esp, 0xc
mov dword [ebp - 0x4048], eax
cmp dword [ebp - 0x4048], 0
je 0x4014ec
xor eax, eax
jmp 0x401669
cmp dword [ebp - 0x400c], 0x4000
jbe 0x401504
mov dword [ebp - 0x8054], 0x4000
jmp 0x401510
mov edx, dword [ebp - 0x400c]
mov dword [ebp - 0x8054], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x8054]
push edx
push 1
lea eax, [ebp - 0x4008]
push eax
call fcn.00405998
add esp, 0x10
mov dword [ebp - 0x4040], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.0040633c
add esp, 4
test eax, eax
je 0x40155c
lea eax, [ebp - 0x4044]
push eax
call fcn.004047e0
add esp, 4
xor eax, eax
jmp 0x401669
cmp dword [ebp - 0x4040], 0
jne 0x40156a
jmp 0x401655
lea ecx, [ebp - 0x4008]
mov dword [ebp - 0x4044], ecx
mov edx, dword [ebp - 0x400c]
sub edx, dword [ebp - 0x4040]
mov dword [ebp - 0x400c], edx
mov dword [ebp - 0x4034], 0x4000
lea eax, [ebp - 0x8050]
mov dword [ebp - 0x4038], eax
push 0
lea ecx, [ebp - 0x4044]
push ecx
call fcn.00403210
add esp, 8
mov dword [ebp - 0x4048], eax
cmp dword [ebp - 0x4048], 2
je 0x4015c7
cmp dword [ebp - 0x4048], 0xfffffffe
jne 0x4015d0
xor eax, eax
jmp 0x401669
cmp dword [ebp - 0x4048], 0xfffffffc
jne 0x4015ec
lea edx, [ebp - 0x4044]
push edx
call fcn.004047e0
add esp, 4
xor eax, eax
jmp 0x401669
mov eax, 0x4000
sub eax, dword [ebp - 0x4034]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
lea eax, [ebp - 0x8050]
push eax
call fcn.004062ba
add esp, 0x10
cmp eax, dword [ebp - 4]
jne 0x401628
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040633c
add esp, 4
test eax, eax
je 0x40163b
lea edx, [ebp - 0x4044]
push edx
call fcn.004047e0
add esp, 4
xor eax, eax
jmp 0x401669
cmp dword [ebp - 0x4034], 0
je 0x401588
cmp dword [ebp - 0x400c], 0
ja 0x4014ec
lea eax, [ebp - 0x4044]
push eax
call fcn.004047e0
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405c1a
mov esp, ebp
pop ebp
ret
Function at 0x401ac0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x416710]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0xc]
push eax
push 0x413e70
push 1
push 0
push 0x413e90
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x401bdd
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
call edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
call ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
call edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
call edx
lea eax, [ebp - 8]
push eax
push 0x413e80
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
call ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x401bcf
push 0x104
lea edx, [ebp - 0x220]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
call edx
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00405c1a
mov esp, ebp
pop ebp
ret

Function at 0x401c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x401c23
xor eax, eax
jmp 0x401c6a
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x401c67
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret