joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48fed0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cd870
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x490077
mov ecx, dword [0x56d984]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x48ffcc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0048ebf0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004bb173
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004bb03a
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x56a468
call fcn.004bb0a8
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0048efb0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004bb173
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004bb03a
lea ecx, [esp + 0xc]
call fcn.004bb54e
mov ecx, dword [esp + 0xc]
push 0x56aea4
push ecx
call fcn.004a99f4
add esp, 8
test eax, eax
je 0x48fff4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x48ff2d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004bb03a
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004bb03a
jmp 0x49007b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0048fc70
test eax, eax
push 0
je 0x49005f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0048e310
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x490045
cmp eax, 0x64
jg 0x490033
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x48ffd0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x48ffd0
cmp eax, 0x64
jge 0x48ffcc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x48ffd0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0048e310
mov esi, eax
jmp 0x48ffd0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x490085
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x497420
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x497486
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x497486
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x497467
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x497810
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x497848
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x498480
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4984c9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x498940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cdc20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004984f0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00498570
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00498570
lea ecx, [esi + 0xc]
call fcn.004bafc5
lea ecx, [esi + 0x10]
call fcn.004bafc5
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00499b00
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00499b00
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00499b00
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004bb03a
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004bb03a
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x49ba20
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x56babc]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x49ba33
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x49ba74
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x56bb64]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x49baa6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49baaa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x49ba9b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x49bac8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49bacc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x49babd
xor ecx, ecx
mov eax, 0x56bacc
xor ebx, ebx
mov bl, byte [ecx + 0x56bb74]
cmp byte [esp + ebx + 0x14], 0
je 0x49baf7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x56bb8c]
cmp byte [esp + ebx + 0x14], 0
je 0x49bb0e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x49bade
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x49ba67
lea edx, [esp + 0x84]
push edx
call fcn.0049bb50
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4bd494
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4bd4cc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004bb4e1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004bb4b9
jmp 0x4bd4d8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4beb82
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bebc4
call fcn.004c4e02
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4bebc4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bebbb
xor eax, eax
jmp 0x4bebcc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bebd2
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c5332
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c5360
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c537e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c5298
jmp 0x4c537e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c537e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c5298
test edi, edi
mov eax, edi
jne 0x4c5368
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x408965
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
and esi, eax
or esi, eax
call fcn.0040898a
xor dword [edi], edx
inc edi
and esi, esi
or eax, eax
cmp edi, ecx
jne fcn.00408965
add eax, 0x296db8dc
mov eax, 0x6ec476c2
ret
Function at 0x401c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x28
mov eax, dword [0x4201d0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, edi
mov dword [esp + 0x14], edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c20
sub eax, edx
sar eax, 1
test al, 7
jne 0x401d59
shr eax, 3
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0x80
cmp ecx, 0x80
ja 0x401c54
mov dword [esp + 0x18], ecx
xor eax, eax
xor esi, esi
mov ebx, edi
mov ebp, edi
mov word [esp + 0x20], ax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
test ecx, ecx
jbe 0x401d40
mov eax, 0x421040
sub eax, 2
mov dword [esp + 0x10], eax
xor eax, eax
jmp 0x401c90
movzx ecx, word [ebx]
test cx, cx
je 0x401d59
mov word [esp + eax*2 + 0x20], cx
inc eax
add ebx, 2
cmp eax, 8
jb 0x401c90
xor ecx, ecx
mov word [esp + 0x30], cx
call fcn.00408be7
push 0x10
lea edx, [esp + 0x24]
push 0
push edx
mov dword [eax], 0
call fcn.00408eb1
add esp, 0xc
mov edi, eax
call fcn.00408be7
cmp dword [eax], 0x22
je 0x401d55
cmp esi, dword [esp + 0x18]
jae 0x401d21
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
lea eax, [edx + edx*2]
mov ecx, eax
mov eax, esi
sub eax, ecx
sub eax, 0
je 0x401d17
sub eax, 1
je 0x401d07
movzx edx, word [esi*2 + 0x421140]
xor edi, edx
jmp 0x401d21
mov eax, dword [esp + 0x10]
movzx ecx, word [eax]
mov eax, edi
cdq
idiv ecx
mov edi, eax
jmp 0x401d21
movzx edx, word [esi*2 + 0x420f3a]
sub edi, edx
add dword [esp + 0x10], 2
mov word [ebp], di
mov edi, dword [esp + 0x14]
inc esi
add ebp, 2
cmp esi, dword [esp + 0x1c]
jb 0x401c85
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov word [ebp], ax
cmp word [ebx], ax
jne 0x401d59
sub ebp, edi
sar ebp, 1
cmp ebp, ecx
je 0x401d5e
jmp 0x401d59
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov word [edi], cx
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408b96
add esp, 0x28
ret
Function at 0x401d80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d90
sub eax, edx
push ebx
sar eax, 1
mov ebx, eax
push esi
push edi
mov dword [esp + 0x10], 0x80
cmp ebx, 0x80
ja 0x401db8
mov dword [esp + 0x10], ebx
lea edi, [ebx*8 + 1]
lea eax, [edi + edi]
push eax
xor esi, esi
push esi
call dword [0x417184]
push eax
call dword [0x417188]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
test eax, eax
je 0x401eba
push ebp
mov ebp, eax
test ebx, ebx
jbe 0x401e83
mov eax, 0x421040
sub eax, 2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
sub eax, 0x421140
mov dword [esp + 0x18], eax
jmp 0x401e14
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + esi*2 + 0x421140]
cmp esi, dword [esp + 0x14]
jae 0x401e5e
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
lea edx, [edx + edx*2]
mov eax, esi
sub eax, edx
sub eax, 0
je 0x401e54
sub eax, 1
je 0x401e48
movzx eax, word [esi*2 + 0x421140]
xor ecx, eax
jmp 0x401e5e
mov edx, dword [esp + 0x10]
movzx eax, word [edx]
imul ecx, eax
jmp 0x401e5e
movzx edx, word [esi*2 + 0x420f3a]
add ecx, edx
push ecx
push 0x4195ec
push edi
push ebp
call fcn.00408edc
add esp, 0x10
cmp eax, 0xffffffff
je 0x401e90
add dword [esp + 0x10], 2
inc esi
add ebp, 0x10
sub edi, 8
cmp esi, ebx
jb 0x401e10
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
test eax, eax
je 0x401eb0
push eax
push 0
call dword [0x417184]
push eax
call dword [0x417180]
mov dword [esi], 0
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x40a182
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40a1c5
call fcn.004050a3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a1c5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a1e0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00409d39
test ebx, ebx
mov esi, eax
je 0x40a1de
test edi, edi
je 0x40a1de
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40b81f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40b84d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b86b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040b789
jmp 0x40b86b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40b86b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040b789
test edi, edi
mov eax, edi
jne 0x40b855
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x42eb18]
test ecx, ecx
je 0x40b92e
jmp 0x40b81e
ret 8

