joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c525b
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x100d7b38], 0x512
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x100c52c6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x100c5310
jmp 0x100c5354
mov eax, dword [ebp - 0x18]
mov dword [0x100d7b3c], 0x11c4
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x100c52f5
jmp 0x100c5354
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
je 0x100c52a5
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
jl 0x100c52c6
jmp 0x100c52a5
mov dword [0x100d7b3c], 0x2624
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x100c5291
jmp 0x100c5354
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x100c5354
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x100c5354
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x100c5354
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x100c5363
xor eax, eax
mov dword [0x100d7b3c], 0x1864
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x100c536b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov ecx, dword [0x100d7b3c]
add ecx, 0x77c
mov dword [0x100d7b3c], ecx
mov dword [ebp - 0x10], eax
call fcn.100c5cbf
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x100d7b3c], 0x10e8
mov edi, dword [0x100d7b38]
add edi, 0xfffffe9f
mov dword [0x100d7b3c], edi
mov esi, dword [eax + esi + 0x78]
mov dword [0x100d7b38], 0x171d
mov ebx, edx
add ebx, dword [eax + esi + 0x20]
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ecx
je 0x100c54e6
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
jmp 0x100c545d
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x3c]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
jb 0x100c545d
jmp 0x100c54e6
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x100c54b7
jmp 0x100c548b
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
xor esi, esi
add ecx, 0x77c
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + eax*4]
mov dword [0x100d7b3c], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], esi
jmp 0x100c5432
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x44], eax
jne 0x100c5432
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x100c54c3
jmp 0x100c5403
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x100d7b38], 0xfffff748
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100c5aab
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x100d7b44], 0
mov byte [0x100d7b48], 0
mov dword [0x100d7b40], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x100c5b19
mov eax, dword [0x100d7b38]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x100c5b4b
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0x1fdd
xor ecx, ecx
mov dword [0x100d7b40], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x100c5b4b
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x100d7b38], 0x1fdd
mov eax, dword [0x100d7b40]
add eax, 1
mov dword [0x100d7b40], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100c5b19
jmp 0x100c5b00
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
mov dword [ebp - 0x2c], eax
xor esi, esi
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x100d7b4c], 0
add ecx, 0xfffff6b9
mov edi, dword [0x100d7b44]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x100d7b4c], esi
mov dword [0x100d7b3c], 0x1dfc
mov eax, esi
cdq
mov esi, dword [ebp - 0x30]
idiv esi
mov dword [0x100d7b44], edx
mov dword [0x100d7b38], ecx
mov ecx, dword [ebp - 0x2c]
mov cl, byte [ebx + ecx]
mov byte [0x100d7b48], cl
mov dword [0x100d7b3c], 0xe30
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], cl
mov ecx, dword [0x100d7b3c]
add ecx, 0xfffffd81
mov dword [0x100d7b38], ecx
mov cl, byte [0x100d7b48]
mov edx, dword [0x100d7b44]
mov byte [ebx + edx], cl
mov edx, dword [0x100d7b40]
add edx, 1
mov dword [0x100d7b40], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x100c5ae8
jmp 0x100c5af8
Function at 0x100c5e3d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x100d7b40], 0
mov dword [0x100d7b44], 0
mov dword [0x100d7b50], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x100c5ead
jmp 0x100c5eb5
mov eax, dword [0x100d7b40]
mov ecx, dword [0x100d7b44]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
jmp 0x100c5eb5
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, edx
add edi, 1
mov dword [0x100d7b38], 0x1e8a
add eax, 1
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x100d7b40], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x100d7b44], edx
mov dword [0x100d7b38], 0x40c5
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x100d7b48], cl
mov dword [0x100d7b3c], 0x471
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x100d7b48]
mov edx, dword [0x100d7b44]
mov byte [ebx + edx], cl
mov edx, dword [0x100d7b40]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x100d7b44]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x100d7b50], ecx
mov dword [0x100d7b38], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x100d7b3c], 0xbad
mov dword [0x100d7b38], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x2c], edi
je 0x100c5ead
jmp 0x100c5e94
Function at 0x100c5f9f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x100d7b38], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.100c5658
lea ecx, [0x100c595f]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x7c], 0x138e00
mov edx, dword [0x100d7b24]
mov dword [esp + 0x58], edx
mov edx, dword [0x100d7b28]
mov dword [esp + 0x44], edx
mov edx, dword [0x100d7b2c]
mov dword [esp + 0x48], edx
mov edx, dword [0x100d7b30]
mov dword [esp + 0x34], edx
mov edx, dword [0x100d7b34]
mov dword [esp + 0x30], edx
mov dword [0x100d7b38], 0x212d
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x100c609c
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov dword [0x100d7b3c], 0x1fcc
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x64], edx
call fcn.100c525b
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x100c6063
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.100c5115
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x100d7b38], 0x1ed4
mov dword [esp + 8], eax
jmp 0x100c605b
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x100c60c3
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x100c602b
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x100c609c
Function at 0x401060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d47a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x44bfcc]
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
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004090e9
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401106
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.004212d3
push 0x4497cc
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.004255d3
push edi
push esi
call fcn.00409380
add esp, 8
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.0042128d
mov esp, ebp
pop ebp
ret 4
Function at 0x402870
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d5c6
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x44bfcc]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x44bfcc]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0x30]
call fcn.004027d0
sub esp, 8
lea ecx, [esp + 0x34]
call fcn.00403bf0
mov edx, str._ERROR_
lea ecx, [esp + 0x3c]
mov dword [esp + 0xf0], 0
call fcn.00406c80
lea edx, [esi + 0x14]
mov ecx, eax
call fcn.00406c80
mov ecx, eax
call fcn.00406fc0
mov edx, edi
mov ecx, eax
call fcn.00406c80
mov ecx, eax
call fcn.00406fc0
mov edx, ebx
mov ecx, eax
call fcn.00406c80
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.00403d20
mov esi, eax
mov byte [esp + 0xf0], 1
cmp dword [esi + 0x14], 8
jb 0x402935
mov esi, dword [esi]
mov ebx, dword [esp + 0x10]
cmp byte [ebx], 0
je 0x402959
cmp byte [ebx + 8], 0
je 0x40294b
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebx + 4], 2
jl 0x402959
push esi
mov ecx, ebx
call fcn.00402c10
cmp dword [esp + 0x28], 8
jb 0x40296c
push dword [esp + 0x14]
call fcn.00421400
add esp, 4
xor eax, eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0xf0], 0xffffffff
call fcn.00403ca0
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x98], vtable.std::ios_base.0
call fcn.0040d04b
add esp, 4
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0042128d
mov esp, ebp
pop ebp
ret 8
Function at 0x4029e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d5c6
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x44bfcc]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x44bfcc]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0x30]
call fcn.004027d0
sub esp, 8
lea ecx, [esp + 0x34]
call fcn.00403bf0
mov edx, str._INFO_
lea ecx, [esp + 0x3c]
mov dword [esp + 0xf0], 0
call fcn.00406c80
lea edx, [esi + 0x14]
mov ecx, eax
call fcn.00406c80
mov ecx, eax
call fcn.00406fc0
mov edx, edi
mov ecx, eax
call fcn.00406c80
mov ecx, eax
call fcn.00406fc0
mov edx, ebx
mov ecx, eax
call fcn.00406c80
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.00403d20
mov esi, eax
mov byte [esp + 0xf0], 1
cmp dword [esi + 0x14], 8
jb 0x402aa5
mov esi, dword [esi]
mov ebx, dword [esp + 0x10]
cmp byte [ebx], 0
je 0x402ac9
cmp byte [ebx + 8], 0
je 0x402abb
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebx + 4], 4
jl 0x402ac9
push esi
mov ecx, ebx
call fcn.00402c10
cmp dword [esp + 0x28], 8
jb 0x402adc
push dword [esp + 0x14]
call fcn.00421400
add esp, 4
xor eax, eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0xf0], 0xffffffff
call fcn.00403ca0
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x98], vtable.std::ios_base.0
call fcn.0040d04b
add esp, 4
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0042128d
mov esp, ebp
pop ebp
ret 8
Function at 0x403110
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d580
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x44bfcc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403151
mov al, 1
jmp 0x403230
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp word [esi], ax
jne 0x40316e
xor ecx, ecx
jmp 0x403182
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403173
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.004063d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x38]
push ecx
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], 0x5c
call fcn.00405530
cmp eax, 0xffffffff
jne 0x4031b5
xor bl, bl
jmp 0x40321d
push eax
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.00403bb0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
mov ecx, ebx
call fcn.00403110
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4031f6
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4031f6
xor bl, bl
jmp 0x4031f8
mov bl, 1
cmp dword [ebp - 0x1c], 8
jb 0x403209
push dword [ebp - 0x30]
call fcn.00421400
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp dword [ebp - 0x34], 8
jb 0x40322e
push dword [ebp - 0x48]
call fcn.00421400
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042128d
mov esp, ebp
pop ebp
ret 4

