joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c8200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, 0x20
mov eax, dword [edi + 4]
cmp eax, ecx
mov dword [edi + 0x78], 0
cmova eax, ecx
mov dword [edi + 0x7c], 0
mov dword [edi + 0x54], eax
mov eax, dword [edi]
mov dword [edi + 0x30], 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 1
mov dword [edi + 0x70], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x90], 0xffffffff
mov dword [edi + 0x94], 0xffffffff
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x58], 0
cmp eax, dword [edi + 0x20]
je 0x100c8316
lea ebx, [edi + 0xd0]
mov ebp, ecx
nop
mov edx, dword [ebx]
test edx, edx
je 0x100c82f5
mov dword [ebx], 0
nop dword [eax]
mov eax, dword [ebx - 8]
mov esi, dword [edx]
mov eax, dword [eax + 0x14]
mov ecx, eax
mov eax, dword [eax + 4]
call eax
mov edx, esi
test esi, esi
jne 0x100c82e0
add ebx, 0x28
sub ebp, 1
jne 0x100c82d0
mov edx, dword [edi + 0x5c]
test edx, edx
je 0x100c8311
mov eax, dword [edi + 0x14]
mov ecx, eax
mov eax, dword [eax + 4]
call eax
mov dword [edi + 0x5c], ebp
mov eax, dword [edi]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x10]
mov dword [edi + 0x98], eax
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
lea esi, [edi + eax*8]
lea eax, [ecx + 1]
mov dword [esp + 0x10], esi
lea ebp, [esi + 0x20]
mov dword [edi + 0x58], eax
cmp dword [ebp], 0
mov ecx, ebp
je 0x100c8387
call fcn.100cda90
jmp 0x100c838c
call fcn.100cd9e0
mov ebx, eax
add esi, 0x1c
test ebx, ebx
jne 0x100c8428
mov ecx, esi
cmp dword [esi], eax
je 0x100c83a6
call fcn.100cda90
jmp 0x100c83ab
call fcn.100cd9e0
mov ebx, eax
test ebx, ebx
jne 0x100c8428
mov ecx, ebp
call fcn.100cdac0
mov ebx, eax
test ebx, ebx
jne 0x100c8428
mov ecx, esi
call fcn.100cdac0
mov ebx, eax
test ebx, ebx
jne 0x100c8428
push dword [esp + 0x10]
call fcn.100c9600
mov ebx, eax
test ebx, ebx
je 0x100c843a
mov dword [edi + 0x44], 0
lea esi, [edi + 0xe4]
mov dword [esp + 0x10], 0x20
nop
cmp dword [esi - 4], 0
je 0x100c840d
lea ecx, [esi + 4]
call fcn.100cdac0
mov ecx, esi
call fcn.100cdac0
lea ecx, [esi - 4]
call fcn.100cdd30
mov ecx, esi
call fcn.100cdaf0
lea ecx, [esi + 4]
call fcn.100cdaf0
add esi, 0x28
sub dword [esp + 0x10], 1
jne 0x100c83f0
test ebx, ebx
jle 0x100c8433
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
je 0x100c843a
mov dword [edi + 0x40], ebx
cmp dword [edi + 0x38], 0
jne 0x100c8453
cmp dword [edi + 0x40], 0
jne 0x100c8453
cmp dword [edi + 0x3c], 0
jne 0x100c8453
mov dword [edi + 0x44], 0
xor eax, eax
cmp dword [edi + 0x44], eax
pop edi
pop esi
cmovne ebx, eax
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x100c9cc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
mov eax, dword [edi]
movzx ecx, byte [ebx + 1]
add word [eax + 2], 4
add ecx, 4
mov byte [ebx + 1], cl
movzx eax, byte [ebx - 5]
mov dword [esp + 8], ecx
cmp ecx, eax
jbe 0x100c9d13
cmp dword [esp + 8], 0x7c
lea ecx, [ebx - 6]
mov eax, dword [ecx]
mov edx, dword [ebx]
push esi
mov si, word [ebx + 4]
mov dword [ebx], eax
mov ax, word [ecx + 4]
mov dword [ecx], edx
mov word [ecx + 4], si
mov word [ebx + 4], ax
mov dword [edi + 8], ecx
pop esi
jbe 0x100c9d13
mov ecx, edi
call fcn.100ca180
mov eax, dword [edi + 8]
movzx ecx, word [eax + 4]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
cmp dword [edi + 0xc], 0
jne 0x100c9d37
cmp ecx, dword [edi + 0x40]
jbe 0x100c9d37
mov dword [edi], ecx
mov dword [edi + 4], ecx
pop edi
pop ebx
pop ecx
ret
mov ecx, edi
pop edi
pop ebx
add esp, 4
jmp fcn.100c9e00

