joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10039850
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x10194008]
xor eax, esp
mov dword [esp + 0x170], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push 0x118
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
push 0
push eax
mov dword [esp + 0x64], 0x11c
call fcn.100fe280
add esp, 0xc
lea ecx, [esp + 0x58]
call fcn.10056590
test al, al
je 0x10039902
push dword [esp + 0x60]
push dword [esp + 0x60]
push 0x10158534
push ebx
call fcn.100573d0
call fcn.10056500
test al, al
mov edx, 0x40
mov ecx, 0x20
cmovne ecx, edx
push ecx
push 0x10158f28
push dword [esp + 0x28]
call fcn.100573d0
lea eax, [esp + 0x88]
push eax
call fcn.100058c0
mov ecx, dword [esp + 0x34]
add esp, 0x20
push eax
lea eax, [esp + 0x70]
push eax
call fcn.10004c10
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.100fe280
add esp, 0xc
mov dword [esp + 0x18], 0x40
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
push 0x10158f28
push edi
call fcn.100573d0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push 0x10158f28
push esi
call fcn.100573d0
mov ecx, dword [esp + 0x188]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100fc499
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1004cd10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x1019a6c0], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x1019a3c0], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x1019a5c0], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x1019a4c0], al
inc esi
cmp esi, 0x100
jl 0x1004ce20
pop esi
add esp, 0x80
ret
Function at 0x1004fdc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x10194008]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.100fe280
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1004fe1c
cmp dword [esp + 4], 6
jb 0x1004fe1c
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100fc499
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.100fc499
add esp, 0x118
ret
Function at 0x10051ca0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10130ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x10194008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
mov dword [ebp - 0x14], 0
call fcn.100fc4bd
mov dword [ebp - 0x14], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp - 0x12c]
push eax
call fcn.100fe280
add esp, 0x10
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10051d24
cmp dword [ebp - 0x12c], 6
mov eax, dword [ebp - 0x14]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x14]
call fcn.1005b3f0
test al, al
je 0x10051d4e
lea ecx, [ebp - 0x14]
call fcn.1005aa00
test al, al
jne 0x10051d4e
xor bl, bl
jmp 0x10051db4
lea edx, [esi + 4]
xor ecx, ecx
call fcn.10066080
test al, al
jne 0x10051d64
lea ecx, [esi + 4]
call fcn.10014230
lea edx, [esi + 0x1c]
mov ecx, 0x1a
call fcn.10066080
test al, al
jne 0x10051d7d
lea ecx, [esi + 0x1c]
call fcn.10014230
lea edx, [esi + 0x34]
mov ecx, 2
call fcn.10066080
test al, al
jne 0x10051d96
lea ecx, [esi + 0x34]
call fcn.10014230
lea edx, [esi + 0x4c]
mov ecx, 0xb
call fcn.10066080
test al, al
jne 0x10051daf
lea ecx, [esi + 0x4c]
call fcn.10014230
mov byte [esi], 1
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1005a340
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100fc499
mov esp, ebp
pop ebp
ret
Function at 0x10051df0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10130b01
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10194008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0
call fcn.10004ba0
mov ebx, eax
cmp dword [eax + 0x14], 8
jb 0x10051e3c
mov ebx, dword [eax]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x14], 0x25
test edx, edx
je 0x10051f27
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.1000e450
add esp, 4
test eax, eax
je 0x10051f27
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x10051f27
push edi
lea ecx, [ebp - 0x2c]
call fcn.10004ac0
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.100065d0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x10051eba
push edi
mov ecx, esi
call fcn.10004ac0
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10004ab0
jmp 0x10051f3d
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100fcbf3
mov edx, dword [ebp - 0x14]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.100065d0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10051f0e
cmp eax, dword [ebp - 0x14]
ja 0x10051f0e
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.100058c0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
push ebx
call fcn.10004c10
push ebx
call fcn.100fc9f3
add esp, 4
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.10005640
jmp 0x10051ea2
push edi
mov ecx, esi
call fcn.10004ac0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100fc499
mov esp, ebp
pop ebp
ret 8
Function at 0x100527a0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xffffffffffffffff
push 0x10130c1f
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10194008]
xor eax, ebp
mov dword [ebp + 0x224], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x230]
lea eax, [ebp + 0x1c]
push 0x208
push 0
push eax
call fcn.100fe280
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.MacromedFlashFlashHelperService.exe
lea ecx, [ebp - 0x40]
call fcn.10008150
mov dword [ebp - 4], 0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x28]
call fcn.10008150
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp]
call fcn.1005f320
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.10004ab0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.10004ab0
lea ecx, [ebp]
call fcn.1005e6d0
test al, al
je 0x100528f0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp + 0x18], 0
call fcn.100fc4bd
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 6
lea eax, [ebp]
push 0x80
push 4
push 1
push SysReAllocString
push eax
lea ecx, [ebp + 0x18]
call fcn.1005fc10
test al, al
jne 0x100528f4
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x100528f0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100528de
test eax, eax
je 0x100528de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.100fc94e
add esp, 8
mov dword [ebp + 0x18], 0
xor bl, bl
jmp 0x10052934
push esi
lea ecx, [ebp + 0x18]
call fcn.1005fdf0
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x10052934
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10052922
test eax, eax
je 0x10052922
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.100fc94e
add esp, 8
mov dword [ebp + 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.10004ab0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.100fc499
lea esp, [ebp + 0x228]
pop ebp
ret 4
Function at 0x10055e50
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013139c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10194008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.10004ab0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.10004ab0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.10004ab0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10004ab0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10004ab0
push 0x88
push ebx
call fcn.100fc94e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10056590
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x10194008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.100fe280
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100566d2
cmp dword [esi + 4], 6
push edi
ja 0x100565e6
jne 0x1005666e
cmp dword [esi + 8], 2
jb 0x1005666e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1005666e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1005666e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005666e
movups xmm0, xmmword [str.VS_VERSION_INFO]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x1015c3c0]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1005666e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1005666e
cmp word [edi + 2], ax
jbe 0x1005666e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x100566b9
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.100fe280
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x100566b9
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.100fc499
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.100fc499
add esp, 0x140
ret
Function at 0x1005a2c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x10194008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.100fc4bd
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.100fe280
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x1005a31c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.100fc499
add esp, 0x120
ret
Function at 0x1005cec0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x10194008]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.100fe280
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1005cf3e
cmp dword [esp + 0x14], 6
jb 0x1005cf3e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.1005cd30
add esp, 0xc
test al, al
je 0x1005cf3e
cmp word [esi], 0
jne 0x1005cf96
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, SysReAllocString
call fcn.1005cd30
add esp, 0xc
test al, al
je 0x1005cf6a
cmp word [esi], 0
jne 0x1005cf96
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.1005cd30
add esp, 0xc
test al, al
je 0x1005cfab
cmp word [esi], 0
je 0x1005cfab
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.100fc499
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.100fc499
mov esp, ebp
pop ebp
ret
Function at 0x1005d340
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013203b
mov eax, dword fs:[0]
push eax
mov eax, 0x264c
call fcn.1011cfe0
mov eax, dword [0x10194008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp - 0x2218]
push ebx
push eax
call fcn.100fe280
add esp, 0xc
mov eax, 0x22
mov word [ebp - 0x2218], ax
test esi, esi
je 0x1005d554
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x1005d554
push esi
call edi
cmp eax, 0xffa
jge 0x1005d554
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2218]
push eax
call esi
push 0x101596f4
lea eax, [ebp - 0x2218]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2658]
call fcn.10008150
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2658]
push eax
call fcn.10066350
mov ecx, eax
call fcn.10066410
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2658]
call fcn.10004ab0
test esi, esi
je 0x1005d554
push 0x1015c8e4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x263c], eax
test eax, eax
je 0x1005d554
lea ecx, [ebp - 0x2638]
call fcn.1005cfc0
xor edi, edi
lea esi, [ebp - 0x2638]
nop dword [eax]
cmp word [esi], 0
je 0x1005d474
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x263c]
cmp eax, 0x20
ja 0x1005d482
inc edi
add esi, 0x210
cmp edi, 2
jl 0x1005d450
jmp 0x1005d4a4
imul ebx, edi, 0x210
cmp dword [ebp + ebx - 0x2430], 0
mov ebx, dword [ebp + ebx - 0x242c]
jne 0x1005d49c
add ebx, 0x10
test ebx, ebx
jne 0x1005d550
mov edi, dword [ebp - 0x263c]
lea eax, [ebp - 0x2218]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x1005d54b
mov dword [ebp - 0x2640], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x263c], str._programfiles_Internet_Exploreriexplore.exe
nop
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100fe280
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push dword [ebp + esi*4 - 0x2640]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1005d541
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x1005d54b
inc esi
cmp esi, 2
jb 0x1005d4e0
mov eax, ebx
jmp 0x1005d556
mov ebx, 0x10
mov eax, ebx
jmp 0x1005d556
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100fc499
mov esp, ebp
pop ebp
ret
Function at 0x1005ed30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10132310
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10194008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.100055f0
test al, al
je 0x1005ed6d
xor al, al
jmp 0x1005ef19
mov ecx, edi
call fcn.1005e7e0
test al, al
je 0x1005ed7f
mov al, 1
jmp 0x1005ef19
push 0
mov ecx, edi
call fcn.100065d0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x1005edce
lea ecx, [ebp - 0x28]
call fcn.10005680
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10071370
test al, al
je 0x1005edbf
push 0
lea ecx, [ebp - 0x28]
call fcn.100065d0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
mov ecx, edi
call fcn.1005e7e0
test al, al
jne 0x1005ed78
mov ecx, edi
call fcn.10004a70
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1005eebe
mov ecx, edi
call fcn.10004ba0
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x1005ee02
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x1005ee25
mov eax, ebx
cmp ecx, 8
jb 0x1005ee1b
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x1005eeae
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1000e100
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.100055f0
test al, al
jne 0x1005ee9f
lea ecx, [ebp - 0x28]
call fcn.1005e5d0
test al, al
jne 0x1005ee9f
push 0
lea ecx, [ebp - 0x28]
call fcn.100065d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1005ee9f
lea ecx, [ebp - 0x40]
call fcn.10005680
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.10071370
test al, al
je 0x1005ee93
push 0
lea ecx, [ebp - 0x40]
call fcn.100065d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10004ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004ab0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x1005edf6
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.1005e5d0
test al, al
jne 0x1005ef12
push 0
mov ecx, edi
call fcn.100065d0
push eax
call ebx
test eax, eax
jne 0x1005ef12
lea ecx, [ebp - 0x40]
call fcn.10005680
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.10071370
test al, al
je 0x1005ef03
push 0
lea ecx, [ebp - 0x40]
call fcn.100065d0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004ab0
mov ecx, edi
call fcn.1005e7e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100fc499
mov esp, ebp
pop ebp
ret
Function at 0x1005f8c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10129228
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10194008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x1005f8fb
xor al, al
jmp 0x1005f982
add eax, 0x20
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.1000b9f0
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1005f96f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1005f4a0
push 0
push 0
call fcn.1010c731
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1005f99e
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x1005f967
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1005f630
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1000ba20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100fc499
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1005f9b6
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1005f956
mov bl, 1
jmp 0x1005f971

Function at 0x1005fd00
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x1005fd38
mov edx, dword [esp + 4]
test edx, edx
je 0x1005fd38
cmp dword [eax], 0xffffffff
je 0x1005fd38
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005fd38
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x1005fd40
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x1005fd7a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1005fd7a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1005fd7a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005fd7a
cmp edi, dword [esi]
jne 0x1005fd7a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc