joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40562f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004058ed
test bl, 8
mov dword [ebp - 0xc], eax
je 0x40566e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423788], eax
jmp 0x4057f8
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405688
test eax, eax
je 0x4057a6
test bl, 2
je 0x4057a6
mov esi, 0x420d10
push edi
push esi
call fcn.00405d8d
cmp dword [ebp + 8], 0
je 0x4056a7
push 0x4093a4
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4056ad
push edi
call fcn.00405846
cmp byte [edi], 0
jne 0x4056bb
cmp byte [0x420d10], 0x5c
jne 0x4056c6
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40579c
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040582a
cmp byte [eax], 0
je 0x40570c
cmp byte [ebp - 0x1c], 0
je 0x40570c
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405722
mov al, byte [esi + 1]
test al, al
je 0x40577b
cmp al, 0x2e
jne 0x405722
cmp byte [esi + 2], 0
je 0x40577b
push esi
push ebx
call fcn.00405d8d
test byte [ebp - 0x14c], 0x10
je 0x405747
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40577b
push dword [ebp + 0xc]
push edi
call fcn.0040562f
jmp 0x40577b
push dword [ebp - 4]
push edi
call fcn.004055e7
test eax, eax
jne 0x405773
cmp dword [ebp - 4], eax
je 0x40576b
push edi
push 0xfffffffffffffff1
call fcn.00404fa6
push 0
push edi
call fcn.00405c48
jmp 0x40577b
inc dword [0x423788]
jmp 0x40577b
push edi
push 0xfffffffffffffff2
call fcn.00404fa6
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4056ea
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4057a6
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4057f8
cmp dword [ebp - 0xc], esi
jne 0x4057ba
inc dword [0x423788]
jmp 0x4057f8
push edi
call fcn.00406091
test eax, eax
je 0x4057f8
push edi
call fcn.004057ff
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004055e7
test eax, eax
jne 0x4057f0
cmp dword [ebp - 4], esi
je 0x4057b2
push edi
push 0xfffffffffffffff1
call fcn.00404fa6
push esi
push edi
call fcn.00405c48
jmp 0x4057f8
push edi
push 0xffffffffffffffe5
call fcn.00404fa6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x8de2e0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de2e6
pop ebp
sub ebp, 6
sub ebp, 0x4de2e0
jmp 0x8de344
jmp 0x8de34d
mov eax, 0x4de2e0
add eax, ebp
add eax, 0x93
mov ecx, 0x62c
mov edx, 0x48ffbb80
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de364
jmp 0x8de377
ljmp 0x8080:0x9080e8c0
Function at 0x4059a6
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test edi, edi
pop ecx
mov esi, eax
jbe 0x4059d1
mov eax, dword [esp + 0xc]
push ebx
mov ecx, esi
sub eax, esi
mov edx, edi
mov bl, byte [eax + ecx]
xor bl, 0x42
mov byte [ecx], bl
inc ecx
dec edx
jne 0x4059c4
pop ebx
push 0x408230
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
push esi
call fcn.00404b97
push esi
mov edi, eax
call fcn.00405a0a
add esp, 0x18
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0xa2c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa2c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa2c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2c06a
add dl, dl
jne 0xa2c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2c0dc
xor eax, eax
add dl, dl
jne 0xa2c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2c17d
add dl, dl
jne 0xa2c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa2c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa2c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa2c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa2c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa2c075
mov eax, 1
add dl, dl
jne 0xa2c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa2c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa2c0e1
sub eax, ebx
mov ebx, 1
jne 0xa2c128
mov ecx, 1
add dl, dl
jne 0xa2c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa2c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa2c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa2c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa2c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa2c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa2c136
cmp eax, 0x7d00
jae 0xa2c16d
cmp eax, 0x500
jb 0xa2c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa2c075
cmp eax, 0x7f
ja 0xa2c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa2c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa2c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa2c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402d95
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x405536], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Magnetick
push str.Charge_Window_App
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402ddc
xor eax, eax
jmp 0x402df3
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
leave
ret