Function at 0x100c9d50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp]
movzx ebx, byte [edi + 1]
movzx edx, word [esi + 2]
lea ecx, [ebx + ebx]
cmp edx, ecx
sbb eax, eax
add ebx, 4
neg eax
add dword [ebp + 0x20], eax
mov dword [ebp + 0x14], eax
lea eax, [edx + 4]
mov word [esi + 2], ax
mov byte [edi + 1], bl
cmp ebx, 0x7c
jbe 0x100c9d8c
mov ecx, ebp
call fcn.100ca180
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 4]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
cmp dword [ebp + 0xc], 0
jne 0x100c9db2
cmp ecx, dword [ebp + 0x40]
jbe 0x100c9db2
pop edi
pop esi
mov dword [ebp], ecx
mov dword [ebp + 4], ecx
pop ebp
pop ebx
ret
pop edi
pop esi
mov ecx, ebp
pop ebp
pop ebx
jmp fcn.100c9e00

Function at 0x100c9dc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
mov eax, dword [edi + 0x24]
movzx edx, byte [esi + 1]
mov dword [edi + 0x20], eax
add edx, 4
mov eax, dword [edi]
add word [eax + 2], 4
mov byte [esi + 1], dl
cmp edx, 0x7c
jbe 0x100c9de8
call fcn.100ca180
mov ecx, edi
pop edi
pop esi
jmp fcn.100c9e00
Function at 0x100cc910
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x130
push 0
mov dword [esp + 0x24], edi
lea eax, [edi + 0x100]
push eax
call fcn.100d9dc0
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x10100ff
mov dword [ecx + 8], 0
nop dword [eax + eax]
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x100cc9b0
lea edx, [edi + 0x330]
mov dword [esp + 0x10], ecx
mov ebp, edx
mov dword [esp + 0x20], edx
lea esi, [edi + 0x1048]
mov dword [esp + 0x18], ebp
xor ebx, ebx
mov dword [esp + 0x14], esi
movzx eax, byte [ebp]
cmp eax, ecx
jne 0x100cca00
nop
inc ebx
movzx eax, byte [edx + ebx]
lea ebp, [edx + ebx]
mov dword [esp + 0x18], ebp
cmp eax, ecx
je 0x100cc9f0
lea ebp, [ebx + 1]
xor edi, edi
movzx eax, word [edi + 0x100f76e0]
xor edx, edx
div ebp
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop dword [eax]
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x100cca20
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x100cca05
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
inc ecx
mov ebp, dword [esp + 0x18]
sub esi, 0xffffff80
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp ecx, 0x19
jb 0x100cc9e7
mov esi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x14], 0x18
lea ebp, [esi + 0x333]
add esi, 0x448
mov edx, ebp
mov dword [esp + 0x18], esi
lea ebx, [ecx + 3]
nop dword [eax + eax]
movzx eax, byte [edx]
cmp eax, ebx
jne 0x100cca93
inc ecx
movzx eax, byte [ecx + ebp]
lea edx, [ecx + ebp]
cmp eax, ebx
je 0x100cca87
mov edi, ecx
mov eax, esi
shl edi, 4
mov esi, 0x20
add edi, 0x28
mov word [eax], di
lea eax, [eax + 4]
mov word [eax - 2], 0x703
sub esi, 1
jne 0x100ccaa2
mov esi, dword [esp + 0x18]
inc ebx
sub esi, 0xffffff80
sub dword [esp + 0x14], 1
mov dword [esp + 0x18], esi
jne 0x100cca80
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [eax + 0x444], 0x40070000
pop ebx
add esp, 0x14
ret

