joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411b10
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
mov eax, 0x2024
call fcn.005d4d10
sub esp, eax
mov eax, dword [ecx + 0xc]
lea ebx, [esp + 0x20]
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00411970
sub esp, 8
mov dword [esp + 4], 0x71c172
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__wfopen]
test eax, eax
je 0x411bbd
lea esi, [esp + 0x19]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 3
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_fread
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp + 8], 3
mov dword [esp + 4], 0x71c178
mov dword [esp], esi
call sub.msvcrt.dll_memcmp
test eax, eax
mov edx, dword [esp + 0x1c]
je 0x411bd0
cmp edx, 0x204
je 0x411be5
xor eax, eax
add esp, 0x2024
pop ebx
pop esi
ret
cmp edx, 0x205
mov eax, 1
je 0x411bbf
cmp edx, 0x204
jne 0x411bbd
add esp, 0x2024
mov eax, 1
pop ebx
pop esi
ret
Function at 0x41cb20
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
push edi
mov eax, 0x227c
push esi
push ebx
call fcn.005d4d10
sub esp, eax
mov ebx, dword [esp + 0x2290]
jmp 0x41cb53
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
call sub.msvcrt.dll_wcschr
lea ebx, [eax + 2]
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call sub.msvcrt.dll_wcschr
test eax, eax
jne 0x41cb40
mov eax, dword [esp + 0x2290]
lea edi, [esp + 0x270]
lea esi, [esp + 0x20]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscpy
sub ebx, dword [esp + 0x2290]
mov dword [esp + 4], str..inF
lea eax, [edi + ebx]
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_wcscpy
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
cmp eax, 0xffffffff
mov ebx, eax
lea ebp, [esp + 0x4c]
jne 0x41cbd4
jmp 0x41cc20
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x41cc20
test byte [esp + 0x20], 0x10
jne 0x41cbc0
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.msvcrt.dll_wcscpy
mov eax, dword [esp + 0x2290]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.SHELL32.dll_StrStrIW
sub esp, 8
test eax, eax
je 0x41cc30
mov dword [esp + 8], edi
mov dword [esp + 4], str.keeping___S_n
mov dword [esp], 0x835180
call fcn.0041eed0
jmp 0x41cbc0
add esp, 0x227c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.deleting__S___d__n
mov dword [esp], 0x835180
call fcn.0041eed0
jmp 0x41cbc0

Function at 0x41e770
Capabilities:
Get hostname

