joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40102d
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x45ecb3
call fcn.0043c274
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
cmp byte [esi + 0x20], 0
mov dword [ebp - 4], 1
jne 0x401231
mov edi, dword [esi + 4]
mov eax, dword [esi + 8]
cmp edi, eax
je 0x401137
lea ebx, [edi + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40106f
mov eax, 0x467588
push eax
lea eax, [ebp - 0xd]
push 1
push eax
push 0x476174
lea ecx, [ebp - 0x48]
call fcn.00401741
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00401815
push eax
lea eax, [ebp - 0xe]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x18], esp
push 1
push eax
push 0x476150
call fcn.00401741
sub esp, 0x28
lea eax, [ebp - 0xf]
mov ecx, esp
mov dword [ebp - 0x20], esp
push 1
push eax
push 0x476134
mov byte [ebp - 4], 3
call fcn.00401741
mov byte [ebp - 4], 2
call fcn.00433268
add esp, 0x58
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040125c
and dword [ebp - 0x18], 0
push 0xc
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x20], esp
push 1
push edi
call fcn.00401717
call fcn.0042d15e
add esp, 0x2c
test al, al
je 0x401128
mov eax, dword [ebx]
test eax, eax
jne 0x401108
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401128
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x18]
cmp eax, 0x64
jge 0x401128
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4010df
add edi, 0x28
add ebx, 0x28
cmp edi, dword [esi + 8]
jne 0x401064
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 0x14]
je 0x401223
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0x20]
test eax, eax
jne 0x401155
mov eax, 0x467588
push eax
lea eax, [ebp - 0xf]
push 1
push eax
push 0x476120
lea ecx, [ebp - 0x48]
call fcn.00401741
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00401815
push eax
lea eax, [ebp - 0xe]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x20], esp
push 1
push eax
push 0x4760f8
call fcn.00401741
sub esp, 0x28
lea eax, [ebp - 0xd]
mov ecx, esp
mov dword [ebp - 0x18], esp
push 1
push eax
push 0x476134
mov byte [ebp - 4], 5
call fcn.00401741
mov byte [ebp - 4], 4
call fcn.00433268
add esp, 0x58
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040125c
xor edi, edi
push 0xc
lea ecx, [ebp - 0x14]
sub esp, 0x28
mov ebx, esp
mov dword [ebp - 0x20], esp
push 1
call fcn.00401c71
push eax
mov ecx, ebx
call fcn.00401717
call fcn.0042d15e
add esp, 0x2c
test al, al
je 0x401217
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0x20]
test eax, eax
jne 0x4011fa
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x401217
mov eax, edi
inc edi
cmp eax, 0x64
jge 0x401217
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4011c3
sub dword [ebp - 0x14], 0x28
mov eax, dword [ebp - 0x14]
jmp 0x40113d
cmp byte [esi + 0x21], 0
je 0x401231
push 1
call fcn.004012e5
pop ecx
and byte [ebp - 4], 0
lea ecx, [esi + 0x10]
call fcn.00401c3e
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00401c3e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x402a57
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x402a80
push ebx
push ebx
call fcn.0043c99a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x402a98
push ebx
push ebx
call fcn.0043c99a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x402ab0
push ebx
push ebx
call fcn.0043c99a
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x402ac6
push ebx
push ebx
call fcn.0043c99a
push dword [esi + 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.0043c2a0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x404147
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov byte [ebp - 0x1c], 0x49
cmp byte [ebp + 0xc], al
mov dword [ebp - 4], eax
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x53
mov byte [ebp - 0x14], 0x68
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], al
je 0x4041ad
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x57
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x7a
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], al
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401b24
mov eax, dword [ebp + 8]
leave
ret 8
Function at 0x4045f2
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x45f32e
call fcn.0043c274
sub esp, 0x3a8
push ebx
push esi
lea eax, [ebp - 0x3b4]
push edi
xor ebx, ebx
push eax
push 0x104
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x404636
lea ecx, [ebp - 0x58]
call fcn.004047e6
lea eax, [ebp - 0x58]
push 0x46a320
push eax
call fcn.0043c99a
push 0x44
xor eax, eax
pop ecx
lea edi, [ebp - 0x1a8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1ac], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov edi, 0x4675b8
mov esi, 0x4675b0
je 0x404782
cmp dword [ebp - 0x19c], 1
jne 0x404782
lea eax, [ebp - 0xe]
push ebx
push eax
lea eax, [ebp - 0x3b4]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.00401779
push 0x4764b4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.00404bc9
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x4046b3
mov eax, 0x467588
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40475c
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.00404968
pop ecx
pop ecx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00404aa5
push dword [0x4675ac]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040245e
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.0040125c
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040125c
push 0x4764a8
lea ecx, [ebp - 0x3c]
call fcn.00404bc9
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00401cec
mov dword [ebp - 0x14], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
jmp 0x4047d0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x40476f
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040125c
lea eax, [ebp - 0xd]
push ebx
push eax
lea eax, [ebp - 0x3b4]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00401779
push 0x4764a4
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 4
call fcn.00404bc9
mov ebx, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00401cec
and byte [ebp - 4], 0
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x64]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404968
Capabilities:
Get common file path