Function at 0x100cdc90
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push dword [esp + 0x14]
push edx
push 0
push 0
call fcn.100dc4e7
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x100cdcb9
xor eax, eax
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
pop ecx
ret 4
Function at 0x100cdcd0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
mov esi, ecx
push eax
push 4
push dword [esp + 0x18]
push edx
push 0
push 0
call fcn.100dc4e7
mov edi, eax
add esp, 0x18
mov dword [esi], edi
test edi, edi
je 0x100cdd14
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x100cdd14
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
pop edi
cmovne ecx, eax
mov eax, ecx
pop esi
pop ecx
ret 8

Function at 0x100cde30
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], edx
sub edx, 1
je 0x100cde58
sub edx, 3
je 0x100cde49
sub edx, 6
jne 0x100cde5f
add ecx, 0x10
jmp fcn.100d5c40
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 0xc], 0xffffffff
ret
mov dword [ecx + 4], 0xffffffff
ret
Function at 0x100d52c0
Capabilities:
Hash data using sha1

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, edx
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x100d530e
cmp edx, 0x40
je 0x100d52fa
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 edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebx
call eax
xor edx, edx
jmp 0x100d5314
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.100d9dc0
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
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
mov ecx, ebx
push 1
call eax
mov eax, dword [ebx]
lea ecx, [ebp + 4]
bswap eax
mov dword [ebp], eax
lea edx, [esi + 0x24]
mov edi, 4
nop
mov eax, dword [edx]
lea edx, [edx + 4]
lea ecx, [ecx + 4]
bswap eax
mov dword [ecx - 4], eax
sub edi, 1
jne 0x100d5360
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 0x24], 0xefcdab89
mov dword [esi + 0x28], 0x98badcfe
mov dword [esi + 0x2c], 0x10325476
mov dword [esi + 0x30], 0xc3d2e1f0
pop esi
pop ebp
mov dword [ebx], 0x67452301
pop ebx
ret

Function at 0x100d5410
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [0x101120b8]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x67452301
mov dword [ecx + 0x24], 0xefcdab89
mov dword [ecx + 0x28], 0x98badcfe
mov dword [ecx + 0x2c], 0x10325476
mov dword [ecx + 0x30], 0xc3d2e1f0
ret
Function at 0x100d5b40
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
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 0x100d5b8e
cmp edx, 0x40
je 0x100d5b7a
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 edi, [esi + 0x40]
lea ebp, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebp
call eax
xor edx, edx
jmp 0x100d5b94
lea edi, [esi + 0x40]
lea ebp, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.100d9dc0
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
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
mov ecx, ebp
push 1
call eax
mov edx, ebp
mov edi, 4
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
sub edi, 1
jne 0x100d5bd4
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
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
mov dword [ebp], 0x6a09e667
pop ebp
pop ebx
ret