Disassembly:
push edi
push esi
mov eax, 0x2040
push ebx
call fcn.005d4d10
sub esp, eax
mov edi, ecx
lea eax, [esp + 0x3c]
lea esi, [esp + 0x40]
mov dword [esp + 0x3c], 0x1000
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
sub esp, 8
lea ebx, [esp + 0x38]
mov dword [esp], ebx
call sub.msvcrt.dll_time
mov dword [esp], ebx
call sub.msvcrt.dll_localtime
test byte [0x8531c1], 0x20
je 0x41e7d0
xor eax, eax
mov word [edi], ax
add esp, 0x2040
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0x20], esi
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 0x10]
lea edx, [ecx + 1]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x14]
mov dword [esp], edi
mov dword [esp + 4], str._4d__02d__02d___02d__02d__02d___s_
add eax, 0x76c
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2040
pop ebx
pop esi
pop edi
ret
Function at 0x41e9b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x11a]
push ebx
sub esp, 0x14c
mov dword [ebp - 0x124], eax
xor eax, eax
test byte [0x8531c1], 8
mov esi, dword [ebp + 8]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x120], pe_nt_image_headers32
mov byte [ebp - 0x11c], 0
mov dword [ebp - 0x12c], 0x75d6e8
mov word [ebp - 0x11a], ax
je 0x41ea10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ebx, ecx
mov dword [esp + 4], 0x720cf4
mov dword [esp], 0
call sub.msvcrt.dll_setlocale
mov ecx, ebx
call fcn.0041e770
lea edi, [ebp - 0x12c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str._s_slog.txt
mov dword [esp], edi
call fcn.00403910
mov eax, dword [ebp - 0x124]
mov ecx, 0x8554b8
mov dword [esp], eax
call fcn.0043fdb0
sub esp, 4
test eax, eax
je 0x41ead0
mov dword [esp], esi
call fcn.0043ff20
mov eax, dword [ebp - 0x124]
mov dword [esp + 4], 0x720d5a
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__wfopen]
mov dword [ebp - 0x13c], eax
call eax
test eax, eax
mov dword [ebx + 0x2000], eax
je 0x41eb61
test byte [ebx + 0x200d], 8
je 0x41eb40
mov eax, dword [ebp - 0x128]
mov dword [ebp - method.nInst.virtual_0], vtable.nInst.0
test eax, eax
je 0x41ea02
mov dword [esp], eax
call fcn.006eb310
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebp - 0x124]
mov dword [esp + 4], str.ERROR_in_log_start__:_Write_protected__S_n
mov dword [esp], 0x835180
mov dword [esp + 8], eax
call fcn.0041e920
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov dword [esp], 0x720d3c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
mov dword [esp + 4], str.SDI_logs
mov dword [esp], esi
call sub.msvcrt.dll_wcscat
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str._s_slog.txt
mov dword [esp], edi
call fcn.00403910
jmp 0x41ea65
mov dword [esp + 8], 0x720d66
mov dword [esp + 4], str.start_logging_n_s_n_n
mov dword [esp], 0x835180
call fcn.0041e840
jmp 0x41eaa6
mov eax, dword [ebp - 0x124]
mov dword [esp + 4], str.ERROR_in_log_start__:_Write_protected__S_n
mov dword [esp], 0x835180
mov dword [esp + 8], eax
call fcn.0041e920
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov dword [esp], 0x720d3c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
mov dword [esp + 4], str.SDI_logs
mov dword [esp], esi
call sub.msvcrt.dll_wcscat
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str._s_slog.txt
mov dword [esp], edi
call fcn.00403910
mov dword [esp], esi
call fcn.0043ff20
mov eax, dword [ebp - 0x124]
mov dword [esp + 4], 0x720d60
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
call eax
mov dword [ebx + 0x2000], eax
jmp 0x41ea99
Function at 0x425c00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
mov eax, 0x403c
push esi
push ebx
call fcn.005d4d10
sub esp, eax
mov esi, dword [0x853284]
mov ebp, ecx
lea ebx, [esp + 0x2030]
test esi, esi
je 0x425c6c
xor eax, eax
mov ecx, 0xc
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x2030], 0x30
mov dword [esp + 0x2034], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x14
mov dword [esp], esi
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
sub esp, 0x10
test eax, eax
jne 0x425d83
mov eax, dword [0x70ec64]
mov ecx, ebp
mov dword [esp], eax
call fcn.004259b0
sub esp, 4
lea esi, [esp + 0x30]
mov dword [esp + 4], 0x83d1c0
mov dword [esp], esi
call sub.msvcrt.dll_wcscpy
mov dword [esp + 4], 0x721b04
mov dword [esp], esi
call sub.msvcrt.dll_wcscat
mov dword [esp + 4], 0x8431c0
mov dword [esp], ebx
call sub.msvcrt.dll_wcscpy
mov dword [esp + 4], 0x721b04
mov dword [esp], ebx
call sub.msvcrt.dll_wcscat
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
mov ecx, 0x8554b8
mov dword [esp], 0x20
call fcn.00440d90
mov edi, eax
mov eax, dword [0x8531c0]
sub esp, 4
test eax, 0x40000000
je 0x425d24
mov ecx, dword [0x8575d0]
test ecx, ecx
je 0x425d17
and eax, 0xbfffffff
mov dword [0x8531c0], eax
mov eax, dword [ecx]
call dword [eax + 0x48]
add esp, 0x403c
pop ebx
pop esi
pop edi
pop ebp
ret 4
cmp dword [0x853274], 1
jne 0x425d17
mov dword [esp], esi
mov ecx, 0x8554b8
call fcn.0043f310
sub esp, 4
test al, al
je 0x425de0
mov eax, dword [esp + 0x4050]
sar eax, 8
cmp eax, edi
jg 0x425dd0
cmp byte [esp + 0x4050], 0
jne 0x425dd0
cmp dword [0x70ec64], 1
jne 0x425d17
mov dword [esp], 2
mov ecx, ebp
mov dword [0x853274], 0
call fcn.00425560
sub esp, 4
jmp 0x425d17
mov dword [esp + 0x2038], 0
mov dword [esp + 0x203c], 0
mov dword [esp + 0x2054], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x14
mov dword [esp], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
sub esp, 0x10
jmp 0x425c6c
mov dword [0x853274], 0
jmp 0x425d17
mov dword [esp], ebx
mov ecx, 0x8554b8
call fcn.0043f310
sub esp, 4
test al, al
jne 0x425d45
cmp dword [esp + 0x2c], 1
jg 0x425d45
mov eax, dword [0x853238]
mov dword [0x853274], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41fbc0
mov dword [esp + 4], 0x384
mov dword [esp + 8], eax
mov eax, dword [0x8532b0]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
sub esp, 0x14
jmp 0x425d17
Function at 0x42baa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [0xb70f0737], cl
inc edi
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.0042b88f
pushal
sbb byte [ecx], al
mov ecx, 0x6478b66
cmp ax, bx
jbe 0x42bae9
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x42bae3
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x42bad4
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0042b88f
or cl, bh
or byte [esi], cl
lea eax, [ebp - 0x58]
push eax
call fcn.0042b89f
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0042b854
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x42bb7d
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0042b88f
mov eax, dword [edx + 0x4c]
sub al, 0x8d
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x42ee90
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x41cc60
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [0x8350e8], eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x2c
ret 4

