joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12470a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x12a2014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0xb1095c
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1247289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x1247289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.012740f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0xb10a56
nop
test eax, eax
je 0x1247289
push 4
push 0x1000
push 4
push 0
call 0xb10252
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x9400da
nop
test eax, eax
je 0x1247289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x1298df8
push dword [esp + 0x30]
call 0x9404e0
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x12471ac
push 0x1298dfc
push 0x1298e14
call 0xac0e9f
nop
push eax
call 0x94024d
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x940355
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0x1247289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0xb10854
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x1247243
mov dword [esp + 0xc], eax
call fcn.01246ef0
push eax
call 0xab0545
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0xb10854
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x12471f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0xb10854
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x940790
nop
push dword [esp + 0x24]
call 0xac0f2a
nop
push 0x8000
push 0
push esi
call 0xb107a5
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0125cff1
mov esp, ebp
pop ebp
ret
Function at 0x124af20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1289726
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x12a2014]
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 dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.01278b63
push eax
call fcn.01276660
add esp, 8
call fcn.0127663f
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.0127663f
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.0127663f
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.012445b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x124afd0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x124afe6
push 0x40
push 0
push 0x12a8560
sub esi, ecx
call fcn.012740f0
add esp, 0xc
mov dword [0x12a8554], 0
mov edx, esi
mov dword [0x12a8550], 0
lea ecx, [ebp - 0x410]
mov dword [0x12a8540], 0x67452301
mov dword [0x12a8544], 0xefcdab89
mov dword [0x12a8548], 0x98badcfe
mov dword [0x12a854c], 0x10325476
call fcn.01245530
call fcn.012455f0
mov ecx, 0x12a65a0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x124b071
sub ecx, edx
push ecx
push 0x12a65a0
lea ecx, [ebp - 0x42c]
call fcn.012580c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x124b0cc
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x124b0c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x124b18c
push edx
push ecx
call fcn.0125d663
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0x124b187
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.012580c0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0x124b169
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x124b15f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x124b18c
push edx
push ecx
call fcn.0125d663
add esp, 8
mov eax, ebx
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.0125cff1
mov esp, ebp
pop ebp
ret
call fcn.01258200
call fcn.01276c6a
int3
Function at 0x125dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0xce03e8
nop
test eax, eax
je 0x125dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x125dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x125dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x125dd07
cmp dword [ecx + 0x74], 0xe
jbe 0x125dd07
cmp dword [ecx + 0xe8], 0
je 0x125dd07
mov al, 1
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
jmp 0x43805b
call fcn.0043c191
jmp 0x438065
push 0x14
push 0x44f2f0
call fcn.0043a520
call fcn.0043a1b2
movzx esi, ax
push 2
call fcn.0043c144
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x438093
xor ebx, ebx
jmp 0x4380c6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x43808f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x43808f
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4380c6
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.0043975c
test eax, eax
jne 0x4380da
push 0x1c
call fcn.004381b5
pop ecx
call fcn.004394b1
test eax, eax
jne 0x4380eb
push 0x10
call fcn.004381b5
pop ecx
call fcn.0043c22d
and dword [ebp - 4], 0
call fcn.0043bb80
test eax, eax
jns 0x438105
push 0x1b
call fcn.004381b5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x458718], eax
call fcn.0043c26d
mov dword [0x454b90], eax
call fcn.0043be34
test eax, eax
jns 0x43812b
push 8
call fcn.004397ee
pop ecx
call fcn.0043c063
test eax, eax
jns 0x43813c
push 9
call fcn.004397ee
pop ecx
push 1
call fcn.00439828
pop ecx
test eax, eax
je 0x43814f
push eax
call fcn.004397ee
pop ecx
call fcn.0043c2fa
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x438171
push esi
call fcn.00439a91
call fcn.00439819
jmp 0x4381a6
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.0043a565
ret
Function at 0x402310
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 0x402345
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x402338
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 0x4023c6
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 0x402419
cmp edi, 4
jne 0x40241c
cmp ebx, 6
jbe 0x40241c
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 0x402360
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x403140
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x451090]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x403189
push str.SetDefaultDllDirectories
push 0x446498
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403189
push 0xc00
call eax
test eax, eax
jne 0x403227
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403227
cmp eax, 0x104
ja 0x403227
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x4031c7
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x403226
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 0x403200
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x4031f0
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 0x4031e7
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435ebc
mov esp, ebp
pop ebp
ret
Function at 0x406ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x20
push edi
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], 0
cmova eax, ecx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x406fee
mov eax, ecx
lea ebx, [esi + 0xd0]
mov dword [ebp + 8], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x406fc8
mov dword [ebx], 0
mov eax, dword [ebx - 8]
mov edi, dword [ecx]
push ecx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, edi
test edi, edi
jne 0x406fb0
mov eax, dword [ebp + 8]
add ebx, 0x28
dec eax
mov dword [ebp + 8], eax
jne 0x406fa4
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x406fe9
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], 0
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
lea eax, [ebx + 0x20]
push eax
call fcn.00408700
mov edi, eax
test edi, edi
jne 0x4070a0
lea eax, [ebx + 0x1c]
push eax
call fcn.00408700
mov edi, eax
test edi, edi
jne 0x4070a0
lea eax, [ebx + 0x20]
push eax
call fcn.00408820
mov edi, eax
test edi, edi
jne 0x4070a0
lea eax, [ebx + 0x1c]
push eax
call fcn.00408820
mov edi, eax
test edi, edi
jne 0x4070a0
push ebx
call fcn.00408030
mov edi, eax
test edi, edi
je 0x4070b2
push esi
mov dword [esi + 0x44], 0
call fcn.00406e80
test edi, edi
jle 0x4070ab
movzx edi, di
or edi, 0x80070000
test edi, edi
je 0x4070b2
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], 0
jne 0x4070cb
cmp dword [esi + 0x40], 0
jne 0x4070cb
cmp dword [esi + 0x3c], 0
jne 0x4070cb
mov dword [esi + 0x44], 0
xor eax, eax
cmp dword [esi + 0x44], eax
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4084c0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x408509
cmp edx, 0x40
je 0x4084fb
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.00436580
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
mov edi, dword [ebp + 0xc]
lea edx, [esi + 0x20]
mov ebx, 4
nop
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
dec ebx
jne 0x408550
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
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
pop ebp
ret 8