Function at 0x403212
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404488
push 0x403374
push eax
mov eax, dword [0x4055b4]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x4055b0]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.0040336a
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x4055ac]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4040d0
push 0x4040cc
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x4032ad
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x4032a5
cmp al, 0x22
jne 0x40329a
cmp byte [esi], 0x22
jne 0x4032b7
inc esi
jmp 0x4032b7
cmp al, 0x20
jbe 0x4032b7
inc esi
cmp byte [esi], 0x20
ja 0x4032b1
cmp byte [esi], 0
je 0x4032c7
cmp byte [esi], 0x20
ja 0x4032c7
inc esi
cmp byte [esi], 0
jne 0x4032bc
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x4032e7
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x403323
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0xffffff90
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1008af5
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x100e060]
and dword [ebp - 0x198], 0
cmp dword [0x100e094], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x19c], eax
jne 0x1008b59
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1008b4f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1008bff
mov dword [0x100e094], 1
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 5]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x1008b8a
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01007b9a
jmp 0x1008bca
push esi
push edi
push ebx
call fcn.01007c7a
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x198], eax
jne 0x1008bb3
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x800300fd
jmp 0x1008b7d
push 2
push 4
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
jne 0x1008bce
xor eax, eax
jmp 0x1008bfd
push edi
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp + 0x10], 0
mov eax, dword [esi]
pop ecx
jne 0x1008bec
push 0x100182c
push eax
call dword [sym.imp.msvcrt.dll_strtok]
pop ecx
pop ecx
push 0xf
push dword [ebp - 0x19c]
push eax
call fcn.01007d25
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.010071df
leave
ret 0xc