Function at 0x42f020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [0xa245c62e]
xor eax, 0x24a345c6
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0042b89f
push eax
push esi
push dword [ebp + 8]
call fcn.0042b854
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0042b89f
push eax
push esi
push dword [ebp + 8]
call fcn.0042b854
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0042b88f
or ch, byte [edx + 0x3b]
pop ds
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.0042b88f
and al, 0x37
invalid
mov eax, dword [0x853264]
imul eax, dword [eax + 0x24], 0x850
add eax, dword [ecx]
mov ecx, eax
jmp 0x42bc80
Function at 0x439540
Capabilities:
Accept command line arguments

Disassembly:
push esi
push ebx
mov ebx, 1
sub esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
mov esi, eax
cmp dword [esp + 0x1c], 1
ja 0x439590
jmp 0x4395a3
mov dword [esp + 4], str._script
mov dword [esp], eax
call sub.SHELL32.dll_StrStrIW
sub esp, 8
test eax, eax
jne 0x4395b0
add ebx, 1
cmp dword [esp + 0x1c], ebx
jbe 0x4395a3
mov eax, dword [esi + ebx*4]
cmp word [eax], 0x2f
jne 0x439570
mov edx, 0x2d
mov word [eax], dx
jmp 0x439570
add esp, 0x24
xor eax, eax
pop ebx
pop esi
ret
add esp, 0x24
mov eax, 1
pop ebx
pop esi
ret
Function at 0x43e590
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov eax, 0x201c
push esi
push ebx
call fcn.005d4d10
xor ebx, ebx
sub esp, eax
mov ebp, dword [esp + 0x2034]
mov eax, dword [esp + 0x2030]
lea esi, [esp + 0x10]
mov word [ebp], bx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], str.Opening__S_n
mov dword [esp], 0x835180
call fcn.0041eed0
mov dword [esp + 4], 0x727796
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__wfopen]
test eax, eax
mov edi, eax
je 0x43e6e7
mov dword [esp + 8], edi
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call sub.msvcrt.dll_fgetws
test eax, eax
je 0x43e6bc
mov ebx, esi
jmp 0x43e626
add ebx, 2
movzx eax, word [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_iswspace
test eax, eax
jne 0x43e623
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_wcscpy
movzx eax, word [esp + 0x10]
cmp ax, 0x3b
je 0x43e603
cmp ax, 0x23
je 0x43e603
cmp ax, 0x2f
je 0x43e6b0
mov dword [esp + 4], 0x727068
mov dword [esp], esi
call sub.msvcrt.dll_wcsstr
test eax, eax
jne 0x43e603
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
cmp word [esp + eax*2 + 0xe], 0xa
je 0x43e6d6
cmp word [esp + 0x10], 0
je 0x43e603
mov dword [esp + 4], esi
mov dword [esp], ebp
call sub.msvcrt.dll_wcscat
mov dword [esp + 4], 0x7277b2
mov dword [esp], eax
call sub.msvcrt.dll_wcscat
jmp 0x43e603
mov ecx, 0x2d
mov word [esp + 0x10], cx
jmp 0x43e658
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, 1
add esp, 0x201c
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
xor edx, edx
mov word [esp + eax*2 + 0xe], dx
jmp 0x43e67c
mov dword [esp + 8], esi
mov dword [esp + 4], str.Failed_to_open__S_n
mov dword [esp], 0x835180
call fcn.0041e920
xor eax, eax
jmp 0x43e6c9

Function at 0x43e770
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
mov ebp, ecx
push esi
push ebx
sub esp, 0x3c
mov dword [esp], str._cfg:
call sub.msvcrt.dll_wcslen
mov edi, eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
mov esi, eax
lea eax, [edi + edi]
cmp dword [esp + 0x2c], 1
mov edi, 1
mov dword [esp + 0x1c], eax
jg 0x43e7f5
jmp 0x43e810
mov dword [esp + 4], str._cfg:
mov dword [esp], ebx
call sub.SHELL32.dll_StrStrIW
sub esp, 8
test eax, eax
je 0x43e7ec
add ebx, dword [esp + 0x1c]
mov ecx, ebp
mov dword [esp], ebx
call fcn.0043e710
sub esp, 4
test al, al
jne 0x43e820
add edi, 1
cmp dword [esp + 0x2c], edi
jle 0x43e810
mov ebx, dword [esi + edi*4]
cmp word [ebx], 0x2f
jne 0x43e7c0
mov eax, 0x2d
mov word [ebx], ax
jmp 0x43e7c0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
or dword [ebp + 0x1c000], 0x8000
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x43f1f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
sub esp, 0x18
movzx eax, word [esp + 0x20]
mov dword [esp + 8], 0x64
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
sub esp, 0xc
test eax, eax
je 0x43f254
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub esp, 8
mov edx, dword [esp + 0x28]
mov dword [edx], eax
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
add esp, 0x18
pop ebx
ret
mov eax, dword [esp + 0x28]
mov dword [eax], 0
mov eax, dword [esp + 0x24]
mov dword [eax], 0
add esp, 0x18
pop ebx
ret

Function at 0x43f2f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub esp, 4
test eax, eax
setne al
add esp, 0x1c
ret 4

Function at 0x43f310
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x36a]
push ebx
lea eax, [ebp - 0x37c]
sub esp, 0x38c
mov dword [ebp - 0x374], edx
xor edx, edx
mov word [ebp - 0x36a], dx
mov edx, dword [ebp + 8]
mov dword [esp + 4], 0x727900
mov dword [esp], eax
mov dword [ebp - 0x378], 0
mov dword [ebp - 0x370], pe_nt_image_headers32
mov dword [esp + 8], edx
mov byte [ebp - 0x36c], 0
mov dword [ebp - 0x37c], 0x75d6e8
call fcn.00403910
mov eax, dword [ebp - 0x374]
lea esi, [ebp - 0x268]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
cmp eax, 0xffffffff
mov ebx, eax
je 0x43f400
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x43f3b0
mov dword [esp + 4], esi
mov dword [esp], ebx
call edi
sub esp, 8
test eax, eax
je 0x43f3f2
test byte [ebp - 0x268], 0x10
jne 0x43f3a0
mov esi, 1
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x378]
mov dword [ebp - method.nInst.virtual_0], vtable.nInst.0
test eax, eax
je 0x43f3e6
mov dword [esp], eax
call fcn.006eb310
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 4
xor esi, esi
jmp 0x43f3be
xor esi, esi
jmp 0x43f3ca

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

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x43f454
shr eax, 4
add esp, 0x1c
and eax, 1
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test al, 0x7f
sete al
add esp, 0x1c
ret 4
Function at 0x43f470
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x27c
mov eax, dword [esp + 0x290]
lea ebp, [esp + 0x20]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
cmp eax, 0xffffffff
je 0x43f4f0
mov ebx, eax
xor esi, esi
xor edi, edi
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
add esi, dword [esp + 0x18]
adc edi, dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x43f4a0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
add esp, 0x27c
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret 4
xor esi, esi
xor edi, edi
jmp 0x43f4d8

