joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012770
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10052ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1006a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x78]
push 0x13
push str.auth.l2jsunrise.com
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
call fcn.10003100
mov dword [ebp - 4], 0
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
cmovae eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10012814
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x10012814
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
lea eax, [ebp - 0x60]
push str._u._u._u._u
push eax
call fcn.10012700
add esp, 0x18
lea edx, [ebp - 0x60]
jmp 0x10012819
mov edx, 0x10062d18
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x10012833
xor ecx, ecx
jmp 0x10012841
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10012838
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.10003100
lea ecx, [ebp - 0x78]
call fcn.10002e80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c8c0
mov esp, ebp
pop ebp
ret 4

Function at 0x100148c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
jmp 0x100148dc
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
push eax
push dword [ebp + 8]
lea ecx, [ebx + 0x100]
mov dword [ebx + 0x110], eax
push ecx
call fcn.1002f610
add esp, 0xc
xor eax, eax
nop dword [eax]
mov byte [eax + ebx], al
inc eax
cmp eax, 0x100
jl 0x10014900
xor edi, edi
mov dword [ebx + 0x114], 0
mov dword [ebx + 0x118], 0
xor esi, esi
mov dword [ebp + 0xc], edi
nop word [eax + eax]
mov dl, byte [esi + ebx]
movzx eax, byte [ebx + edi + 0x100]
add eax, dword [ebp + 0xc]
movzx ecx, dl
add ecx, eax
movzx ecx, cl
mov dword [ebp + 0xc], ecx
mov al, byte [ecx + ebx]
mov byte [esi + ebx], al
lea eax, [edi + 1]
mov byte [ecx + ebx], dl
inc esi
cdq
idiv dword [ebx + 0x110]
mov edi, edx
cmp esi, 0x100
jl 0x10014930
jmp 0x10014979
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10042d6b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10042bea

Function at 0x1004832c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10047fec

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x622c18d1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x2abb721b
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x1086d058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1086d1a8
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 0x1086d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1086d06a
add dl, dl
jne 0x1086d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1086d0dc
xor eax, eax
add dl, dl
jne 0x1086d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1086d17d
add dl, dl
jne 0x1086d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1086d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1086d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1086d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1086d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1086d075
mov eax, 1
add dl, dl
jne 0x1086d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1086d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1086d0e1
sub eax, ebx
mov ebx, 1
jne 0x1086d128
mov ecx, 1
add dl, dl
jne 0x1086d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1086d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1086d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1086d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1086d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1086d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1086d136
cmp eax, 0x7d00
jae 0x1086d16d
cmp eax, 0x500
jb 0x1086d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1086d075
cmp eax, 0x7f
ja 0x1086d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1086d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1086d19e
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 0x1086d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40b730
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480b8f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a9d30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 1
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 1
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 1
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 1
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 1
push 0x1000
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 4
call fcn.004244b0
push 1
push 0x48586e
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 5
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0xffffffff
call fcn.00424e10
mov dword [edi + 0x80], 0
mov eax, edi
mov word [edi + 0x84], 0x100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e970
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480d7b
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4a9d30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi + 4], 0
xorps xmm0, xmm0
mov dword [edi + 8], 0
or eax, 0xffffffff
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x10], 0xffffffff
movdqu xmmword [edi + 0x14], xmm0
movq qword [edi + 0x24], xmm0
mov dword [edi + 0x2c], 0
mov word [edi + 0x30], 0
mov byte [edi + 0x32], 0
mov word [edi + 0x33], ax
mov word [edi + 0x35], ax
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov dword [edi + 0x37], 0
mov eax, dword [eax + 0x24]
mov eax, dword [eax]
mov esi, dword [eax + 0x32]
lea eax, [ebp - 0x64]
push eax
push str.QuickSearch
push esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x40ea56
xorps xmm0, xmm0
push 0x7f00
movdqu xmmword [ebp - 0x64], xmm0
push eax
movdqu xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x64], 0xb
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x60], 0x40eca0
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x48], 6
mov dword [ebp - 0x40], str.QuickSearch
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [edi]
push dword [eax + 0x20]
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
push dword [eax + 0x63]
call esi
mov eax, dword [edi]
push 0
push dword [ebp - 0x34]
mov eax, dword [eax + 0x24]
push 0
push dword [eax + 0x60]
push 0x64
push 0x64
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push connect
push 0
push str.QuickSearch
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push edi
push 0xffffffffffffffeb
push eax
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x5a
call fcn.004528fb
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40eacd
mov ecx, eax
call fcn.0040b2d0
jmp 0x40eacf
xor eax, eax
push 0x65
push 1
push str.CODE
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 8], eax
call fcn.0040b310
mov ecx, dword [edi + 8]
push 0x64
push 1
push str.DISPLAY
call fcn.0040b310
mov ecx, dword [edi]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
lea eax, [edi + 0x14]
mov dword [ebp - 0x3c], 0
push eax
lea eax, [ecx + 0xbe]
push eax
lea eax, [ecx + 0x9f]
push eax
call fcn.00409760
mov eax, dword [ebp - 0x38]
add esp, 0x14
test eax, eax
je 0x40eb51
cmp dword [ebp - 0x3c], 1
jle 0x40eb48
movzx ecx, word [eax]
mov word [edi + 0x33], cx
movzx ecx, word [eax + 0x34]
mov word [edi + 0x35], cx
push eax
call fcn.00453d8e
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004530e4
mov esp, ebp
pop ebp
ret 4
Function at 0x413ed0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4813ce
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4a9d30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.004179c0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.004179c0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x413fe4
test dl, 0x10
jne 0x413fe4
mov eax, 1
jmp 0x413fe6
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.0041ab60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41a2d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x41a301
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x41a2f0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x41c1a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481ea3
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4a9d30]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xb4], eax
call fcn.004258d0
push esi
lea eax, [ebp - 0xb0]
mov ecx, ebx
push eax
call fcn.0041bbc0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0
call fcn.004257c0
push esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00426430
lea eax, [ebx + 0x5e]
push eax
lea ecx, [ebp - 0x60]
call fcn.00426430
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.0041ca50
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.0041ca50
lea eax, [ebp - 0xb0]
push eax
call fcn.004206a0
add esp, 4
test eax, eax
je 0x41c259
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x41c278
mov ecx, dword [ebp - 0xb4]
push str.CopyFile_original_file_not_found:
call fcn.00426480
mov ecx, dword [ebp - 0xb4]
lea eax, [ebx + 0x11]
push eax
call fcn.00426430
lea ecx, [ebp - 0x60]
mov byte [ebx + 8], 1
mov byte [ebp - 4], 0
call fcn.004257d0
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
call fcn.004257d0
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.004530e4
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41c2c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481de8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4a9d30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call fcn.004258d0
push esi
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.0041bbc0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
call fcn.004206a0
add esp, 4
test eax, eax
jne 0x41c324
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x60]
mov byte [edi + 8], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004257d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004530e4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c420
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4a9d30]
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 ebx, ecx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
call fcn.004258d0
push esi
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
call fcn.0041bbc0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0041ca50
lea eax, [ebp - 0x60]
push eax
call fcn.004206a0
add esp, 4
test eax, eax
je 0x41c492
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x60]
mov byte [ebx + 8], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004257d0
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.004530e4
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41c730
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481ea3
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4a9d30]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xb4], eax
call fcn.004258d0
push esi
lea eax, [ebp - 0xb0]
mov ecx, ebx
push eax
call fcn.0041bbc0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0
call fcn.004257c0
push esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00426430
lea eax, [ebx + 0x5e]
push eax
lea ecx, [ebp - 0x60]
call fcn.00426430
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.0041ca50
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.0041ca50
lea eax, [ebp - 0xb0]
push eax
call fcn.004206a0
add esp, 4
test eax, eax
je 0x41c7e9
push dword [ebp - 0x20]
push dword [ebp - 0x70]
call fcn.004552ea
add esp, 8
jmp 0x41c808
mov ecx, dword [ebp - 0xb4]
push str.RenameFile_original_file_not_found:
call fcn.00426480
mov ecx, dword [ebp - 0xb4]
lea eax, [ebx + 0x11]
push eax
call fcn.00426430
lea ecx, [ebp - 0x60]
mov byte [ebx + 8], 1
mov byte [ebp - 4], 0
call fcn.004257d0
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
call fcn.004257d0
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.004530e4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d780
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x4a9d30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x440]
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
push 0x44
push 0
push eax
movdqu xmmword [ebp - 0x3fc], xmm0
call fcn.00453df0
add esp, 0xc
mov dword [ebp - 0x440], 0x44
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x414], 0x40
jne 0x41d7e9
mov eax, 7
mov dword [ebp - 0x414], 0x41
mov word [ebp - 0x410], ax
push 0x1f4
lea eax, [ebp - 0x3ec]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x3ec]
test esi, esi
je 0x41d81e
push esi
push eax
lea eax, [ebp - 0x1f8]
push str._s__s
push eax
call fcn.00453cca
add esp, 0x10
jmp 0x41d833
push eax
lea eax, [ebp - 0x1f8]
push 0x48757c
push eax
call fcn.00453cca
add esp, 0xc
lea eax, [ebp - 0x3fc]
push eax
lea eax, [ebp - 0x440]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x1f8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41d895
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x1f8]
push str.Unable_to_run__s._Error_Code_d
push eax
call fcn.00453cca
add esp, 0x10
lea eax, [ebp - 0x1f8]
push 0x2010
push str.Execution_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004530e4
mov esp, ebp
pop ebp
ret
Function at 0x420700
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [ecx + 0x4d]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
xor edx, edx
shld edx, ecx, 4
shl ecx, 4
add eax, ecx
adc edx, 0
mov esp, ebp
pop ebp
ret

Function at 0x4209b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push dword [edi + 0x40]
push dword [ebx + 0x40]
call fcn.004552ea
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x4209e4
mov ecx, dword [0x4acc10]
test ecx, ecx
je 0x4209e4
push edi
push ebx
call fcn.00415d90
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x420b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x4acc10], 0
push esi
mov esi, ecx
mov dword [ebp - 4], 0
je 0x420b7c
cmp byte [esi + 0x51], 0
jne 0x420b7c
push 1
xorps xmm0, xmm0
lea eax, [ebp - 0xc]
push eax
movlpd qword [ebp - 0x14], xmm0
push dword [ebp - 0x10]
movlpd qword [ebp - 0xc], xmm0
push dword [ebp - 0x14]
push dword [esi + 0x4d]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x4d]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x420b91
push dword [ebp - 4]
mov ecx, dword [0x4acc10]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call fcn.00415f50
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x4d]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8