joyce8/EMBER2024-capa huggingface dataset:
Function at 0x37c270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
cmp dword [ecx + 8], 0
je 0x37c330
mov eax, dword [ecx]
test eax, eax
je 0x37c330
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax + 4]
lea esi, [eax + 0x27e6f8f2]
mov ebx, 0xd
sub ebx, eax
mov edx, ebx
or edx, edi
and ebx, 0xd
and esi, 2
or esi, ebx
xor esi, 2
lea ebx, [eax*2 + 0x4fcdf1e4]
neg ebx
add ebx, eax
add ebx, 0xf1
or ebx, esi
and ebx, edi
not edx
or edx, ebx
add dl, 0x46
mov byte [esp + eax + 4], dl
mov edx, eax
and edx, 1
xor eax, 1
lea eax, [eax + edx*2]
cmp eax, 7
jb 0x37c2b0
mov eax, dword [esp + 4]
mov esi, dword [0xad300]
test esi, esi
je 0x37c3ae
xor edi, edi
mov ebx, dword [0xad304]
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0xaf0e0c2e
je 0x37c38a
inc edi
cmp esi, edi
jne 0x37c320
jmp 0x37c3ae
mov dword [esp + 4], 0xf9babbbc
mov dword [esp + 8], 0
mov eax, 0xd21727df
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x2de8d825]
xor ecx, eax
mov edx, 1
sub edx, ecx
add ecx, 0xae
and edx, 9
and ecx, 0xf6
sub ecx, edx
mov byte [esp + eax + 0x2de8d825], cl
inc eax
cmp eax, 0xd21727e7
jne 0x37c350
mov eax, dword [esp + 4]
jmp 0x37c4c5
mov esi, dword [ebx + edi*8 + 4]
cmp esi, eax
je 0x37c3ae
push dword [ebp + 8]
push dword [esp + 0x10]
push 8
push esi
push dword [0xad308]
mov esi, ecx
call fcn.0037e570
mov ecx, esi
add esp, 0x14
mov edi, dword [ebp + 0xc]
cmp edi, 1
mov esi, dword [ebp + 0x10]
mov edx, esi
sbb edx, 0
jl 0x37c4b8
cmp eax, 0xc000010a
jne 0x37c4b8
mov edx, 0xffffd8f0
mov eax, edi
mul edx
sub edx, edi
imul esi, esi, 0xffffd8f0
add esi, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [ecx]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax + 4]
lea edi, [eax + 0x27e6f8f2]
mov ebx, 0xd
sub ebx, eax
mov edx, ebx
or edx, esi
and ebx, 0xd
and edi, 2
or edi, ebx
xor edi, 2
lea ebx, [eax*2 + 0x4fcdf1e4]
neg ebx
add ebx, eax
add ebx, 0xf1
or ebx, edi
and ebx, esi
not edx
or edx, ebx
add dl, 0x46
mov byte [esp + eax + 4], dl
mov edx, eax
and edx, 1
xor eax, 1
lea eax, [eax + edx*2]
cmp eax, 7
jb 0x37c410
mov eax, dword [esp + 4]
mov esi, dword [0xad300]
test esi, esi
je 0x37c4b8
xor edi, edi
mov ebx, dword [0xad304]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x4c697c35
je 0x37c490
inc edi
cmp esi, edi
jne 0x37c480
jmp 0x37c4b8
mov esi, dword [ebx + edi*8 + 4]
cmp esi, eax
je 0x37c4b8
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x14]
push 0xc
push esi
push dword [0xad308]
mov esi, ecx
call fcn.0037e570
mov ecx, esi
add esp, 0x18
test eax, eax
js 0x37c4c5
mov esi, eax
call fcn.0037c190
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x37fff0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
push eax
mov ecx, dword [esp + 0x14]
mov dword [esp], 0xf10e0fdc
mov eax, 0xfd
mov edx, 2
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0xfd]
mov ebx, edx
xor ebx, eax
and ebx, esi
xor ebx, eax
add bl, 0xf
mov byte [esp + eax - 0xfd], bl
inc eax
dec edx
cmp eax, 0x101
jne 0x380010
mov eax, dword [esp]
mov eax, dword fs:[eax]
xor edx, edx
test ecx, ecx
sete dl
jmp dword [edx*4 + 0xaaa64]

Function at 0x3800d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [esp + 0x44]
movzx eax, word [ebx]
mov dword [esp], 0x4342fb0d
mov dword [esp + 4], 0
mov ecx, 0xae5392f0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx + 0x51ac6d10]
xor esi, ecx
lea edx, [esi*2 + 0x30bc429e]
add esi, 0x985e214f
and edx, 2
mov edi, edx
and edi, esi
or edx, esi
xor edx, 1
add edx, edi
mov byte [esp + ecx + 0x51ac6d10], dl
inc ecx
cmp ecx, 0xae5392f8
jne 0x380100
mov ecx, dword [esp]
xor edx, edx
cmp ecx, eax
setne dl
xor eax, eax
jmp dword [edx*4 + 0xaaaa4]

Function at 0x380f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp], 0x4c4d4a4b
mov word [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x92
xor cl, byte [esp + eax]
add cl, 0x26
mov byte [esp + eax], cl
inc eax
cmp eax, 6
jne 0x380f30
mov eax, dword [esp]
mov edx, dword [0xad300]
test edx, edx
je 0x380f98
xor ebx, ebx
mov ecx, dword [0xad304]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + ebx*8], 0x9c142cda
je 0x380f70
inc ebx
cmp edx, ebx
jne 0x380f60
jmp 0x380f98
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0x380f98
mov eax, esp
lea ecx, [esp + 0x1c]
push 5
push 0x18
push eax
push ecx
push dword [ebp + 8]
push 0x14
push edx
push dword [0xad308]
call fcn.0037e570
add esp, 0x20
test edi, edi
je 0x380fa2
mov ecx, dword [esp + 8]
mov dword [edi], ecx
test esi, esi
je 0x380fae
cmp byte [esp + 0x15], 0
setne byte [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
jmp 0x43cb3c
call fcn.0044174c
jmp 0x43cb46
push 0x14
push 0x460258
call fcn.004407d0
call fcn.00440467
movzx esi, ax
push 2
call fcn.004416ff
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x43cb74
xor ebx, ebx
jmp 0x43cba7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x43cb70
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x43cb70
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x43cba7
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.0043faf0
test eax, eax
jne 0x43cbbb
push 0x1c
call fcn.0043cc96
pop ecx
call fcn.0043eb06
test eax, eax
jne 0x43cbcc
push 0x10
call fcn.0043cc96
pop ecx
call fcn.004417e8
and dword [ebp - 4], 0
call fcn.0044113b
test eax, eax
jns 0x43cbe6
push 0x1b
call fcn.0043cc96
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x468068], eax
call fcn.00441828
mov dword [0x463e08], eax
call fcn.004413ef
test eax, eax
jns 0x43cc0c
push 8
call fcn.0043fc33
pop ecx
call fcn.0044161e
test eax, eax
jns 0x43cc1d
push 9
call fcn.0043fc33
pop ecx
push 1
call fcn.0043fc6d
pop ecx
test eax, eax
je 0x43cc30
push eax
call fcn.0043fc33
pop ecx
call fcn.004418b5
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x43cc52
push esi
call fcn.0043fed6
call fcn.0043fc5e
jmp 0x43cc87
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00440815
ret
Function at 0x402050
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
shr ebx, 2
push esi
mov esi, ecx
mov dword [ebp - 4], 1
mov eax, ebx
xor ecx, ecx
shr eax, 1
add eax, 3
mov dword [esi], eax
add esi, 0x10
push edi
test ebx, ebx
je 0x402085
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x402078
mov eax, dword [esi + ebx*4 - 4]
lea ecx, [ebx + 0xe]
lea ecx, [ebx + ecx*2]
lea edi, [esi + ecx*4]
mov dword [ebp + 8], edi
xor edi, edi
mov ecx, dword [ebp + 8]
lea ebx, [ebx]
test edi, edi
jne 0x402106
movzx ecx, al
mov edi, ebx
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
shr eax, 8
and eax, 0xff
shl edx, 8
movzx ecx, byte [ecx + str.cw]
movzx eax, byte [eax + str.cw]
or edx, ecx
mov ecx, dword [ebp - 4]
xor eax, ecx
shl edx, 8
add ecx, ecx
or eax, edx
test ecx, 0x100
mov edx, 0x1b
cmovne ecx, edx
mov dword [ebp - 4], ecx
jmp 0x402159
cmp edi, 4
jne 0x40215c
cmp ebx, 6
jbe 0x40215c
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
or edx, ecx
mov ecx, eax
shr ecx, 8
and ecx, 0xff
shl edx, 8
movzx eax, al
movzx ecx, byte [ecx + str.cw]
movzx eax, byte [eax + str.cw]
or edx, ecx
shl edx, 8
or eax, edx
mov ecx, dword [ebp + 8]
xor eax, dword [esi]
dec edi
mov dword [esi + ebx*4], eax
add esi, 4
cmp esi, ecx
jne 0x4020a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402180
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.00402050
lea ebx, [esi + 0x14]
xor esi, esi
test ebx, ebx
je 0x402201
lea ebx, [ebx]
mov edx, dword [edi + esi*4 + 0x20]
mov eax, edx
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
and eax, 0xff
mov ecx, dword [ecx*4 + 0x465680]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x465280]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x465a80]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x464e80]
mov dword [edi + esi*4 + 0x20], ecx
inc esi
cmp esi, ebx
jb 0x4021a0
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4030f0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x4622f0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x403139
push str.SetDefaultDllDirectories
push 0x45c1a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403139
push 0xc00
call eax
test eax, eax
jne 0x4031d7
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4031d7
cmp eax, 0x104
ja 0x4031d7
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x403177
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x4031d6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x4031b0
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x4031a0
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x403197
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043aa28
mov esp, ebp
pop ebp
ret
Function at 0x408340
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x45bbbc]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x408820
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x408867
cmp edx, 0x40
je 0x408859
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea edx, [esi + 0x40]
push 1
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00444410
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x20]
push 1
call eax
lea edx, [esi + 0x20]
mov edi, 4
lea ebx, [ebx]
mov ecx, dword [edx + 4]
lea ebx, [ebx + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [ebx - 8], eax
bswap ecx
mov dword [ebx - 4], ecx
dec edi
jne 0x4088b0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
ret

Function at 0x40ba50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x464c01], 0
push esi
mov esi, edx
jne 0x40ba8d
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.00409a80
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043bb8e
add esp, 4
test esi, esi
je 0x40baa0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40baa0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bab0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x464c01], 0
jne 0x40baea
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043bb8e
add esp, 4
test esi, esi
pop esi
je 0x40bafb
mov al, 1
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40bafb
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40bb10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452c98
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4622f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x464c01], 0
jne 0x40bb7c
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00409a80
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0043bb8e
add esp, 4
test esi, esi
je 0x40bb9d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40bb9d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40bbbe
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x50]
call fcn.0040bc10
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040d120
test al, al
jne 0x40bbe0
xor bl, bl
jmp 0x40bbe9
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0043bb8e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bf40
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x464c01], 0
push ebx
push esi
mov esi, ecx
jne 0x40bf74
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov ebx, eax
call fcn.0043bb8e
add esp, 4
jmp 0x40bf82
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bfa1
cmp ebx, 0xffffffff
je 0x40bfa1
test bl, 0x10
jne 0x40bfa1
test bl, 1
je 0x40bfa1
and ebx, 0xfffffffe
mov ecx, esi
mov edx, ebx
call fcn.0040ba50
test al, al
je 0x40bfe8
cmp byte [0x464c01], 0
jne 0x40bfd5
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043bb8e
add esp, 4
test esi, esi
je 0x40bfe8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40bfe8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c390
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x464c01], 0
jne 0x40c3c9
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043bb8e
add esp, 4
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x40c3e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452d76
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4622f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x464c01], cl
jne 0x40c48a
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40c53d
cmp eax, 0x114
jae 0x40c53d
lea edx, [ebp - 0x128]
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x360]
call fcn.00409b40
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00409620
push dword [ebp - 0x360]
call fcn.0043bb8e
add esp, 4
mov al, 1
jmp 0x40c53f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x40c53d
cmp esi, 0x114
jae 0x40c4d4
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.004095a0
mov al, 1
jmp 0x40c53f
lea ecx, [ebp - 0x360]
call fcn.00409440
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40c4fa
push esi
lea ecx, [ebp - 0x360]
call fcn.00409240
push dword [ebp - 0x360]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40c52f
push esi
lea ecx, [ebp - 0x360]
call fcn.0040b970
cmp dword [ebp - 0x35c], ebx
jne 0x40c52f
lea eax, [esi - 1]
cmp eax, ebx
jne 0x40c52f
lea eax, [ebp - 0x360]
jmp 0x40c46d
push dword [ebp - 0x360]
call fcn.0043bb8e
add esp, 4
xor al, al
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.0043aa28
mov esp, ebp
pop ebp
ret
Function at 0x40c5e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452dab
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4622f0]
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, ecx
cmp byte [0x464c01], 0
jne 0x40c66a
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x128]
mov edi, eax
lea ecx, [ebp - 0x360]
call fcn.00409b40
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00409620
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x360]
call fcn.0043bb8e
add esp, 4
jmp 0x40c695
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x354]
push eax
call fcn.004095a0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40c6d1
mov eax, dword [esi]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x40c6d1
cmp eax, 0x2f
je 0x40c6d1
cmp dword [esi + 8], ecx
jne 0x40c6b9
mov ecx, esi
call fcn.004092b0
mov ecx, dword [esi + 4]
mov edx, 0x5c
mov eax, dword [esi]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
test edi, edi
je 0x40c6e1
cmp edi, 0x114
jae 0x40c6e1
mov al, 1
jmp 0x40c6e3
xor al, al
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.0043aa28
mov esp, ebp
pop ebp
ret
Function at 0x40d0d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x464c01], 0
jne 0x40d106
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043bb8e
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x40db10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
mov edi, edi
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x40db78
test ecx, ecx
je 0x40db6d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x40db30
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40db90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
mov edi, edi
cmp esi, 0x400000
mov dword [ebp + 0x10], 0
push 0
mov eax, esi
cmova eax, edx
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x40dbf8
test ecx, ecx
je 0x40dbed
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x40dbb0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a580
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.0043b829
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x41a5ae
xor eax, eax
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 8