Function at 0x43fce0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov eax, 0x2020
push ebx
call fcn.005d4d10
xor esi, esi
sub esp, eax
mov ebx, ecx
mov eax, dword [esp + 0x2034]
mov word [esp + 0x20], si
lea esi, [esp + 0x20]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebx + 8]
sub esp, 0xc
mov dword [esp], esi
mov dword [ebx], eax
call sub.msvcrt.dll_wcslen
lea edi, [eax + eax]
mov edx, edi
sar edx, 1
cmp edx, 7
mov dword [esp + 0x1c], edx
ja 0x43fd60
cmp edx, 1
mov eax, dword [ebx]
je 0x43fda0
test edx, edx
jne 0x43fd82
xor ecx, ecx
mov dword [ebx + 4], edx
mov word [eax + edx*2], cx
add esp, 0x2020
mov eax, ebx
pop ebx
pop esi
pop edi
ret 8
lea eax, [esp + 0x1c]
mov dword [esp + 4], 0
mov ecx, ebx
mov dword [esp], eax
call fcn.006c1e40
sub esp, 8
mov dword [ebx], eax
mov edx, dword [esp + 0x1c]
mov dword [ebx + 8], edx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx]
jmp 0x43fd45
movzx ecx, word [esp + 0x20]
mov word [eax], cx
jmp 0x43fd45
Function at 0x43fdb0
Capabilities:
Get disk information