Function at 0x40e965
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42bb4c]
jne 0x40e96f
repz ret
jmp fcn.004134dc

Function at 0x41a8e7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x41a914
call fcn.0040fabf
mov dword [eax], esi
call fcn.0040faac
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00413a99
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x41a8f0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a943
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040fad2
pop ecx
call fcn.0040faac
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41a96a
test al, 1
je 0x41a96a
test byte [esp + 0xc], 2
je 0x41a96a
call fcn.0040fabf
mov dword [eax], 5
call fcn.0040faac
mov dword [eax], 0xd
jmp 0x41a93a
xor eax, eax
pop esi
ret
Function at 0x41a96e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00412f25
xor ebx, ebx
cmp dword [0x42f87c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41aa43
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41a9ae
xor eax, eax
jmp 0x41ab07
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42608c
push edi
call esi
cmp eax, ebx
je 0x41a9a7
push eax
call fcn.00412ec2
mov dword [esp], 0x42607c
push edi
mov dword [0x42f87c], eax
call esi
push eax
call fcn.00412ec2
mov dword [esp], 0x426068
push edi
mov dword [0x42f880], eax
call esi
push eax
call fcn.00412ec2
mov dword [0x42f884], eax
lea eax, [ebp - 8]
push eax
call fcn.0040f60e
test eax, eax
pop ecx
pop ecx
je 0x41aa11
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041399d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41aa43
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00412ec2
cmp eax, ebx
pop ecx
mov dword [0x42f88c], eax
je 0x41aa43
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412ec2
pop ecx
mov dword [0x42f888], eax
mov eax, dword [0x42f888]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41aabc
cmp dword [0x42f88c], esi
je 0x41aabc
push eax
call fcn.00412f2e
pop ecx
call eax
cmp eax, ebx
je 0x41aa89
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42f88c]
call fcn.00412f2e
pop ecx
call eax
test eax, eax
je 0x41aa89
test byte [ebp - 0x18], 1
jne 0x41aabc
lea eax, [ebp - 0xc]
push eax
call fcn.0040f645
test eax, eax
pop ecx
je 0x41aaa4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041399d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41aab3
or dword [ebp + 0x10], 0x200000
jmp 0x41aaed
or dword [ebp + 0x10], 0x40000
jmp 0x41aaed
mov eax, dword [0x42f880]
cmp eax, esi
je 0x41aaed
push eax
call fcn.00412f2e
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41aaed
mov eax, dword [0x42f884]
cmp eax, esi
je 0x41aaed
push dword [ebp - 4]
push eax
call fcn.00412f2e
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42f87c]
call fcn.00412f2e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4210ae
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42bb4c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00421043
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040faf0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4210fd
cmp dword [ebp - 0x1c], 5
jb 0x421115
jmp 0x421111
cmp dword [ebp - 0x10], 1
jne 0x421115
cmp dword [ebp - 0x1c], 4
ja 0x421111
jne 0x421115
cmp dword [ebp - 0x18], 0
jbe 0x421115
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x426a34
call fcn.00420f34
test eax, eax
jge 0x421136
mov byte [0x42d004], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e965
add ebp, 0x78
leave
ret
Function at 0x411c30
Capabilities:
Get common file path
Get disk information
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push edi
mov edi, dword [esp + 0x810]
push 0x400
push 0x4c7a6a
lea eax, [esp + 0x10]
push eax
push str.TempFolder
push 0x4c7a48
mov byte [edi], 0
call fcn.00461370
cmp byte [esp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
jne 0x411c94
cmp byte [0x529c54], 0
je 0x411d50
lea ecx, [esp + 8]
push ecx
push 0x400
call esi
push 0x400
lea edx, [esp + 0x40c]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x411cd1
cmp eax, 0x400
jae 0x411cd1
push 0x400
lea ecx, [esp + 0x40c]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.004b26d0
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
call fcn.00435a70
test al, al
jne 0x411ced
lea ecx, [esp + 8]
push ecx
push 0x400
call esi
push 1
push str.TempRemovableOnly
push 0x4c7a48
call fcn.00460ee0
test eax, eax
je 0x411d33
cmp byte [0x529c54], 0
jne 0x411d33
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x411d1d
cmp eax, 5
jne 0x411d4a
lea eax, [esp + 8]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x411d27
jmp 0x411d4a
lea eax, [esp + 8]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x411d40
push edi
call fcn.00456ce0
mov ecx, dword [esp + 0x808]
pop edi
pop esi
xor ecx, esp
call fcn.004b102c
add esp, 0x804
ret 4
Function at 0x416190
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x148
push ebp
push esi
mov esi, ecx
lea ebp, [esi + 4]
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x804], eax
test eax, eax
jne 0x4161df
push ebp
call fcn.0048c380
test eax, eax
je 0x4161d4
cmp eax, 0x20
je 0x4161d4
push ebp
push eax
push 0x20
push 0x5c8
call fcn.004671c0
push eax
call fcn.0049a620
add esp, 0x10
pop esi
xor al, al
pop ebp
add esp, 0x148
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Prepare
push eax
call edi
mov dword [esi + 0x9e0], eax
mov eax, dword [esi + 0x804]
push str.Open
push eax
call edi
mov ecx, dword [esi + 0x804]
push 0x4c7d54
push ecx
mov dword [esi + 0x9e4], eax
call edi
mov edx, dword [esi + 0x804]
push str.GetNextName
push edx
mov dword [esi + 0x9e8], eax
call edi
mov dword [esi + 0x9ec], eax
mov eax, dword [esi + 0x804]
push str.GetListItem
push eax
call edi
mov ecx, dword [esi + 0x804]
push str.Extract
push ecx
mov dword [esi + 0x9f0], eax
call edi
mov edx, dword [esi + 0x804]
push str.GetComment
push edx
mov dword [esi + 0x9f4], eax
call edi
cmp dword [esi + 0x9e0], 0
mov dword [esi + 0x9f8], eax
je 0x4163e6
cmp dword [esi + 0x9e4], 0
je 0x4163e6
push 0x148
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004b14b0
add esp, 0xc
mov dword [esp + 0xc], 0x148
mov dword [esp + 0x10], 0x4113e0
mov dword [esp + 0x14], 0x411530
mov dword [esp + 0x18], 0x411540
mov dword [esp + 0x44], 0x411550
mov dword [esp + 0x20], 0x411560
mov dword [esp + 0x2c], 0x4116f0
mov dword [esp + 0x30], 0x411710
mov dword [esp + 0x38], 0x411720
mov dword [esp + 0x3c], 0x413870
mov dword [esp + 0x34], 0x413a30
mov dword [esp + 0x48], 0x411810
mov dword [esp + 0x4c], 0x411820
mov dword [esp + 0x24], 0x411830
mov dword [esp + 0x54], 0x411890
mov dword [esp + 0x28], 0x411910
mov dword [esp + 0x40], 0x411a40
mov dword [esp + 0x58], 0x411a80
mov dword [esp + 0x5c], 0x411a90
mov dword [esp + 0x60], 0x411aa0
mov dword [esp + 0x64], 0x411ab0
mov dword [esp + 0x1c], 0x415bd0
mov dword [esp + 0x50], 0x411ac0
call fcn.00444e60
push 0x1d8
lea edi, [esi + 0x808]
push 0
push edi
mov dword [esp + 0xe4], eax
call fcn.004b14b0
mov edx, dword [esi + 0x9e0]
add esp, 0xc
push edi
lea ecx, [esp + 0x10]
push ecx
mov dword [edi], 0x1d8
mov dword [esi + 0x80c], 1
mov dword [esi + 0x810], 0x41400
call edx
test al, al
je 0x4163b5
cmp dword [esi + 0x80c], 1
jne 0x4163b5
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x148
ret
mov eax, dword [esi + 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
mov dword [esi + 0x804], 0
call fcn.00456820
push eax
push 0x42e
call fcn.004671c0
push eax
call fcn.0049a620
add esp, 8
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x148
ret