Function at 0x100d5c40
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x101120bc]
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 0x100dbbff
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x100f7ba4
push 0x100f7b9c
push 0x100f7ba4
push 0
call fcn.100dbb78
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100dbc31
push dword [ebp + 8]
mov ecx, esi
call fcn.100d6ab8
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x100dbc73
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x100f7bc8
push 0x100f7bc0
push 0x100f7bc8
push 2
call fcn.100dbb78
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x100dbca4
mov ecx, esi
call fcn.100d6ab8
call esi
jmp 0x100dbcaa
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x100dbcad
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x100f7bdc
push 0x100f7bd4
push 0x100f7bdc
push 3
call fcn.100dbb78
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x100dbce1
mov ecx, esi
call fcn.100d6ab8
call esi
jmp 0x100dbce7
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x100de2df
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x100f8c28
push str.FlsAlloc
push 0x1e
call fcn.100de1bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100de313
push dword [ebp + 8]
mov ecx, esi
call dword [0x100ec1a4]
call esi
jmp 0x100de319
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100de35d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x100f8c4c
push str.FlsGetValue
push 0x20
call fcn.100de1bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100de394
push dword [ebp + 8]
mov ecx, esi
call dword [0x100ec1a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100dfa0e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100dfaab
push ebx
push esi
call fcn.100df9d7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100df920
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100dfa58
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100dfaaa
push edi
push eax
call fcn.100dd2ab
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100dfa78
call fcn.100dd271
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100dfaa9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100df920
add esp, 0x20
test eax, eax
jne 0x100dfa97
push edi
call fcn.100dd271
jmp 0x100dfa9f
push ebx
call fcn.100dd271
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x403203
pop dword [ebp - 0x2c]
mov eax, 0x403203
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xd7c04833
sub dword [ebp - 0x3c], 0x896e02e8
mov dword [ebp - 0x38], 0xd1f640e3
add dword [ebp - 0x38], 0x603d0b62
mov dword [ebp - 0x34], 0x2f23b24
add dword [ebp - 0x34], 0x495a090a
mov dword [ebp - 0x30], 0x4bf3d2de
sub dword [ebp - 0x30], 0x4bf3d2de
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xd75aeaea
sub dword [ebp - 0x3c], 0x62e88194
mov dword [ebp - 0x38], 0xdda9f62e
sub dword [ebp - 0x38], 0x9c3d94b9
mov dword [ebp - 0x34], 0xbd5c8363
sub dword [ebp - 0x34], 0x59ed16f7
mov dword [ebp - 0x30], 0x624efb4e
sub dword [ebp - 0x30], 0x624efb4e
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xbede7cad
add eax, 0x4161f3fb
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3680d
push 0
call eax
mov ecx, 0x13370ac3
add ecx, 0xecc93ce0
mov edx, eax
mov edi, 0x410000
add edi, dword [ebp - 0x2c]
mov esi, 0x666d7ed3
sub esi, 0x3ac9ff42
xor dword [ebp - 0xc], eax
mov ebx, dword [edi]
sub dword [ebp - 0x28], ecx
add ebx, esi
sub dword [ebp - 8], edx
mov dword [edx], ebx
add dword [ebp - 0x24], 0x728fd974
add edx, 0x872e0248
add edx, 0x78d1fdbc
add edi, 0x308610fc
add edi, 0xcf79ef08
loop 0x403315
add eax, 0x21351794
add eax, 0xdecbf9cb
mov ebx, eax
add eax, 5
mov ecx, 0xa09961f7
add ecx, 0x5fa69e09
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x100019a6
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x100276db
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
mov ecx, edi
call fcn.1001dcdf
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x30], 1
mov dword [ebp - 4], ecx
cmp byte [0x10036ee8], cl
je 0x10001a1a
cmp dword [edi + 0x14], 0x10
jb 0x100019f5
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__reference_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001a1a
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.1001dcdf
pop ecx
mov eax, esi
call fcn.10026544
ret 8

Function at 0x10001a2b
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x100276db
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.100021f9
pop ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x30], cl
mov dword [ebp - 4], ecx
cmp byte [0x10036ee8], cl
je 0x10001a9c
cmp dword [edi + 0x14], 0x10
jb 0x10001a76
mov edi, dword [edi]
push eax
push edi
push str.CMemMappedFile__s__ctor__new_with_size_lu_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x10001a9c
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.10002e0d
mov eax, esi
call fcn.10026544
ret 4

Function at 0x10001aad
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x100276db
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.100021f9
pop ecx
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov dword [ebp - 4], eax
cmp byte [0x10036ee8], al
je 0x10001b1a
cmp dword [edi + 0x14], 0x10
jb 0x10001af5
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__new_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001b1a
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, esi
call fcn.10026544
ret
Function at 0x10001c19
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x100276db
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CMemMappedFile.0
and dword [ebp - 4], 0
cmp byte [0x10036ee8], 0
je 0x10001c6d
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10001c48
mov eax, dword [eax]
push eax
push str.CMemMappedFile__s__dtor
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001c6d
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.10004020
cmp dword [esi + 0x20], 0
je 0x10001c83
push dword [esi + 0x20]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [esi + 0x1c], 0
je 0x10001c92
push dword [esi + 0x1c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
call fcn.1001dcdf
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
lea ecx, [esi + 4]
call fcn.1001dcdf
call fcn.10026544
ret