Function at 0x403250
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x44bfcc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
lea eax, [ebp - 0x20c]
push dword [esi + 0x10]
push edi
push str._s._d
push eax
call fcn.00406c60
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esi + 0x10]
test esi, esi
jle 0x403312
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ecx]
cmp esi, 1
jne 0x4032bc
push edi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0042284e
add esp, 0xc
jmp 0x4032d5
lea eax, [esi - 1]
push eax
push edi
lea eax, [ebp - 0x414]
push str._s._d
push eax
call fcn.00406c60
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x40330c
push esi
push edi
lea eax, [ebp - 0x20c]
push str._s._d
push eax
call fcn.00406c60
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
dec esi
test esi, esi
jg 0x4032a0
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042128d
mov esp, ebp
pop ebp
ret 4
Function at 0x405a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d698
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x44bfcc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x44bfcc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x405bb6
cmp byte [ebx + 0x46], 0
je 0x405bb6
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x405acb
xor al, al
jmp 0x405bb8
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x405b43
dec eax
je 0x405b47
sub eax, 2
je 0x405b9d
xor bl, bl
jmp 0x405b9f
mov byte [ebx + 0x46], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x405b7e
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.00423a73
add esp, 0x10
cmp esi, eax
jne 0x405b3f
cmp byte [ebx + 0x46], 0
je 0x405b9d
test esi, esi
jne 0x405b02
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00405220
jmp 0x405b02
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x405bb2
push dword [esp + 0x18]
call fcn.00421400
add esp, 4
mov al, bl
jmp 0x405bb8
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042128d
mov esp, ebp
pop ebp
ret
Function at 0x407b00
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44bfcc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20014
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x407b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.OpenSCManager_failed.___d_
push str.waitSpoolerStart
push 0x44d4a0
call fcn.00402b50
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042128d
mov esp, ebp
pop ebp
ret
push 0x2000d
push str.Spooler
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x407b9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.OpenService_failed.___d_
push str.waitSpoolerStart
push 0x44d4a0
call fcn.00402b50
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x10
jmp 0x407c1a
lea eax, [ebp - 0x20]
push eax
push ebx
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x407bf1
lea ecx, [ecx]
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x407c32
cmp esi, eax
je 0x407bd7
push eax
push str.Spooler_Service_is_not_running.__d_
push str.waitSpoolerStart
push 0x44d4a0
call fcn.00402b50
mov esi, dword [ebp - 0x1c]
add esp, 0x10
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x407bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.QueryServiceStatus_failed.___d_
push str.waitSpoolerStart
push 0x44d4a0
call fcn.00402b50
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0x24]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042128d
mov esp, ebp
pop ebp
ret
push str.Spooler_Service_is_running.
push str.waitSpoolerStart
push 0x44d4a0
call fcn.00402bb0
add esp, 0xc
jmp 0x407c11

Function at 0x4080c0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x44bfcc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44f100], 0
push edi
mov edi, ecx
jne 0x408155
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.RSpoolerLogger
push 0
mov dword [0x44f104], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
push dword [0x44f104]
mov esi, eax
push str.RSpoolerLogger
push str._s_error:__d
lea eax, [ebp - 0xdc]
push 0x6b
push eax
call fcn.0042378a
add esp, 0x14
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], edi
test esi, esi
je 0x408154
push 0
lea eax, [ebp - 0xe4]
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0042128d
mov esp, ebp
pop ebp
ret
Function at 0x42f878
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042c0c8
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x42f8b0
xor eax, eax
jmp 0x42f8dc
cmp esi, dword [ebp - 4]
je 0x42f8d9
cmp dword [ebp + 0xc], 0
je 0x42f8d9
push dword [edi + 0x9c]
call fcn.0042f486
push dword [edi + 0x9c]
mov esi, eax
call fcn.004279fd
pop ecx
pop ecx
cmp esi, eax
je 0x42f8ac
xor eax, eax
inc eax
pop edi
pop esi
leave
ret