Disassembly:
push esi
push ebx
sub esp, 0x34
mov ebx, dword [esp + 0x40]
lea esi, [esp + 0x28]
mov dword [esp + 4], 0x72795a
mov dword [esp], esi
call sub.msvcrt.dll_wcscpy
test ebx, ebx
je 0x43fde5
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
cmp eax, 1
jbe 0x43fde5
cmp word [ebx + 2], 0x3a
je 0x43fe50
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
je 0x43fef0
mov eax, dword [esp + 0x24]
add esp, 0x34
pop ebx
pop esi
shr eax, 0x13
xor eax, 1
and eax, 1
ret 4
movzx eax, word [ebx]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov word [esp + 0x28], ax
lea eax, [esp + 0x24]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
jne 0x43fe35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], str.Error:_canWrite_:_GetVolumeInformation_1__failed_with_error__d_n
mov esi, eax
mov dword [esp + 8], eax
mov dword [esp], 0x835180
call fcn.0041e920
cmp esi, 3
jne 0x43fe35
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error:_Path_not_found:__S_n
mov dword [esp], 0x835180
call fcn.0041e920
jmp 0x43fe35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], str.Error:_canWrite_:_GetVolumeInformation_2__failed_with_error__d_n
mov esi, eax
mov dword [esp + 8], eax
mov dword [esp], 0x835180
call fcn.0041e920
cmp esi, 3
jne 0x43fe35
jmp 0x43fec9