Disassembly:
mov eax, 0x45f39b
call fcn.0043c274
sub esp, 0x260
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x404a13
push 0x4764e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404a13
push 0x4764c8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4764c4], eax
je 0x404a13
lea ecx, [ebp - 0x26c]
push esi
push ecx
call eax
test eax, eax
je 0x404a13
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x26c]
mov edi, 0x4675b8
mov esi, 0x4675b0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00401779
push 0x4764a4
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.00404bc9
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401cec
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x404a8e
lea eax, [ebp - 0x26c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x404a3b
lea ecx, [ebp - 0x30]
call fcn.004047e6
lea eax, [ebp - 0x30]
push 0x46a320
push eax
call fcn.0043c99a
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x26c]
mov edi, 0x4675b8
mov esi, 0x4675b0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.00401779
push 0x4764a4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.00404bc9
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401cec
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406ec2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, ecx
mov eax, dword [esi]
movzx ecx, word [eax + 0x48]
cmp ecx, dword [ebp + 8]
jne 0x406ee0
mov ax, word [eax + 0x4e]
cmp ax, 0xffff
jne 0x406f21
lea eax, [ebp - 0x48]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x406f1b
lea eax, [ebp - 0x48]
push eax
call fcn.0043d14e
pop ecx
lea ecx, [ebp - 0x20]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x406f26
mov eax, dword [esi]
mov cx, word [ebp - 0x20]
mov word [eax + 0x4e], cx
mov eax, dword [esi]
mov ax, word [eax + 0x4e]
pop esi
leave
ret 4
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x406f1b
xor ax, ax
jmp 0x406f21
Function at 0x409f81
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x45fc77
call fcn.0043c274
mov eax, 0x10a0
call fcn.0043c620
push ebx
push esi
xor esi, esi
push edi
lea eax, [ebp - 0x21]
mov ebx, 0x4675f0
mov edi, 0x4675e8
push esi
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x34], edi
call fcn.0040b0e9
or dword [ebp - 0x20], 0xffffffff
push 1
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x409fd7
mov eax, 0x4675fc
push esi
push 0x80
push 3
push esi
push ecx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x2c], esi
je 0x40a0d3
lea eax, [ebp - 0xac]
mov dword [ebp - 0x20], esi
push eax
call fcn.004370aa
pop ecx
lea eax, [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0x10ac]
push 0x1000
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
test eax, eax
je 0x40a060
push dword [ebp + 0xc]
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.004370d2
add esp, 0xc
cmp dword [ebp + 0xc], 0
jbe 0x40a060
lea eax, [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0x10ac]
push 0x1000
push eax
push dword [ebp - 0x2c]
jmp 0x40a024
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00437170
movzx eax, byte [ebp - 0xd]
pop ecx
pop ecx
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
lea eax, [ebp - 0x54]
push 0x476ccc
push eax
call fcn.0040adc2
add esp, 0x48
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.0040b15e
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x20], 0xffffffff
je 0x40a103
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40a103
push dword [ebp - 0x20]
call eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040604e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4120ab
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
push edi
and byte [esi + 0xc], 0
and byte [esi + 0xd], 0
lea edi, [esi + 0x4a]
push edi
call fcn.0041214f
test al, al
je 0x4120d1
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x48], ax
jmp 0x41214a
mov ax, word [esp + 0xc]
test ax, ax
jne 0x4120ed
cmp dword [esi + 0x44], 4
jne 0x4120ed
mov ecx, esi
lea edi, [esi + 0x48]
call fcn.00412236
jmp 0x4120f0
lea edi, [esi + 0x48]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041214f
test al, al
je 0x412105
mov byte [esi + 0xd], 1
jmp 0x41214a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041214f
test al, al
jne 0x41214a
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041214f
test al, al
jne 0x41214a
call fcn.0042e6b8
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041214f
test al, al
jne 0x41214a
mov ax, word [esi + 0x4c]
mov word [edi], ax
pop edi
pop esi
ret 4