Function at 0x1008c35
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x100e060]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x3f
xor edx, edx
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
cmp ebx, edx
lea edi, [ebp - 0x100]
mov dword [ebp - 0x104], edx
rep stosd dword es:[edi], eax
push 0x3f
pop ecx
lea edi, [ebp - 0x200]
mov dword [ebp - 0x204], edx
mov dword [ebp - 0x208], edx
rep stosd dword es:[edi], eax
je 0x1008d24
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1008d24
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
mov edi, 0x80
push 4
mov dword [ebp - 0x208], edi
call esi
push 0
push 1
push ebx
lea eax, [ebp - 0x104]
push eax
call fcn.01008310
test eax, eax
je 0x1008d24
push ebx
call fcn.010088d8
cmp eax, 1
jne 0x1008cf4
push 0
lea eax, [ebp - 0x204]
push eax
push ebx
call fcn.01008af5
test eax, eax
je 0x1008d27
push 0
push 1
lea eax, [ebp - 0x204]
push eax
jmp 0x1008d11
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
push 7
mov dword [ebp - 0x208], edi
call esi
push 0
push 1
push ebx
lea eax, [ebp - 0x104]
push eax
call fcn.01008310
neg eax
sbb eax, eax
inc eax
jmp 0x1008d27
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010071df
leave
ret 4
Function at 0x1008f77
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x100e060]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x408], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x14]
push 0x7e
mov dword [ebp - 0x40c], eax
pop ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x404], ebx
lea edi, [ebp - 0x400]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x7e
pop ecx
mov dword [ebp - 0x204], ebx
xor eax, eax
lea edi, [ebp - 0x200]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call fcn.01008c35
cmp eax, 1
jne 0x1009024
cmp dword [ebp - 0x408], ebx
je 0x100901d
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100901d
mov esi, 0xa0010001
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x157e
call fcn.01008868
push eax
call fcn.01007913
mov eax, esi
jmp 0x100916c
xor eax, eax
jmp 0x100916c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x204]
push eax
call edi
push esi
call fcn.01008c11
cmp eax, 1
jne 0x100904c
add esi, 4
push esi
lea eax, [ebp - 0x204]
push eax
call edi
lea eax, [ebp - 0x204]
push eax
call fcn.010089c9
test eax, eax
jne 0x1009067
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100916c
mov esi, 0x10012c0
push esi
lea eax, [ebp - 0x404]
push eax
call edi
cmp dword [ebp - 0x40c], ebx
je 0x10090b2
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10090b2
push dword [ebp - 0x40c]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push 0x100185c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x10090ce
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push 0x1001830
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 8
pop ecx
xor eax, eax
push ebx
push dword [ebp - 0x408]
lea edi, [ebp - 0x430]
push dword [ebp - 0x410]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x430]
push eax
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x420], ebx
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
cmp edi, ebx
je 0x100912e
cmp edi, 0x4b8
je 0x1009127
call fcn.01007b9a
jmp 0x100916a
call fcn.01007bf1
jmp 0x100916a
push esi
xor edi, edi
call fcn.01007913
lea eax, [ebp - 0x204]
push eax
call fcn.01008d3b
cmp eax, 0x1388
jae 0x100916a
lea eax, [ebp - 0x204]
push eax
call fcn.01008f5a
push 0x157f
call fcn.01008868
push eax
call fcn.01007913
mov edi, 0x4b8
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010071df
leave
ret 0x10
Function at 0x402a90
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x138
test ecx, ecx
je 0x402ac3
mov esi, ecx
cmp ecx, 0xffff
ja 0x402acd
movzx eax, si
push eax
push str._04x
call sym._wine_dbg_sprintf_1
add esp, 0x140
jmp 0x402c9c
mov eax, str._null_
jmp 0x402c96
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov ecx, eax
mov eax, str._invalid_
test ecx, ecx
jne 0x402c96
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [esi + edi], 0
lea edi, [edi + 1]
jne 0x402af0
mov byte [ebp - 0x144], 0x22
cmp edi, 1
jne 0x402b17
lea ebx, [ebp - 0x142]
mov byte [ebp - 0x143], 0x22
jmp 0x402c84
lea ebx, [ebp - 0x143]
mov edx, 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x10], edx
movzx ecx, byte [esi]
movzx eax, cl
mov byte [ebp - 0x11], cl
lea edx, [eax - 9]
cmp edx, 0x19
ja case.default.0x402b44
jmp dword [edx*4 + 0x405264]
mov byte [ebx], 0x5c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x144]
mov byte [edx + eax + 1], 0x74
add edx, 2
jmp 0x402c50
cmp eax, 0x5c
jne case.0x402b44.11
mov byte [ebx], 0x5c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x144]
mov byte [edx + eax + 1], 0x5c
add edx, 2
jmp 0x402c50
cmp cl, 0x1f
ja 0x402c0c
mov byte [ebx], 0x5c
mov edx, dword [ebp - 0x10]
lea ebx, [ebp - 0x144]
mov byte [edx + ebx + 1], pe_nt_image_headers32
mov ecx, eax
shr ecx, 4
movzx ecx, byte [ecx + str.0123456789abcdefHost_QueryInterface]
mov byte [edx + ebx + 2], cl
and eax, 0xf
movzx eax, byte [eax + str.0123456789abcdefHost_QueryInterface]
mov byte [edx + ebx + 3], al
add edx, 4
jmp 0x402c50
mov byte [ebx], 0x5c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x144]
mov byte [edx + eax + 1], 0x6e
add edx, 2
jmp 0x402c50
mov byte [ebx], 0x5c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x144]
mov byte [edx + eax + 1], 0x72
add edx, 2
jmp 0x402c50
mov byte [ebx], 0x5c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x144]
mov byte [edx + eax + 1], 0x22
add edx, 2
jmp 0x402c50
cmp cl, 0x7f
jb 0x402c42
push 1
lea eax, [ebp - 0x11]
push eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
push 2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 4
push ebx
call dword [sym.imp.ntdll.dll_RtlUnicodeToUTF8N]
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
jmp 0x402c50
mov edx, dword [ebp - 0x10]
inc edx
mov byte [ebx], cl
nop
nop
nop
nop
nop
nop
nop
nop
dec edi
lea ebx, [edx + ebp]
add ebx, 0xfffffebc
cmp edi, 2
jl 0x402c6c
inc esi
cmp edx, 0x124
jl 0x402b30
mov byte [ebx], 0x22
cmp edi, 3
jl 0x402c83
mov word [ebx + 1], 0x2e2e
mov byte [ebx + 3], 0x2e
add ebx, 4
jmp 0x402c84
inc ebx
mov byte [ebx], 0
lea eax, [ebp - 0x144]
push eax
call sym.___wine_dbg_strdup
add esp, 4
add esp, 0x138
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403300
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov dword [ebp - 0x14], edx
push 0
push 1
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x403408
mov esi, eax
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x403408
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov ebx, eax
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
test ebx, ebx
je 0x403408
push 0
push 0
mov esi, dword [ebp - 0x10]
push esi
push ebx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edi, eax
push eax
push 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
push edi
push eax
push esi
mov esi, eax
push ebx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
test esi, esi
je 0x403408
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0
push 0
push 0x82
push 1
push 1
push 0
push 0
push 0
push esi
push eax
call dword [ecx + 0x14]
mov edi, eax
push esi
call dword [sym.imp.oleaut32.dll_SysFreeString]
test edi, edi
js 0x40343d
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0x14]
test eax, eax
jns 0x403411
test byte [0x410028], 1
je 0x403411
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.SetScriptState_failed:__08lx_n
jmp 0x403455
test byte [0x410028], 1
jne 0x403416
add esp, 8
jmp 0x403438
sub esp, 0x10
mov dword [esp + 0xc], str.Could_not_get_script_text_n
mov dword [esp + 8], str.run_script
mov dword [esp], 0
call sym._wine_dbg_log_2
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
test byte [0x410028], 1
je 0x403411
sub esp, 0x14
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.ParseScriptText_failed:__08lx_n
mov dword [esp + 8], str.run_script
mov dword [esp], 0
call sym._wine_dbg_log_2
add esp, 0x1c
jmp 0x403438

Function at 0x403d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
test eax, eax
je 0x403d62
mov esi, eax
xor eax, eax
cmp byte [esi + edi - 1], 0xa
je 0x403d41
mov eax, dword fs:[0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
xchg dword [0x410344], eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x403d64
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebp
ret