Function at 0x4085b0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x451020]
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
pop ebp
ret 4

Function at 0x4089f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00436610
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x408a1d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
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 0xc
Function at 0x40b8f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4437d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x451090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x454850], 0
mov edi, dword [ebp + 8]
jne 0x40b95f
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040a090
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00436ba4
add esp, 4
test esi, esi
je 0x40b982
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 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b982
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 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b9a5
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 4
lea ecx, [ebp - 0x50]
call fcn.0040c530
lea ecx, [ebp - 0x28]
call fcn.004090c0
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040c910
test al, al
jne 0x40b9cf
xor bl, bl
jmp 0x40b9d8
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00436ba4
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 4

Function at 0x40ba00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x454850], 0
jne 0x40ba40
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a090
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00436ba4
add esp, 4
test esi, esi
pop esi
je 0x40ba57
mov al, 1
mov esp, ebp
pop ebp
ret 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ba57
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x40bcf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040d020
cmp eax, 0xffffffff
je 0x40bd1b
test al, 0x10
jne 0x40bd1b
test al, 1
je 0x40bd1b
and eax, 0xfffffffe
push eax
push esi
call fcn.0040c430
test al, al
je 0x40bd63
cmp byte [0x454850], 0
push esi
jne 0x40bd50
lea eax, [ebp - 0xc]
push eax
call fcn.0040a090
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00436ba4
add esp, 4
test esi, esi
je 0x40bd63
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40bd63
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40bd70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443846
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x451090]
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, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x454850], cl
jne 0x40be1d
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40bee8
cmp eax, 0x114
jae 0x40bee8
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.0040a060
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00409150
push dword [ebp - 0x36c]
call fcn.00436ba4
add esp, 4
mov al, 1
jmp 0x40beea
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 0x40bee8
cmp esi, 0x114
jae 0x40be6a
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.00409250
mov al, 1
jmp 0x40beea
lea ecx, [ebp - 0x360]
call fcn.004090c0
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40be90
push esi
lea ecx, [ebp - 0x360]
call fcn.004099a0
push dword [ebp - 0x360]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40beda
push esi
lea ecx, [ebp - 0x360]
call fcn.0040c060
cmp dword [ebp - 0x35c], ebx
jne 0x40beda
lea eax, [esi - 1]
cmp eax, ebx
jne 0x40beda
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.00409150
push dword [ebp - 0x360]
call fcn.00436ba4
add esp, 4
mov al, 1
jmp 0x40beea
push dword [ebp - 0x360]
call fcn.00436ba4
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.00435ebc
mov esp, ebp
pop ebp
ret 4
Function at 0x40bf70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44387b
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x451090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x454850], 0
mov esi, dword [ebp + 8]
jne 0x40bffd
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.0040a060
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00409150
push dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call fcn.00436ba4
add esp, 4
jmp 0x40c028
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.00409250
push esi
call fcn.0040df60
test edi, edi
je 0x40c03e
cmp edi, 0x114
jae 0x40c03e
mov al, 1
jmp 0x40c040
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.00435ebc
mov esp, ebp
pop ebp
ret 4

Function at 0x40c0c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x454850], 0
jne 0x40c0fe
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a090
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00436ba4
add esp, 4
test esi, esi
pop esi
je 0x40c113
mov al, 1
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40c113
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40c360
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x454850], 0
jne 0x40c39d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a090
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00436ba4
add esp, 4
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40c430
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x454850], 0
jne 0x40c471
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a090
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00436ba4
add esp, 4
test esi, esi
pop esi
je 0x40c489
mov al, 1
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40c489
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
mov esp, ebp
pop ebp
ret 8