Function at 0x413bde
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x413c23
mov eax, dword [ebp + 8]
test eax, eax
je 0x413bf8
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413c5d
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413ad9
lea eax, [ebp - 0x4c]
push 0x46c670
push eax
call fcn.0043c99a
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413c5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413c5d
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00413a12
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x413f57
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4610e8
call fcn.0043c274
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x34]
lea esi, [edi + 4]
push eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00403a95
mov eax, dword [eax + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x413f8f
mov eax, 0x467588
push eax
push ebx
push 0x477518
push 0x4775ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x413fb2
cmp byte [edi + 0x258], bl
sete al
cmp al, bl
jne 0x413fbe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp byte [eax + 0x1b], bl
je 0x413fc0
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
pop edi
neg bl
sbb ebx, ebx
pop esi
and ebx, 0x80042002
mov dword fs:[0], ecx
mov eax, ebx
pop ebx
leave
ret
Function at 0x4175d5
Capabilities:
Get disk information

Disassembly:
mov eax, 0x461804
call fcn.0043c274
sub esp, 0x50
push esi
mov esi, ecx
lea eax, [ebp - 0x5c]
push edi
lea ecx, [esi + 4]
push eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00403615
and dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push 0
push ecx
mov ecx, eax
call fcn.004021e8
mov eax, dword [eax + 8]
test eax, eax
jne 0x417616
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.0040125c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.0040125c
cmp edi, 2
je 0x417662
cmp edi, 5
je 0x417662
cmp edi, 3
je 0x41765e
cmp edi, 4
je 0x41765e
cmp edi, 6
je 0x41765e
mov ecx, esi
call fcn.0041743e
dec ax
neg ax
sbb eax, eax
neg eax
jmp 0x417664
xor al, al
jmp 0x417664
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4191ff
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov eax, 0x461c00
call fcn.0043c274
sub esp, 0x4c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [edi + 0xa8]
cmp esi, eax
je 0x41930a
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419248
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push edi
push 0x478360
call fcn.0041935a
pop ecx
test eax, eax
pop ecx
je 0x419274
cmp dword [eax + 0xc], esi
jne 0x419274
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 0xac]
mov dword [ebp + 0xc], edx
mov edi, ecx
lea eax, [ecx + ebx]
mov dword [ebp + 0x10], edx
jmp 0x4192c7
push edi
push 0x478358
call fcn.0041935a
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41929a
push edi
push 0x478350
call fcn.0041935a
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x41930a
mov edi, dword [edi + 0xac]
push 0x1c
mov dword [ebp + 0x10], edi
mov eax, edi
xor edx, edx
pop edi
div edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x41930a
sub esi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + esi]
mov edi, ecx
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x419315
cmp dword [ebp + 8], 0
je 0x419315
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
xor edx, edx
mov esi, eax
mov eax, edi
div dword [ebp - 0x3c]
imul esi, dword [ebp - 0x3c]
add edx, dword [ebp + 0x10]
push edx
push esi
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x41930e
xor eax, eax
jmp 0x41934b
mov dword [ebp - 0x10], eax
sub eax, esi
add eax, edi
mov edx, dword [ebp + 0xc]
test edx, edx
jbe 0x419334
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0x14]
jbe 0x41932e
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x41931f
cmp dword [ebp - 0x10], 0
je 0x419348
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x419348
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x419612
Capabilities:
Create directory

Disassembly:
mov eax, 0x461c38
call fcn.0043c274
sub esp, 0x3c
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0041a5e3
mov ecx, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004196d2
mov eax, dword [eax + 0x10]
cmp eax, ebx
jne 0x419649
xor esi, esi
jmp 0x419652
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.0041a47b
push 0x5c
inc esi
pop edi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.0041ab37
cmp dword [0x468000], eax
je 0x4196b5
lea esi, [eax + 1]
push ebx
push esi
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x467ff0
mov dword [ebp - 0x18], 0x467fe8
call fcn.0041a257
push ebx
mov dword [ebp - 0x2c], 0x467fe4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x2c]
call fcn.0041a47b
mov dword [ebp - 0x10], edi
jmp 0x419661
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0041a668
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41b6ab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41b6bf
push 0x26
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41b6f3
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0043894f
test al, al
jne 0x41b726
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413ad9
lea eax, [ebp - 0x4c]
push 0x46c670
push eax
call fcn.0043c99a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b726
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413799
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x41b72e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41b742
push 6
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41b776
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0043894f
test al, al
jne 0x41b7a9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413ad9
lea eax, [ebp - 0x4c]
push 0x46c670
push eax
call fcn.0043c99a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b7a9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413799
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x420045
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4627a8
call fcn.0043c274
sub esp, 0x14
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0xd]
push 0
push eax
mov dword [esi], 0x467594
mov dword [esi + 0x20], 0x46758c
call fcn.00401c77
lea eax, [ebp - 0x20]
push 0x105
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401822
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00401e7b
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401aab
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4200bc
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x28

Function at 0x4200e0
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x4200fc
mov eax, dword [esi + 8]
test eax, eax
jne 0x4200f5
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, esi
call fcn.0040125c
pop esi
ret