joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470064
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x47007c
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret
Function at 0x4ac512
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b35cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0049c6ed
mov dword [ebp - 0x14], eax
cmp dword [0x15bde94], esi
jne 0x4ac605
push 0x800
push esi
push 0xaa8d7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4ac592
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ac6e5
push esi
push esi
push 0xaa8d7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4ac6e5
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ac6e5
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x15bde94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x15bde98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x15bde9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x15bdea4], eax
test eax, eax
je 0x4ac602
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x15bdea0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4ac62a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ac61d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4ac63f
push 4
pop eax
jmp 0x4ac6e7
cmp dword [ebp - 0x14], esi
je 0x4ac63f
push dword [0x15bde94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4ac624
mov eax, dword [0x15bdea0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4ac69d
cmp dword [0x15bdea4], edi
je 0x4ac69d
push eax
call ebx
push dword [0x15bdea4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4ac69d
test eax, eax
je 0x4ac69d
call ecx
test eax, eax
je 0x4ac692
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4ac692
test byte [ebp - 8], 1
jne 0x4ac69d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4ac6cd
mov eax, dword [0x15bde98]
cmp eax, edi
je 0x4ac6ca
push eax
call ebx
test eax, eax
je 0x4ac6ca
call eax
mov esi, eax
test esi, esi
je 0x4ac6ca
mov eax, dword [0x15bde9c]
cmp eax, edi
je 0x4ac6ca
push eax
call ebx
test eax, eax
je 0x4ac6ca
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x15bde94]
call ebx
test eax, eax
je 0x4ac6e5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4ac6e7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497e95
mov esp, ebp
pop ebp
ret
Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x37ea10be
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0xf816fac
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40de38
nop
mov ecx, 0x241871ab
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x110e24a0
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x95bc10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x257000]
push edi
jmp 0x95bc2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x95bc31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x95bc20
mov eax, 1
add ebx, ebx
jne 0x95bc43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x95bc54
jne 0x95bc73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x95bc73
dec eax
add ebx, ebx
jne 0x95bc60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x95bc38
add ebx, ebx
jne 0x95bc6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x95bcc5
xor ecx, ecx
sub eax, 3
jb 0x95bc8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x95bcfa
sar eax, 1
mov ebp, eax
jmp 0x95bc96
add ebx, ebx
jne 0x95bc96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x95bc64
inc ecx
add ebx, ebx
jne 0x95bca4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x95bc64
add ebx, ebx
jne 0x95bcb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x95bca6
jne 0x95bcc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x95bca6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x95bce4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x95bcd6
jmp 0x95bc26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x95bce4
add edi, ecx
jmp 0x95bc26
pop esi
mov edi, esi
mov ecx, 0x4fec
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x95bd02
cmp byte [edi], 0x22
jne 0x95bd02
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 0x95bd07
lea edi, [esi + 0x558000]
mov eax, dword [edi]
or eax, eax
je 0x95bd7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x567b4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x567c50]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x95bd34
mov ecx, edi
jns 0x95bd63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x567c54]
or eax, eax
je 0x95bd79
mov dword [ebx], eax
add ebx, 4
jmp 0x95bd51
call dword [esi + 0x567c64]
mov ebp, dword [esi + 0x567c58]
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 0x95bdb3
sub esp, 0xffffff80
jmp 0x4bfb71
Function at 0x4012c9
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x47c7b8
call fcn.0047bf20
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
call fcn.0042a608
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [ebp - 4], ebx
call fcn.0042a608
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.0042a608
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.0042a608
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 3
call fcn.0042a608
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 4
call fcn.0042a608
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 5
call fcn.0042a608
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 6
call fcn.00428e0f
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.00402d67
or dword [esi + 0x20], 0xffffffff
lea edi, [esi + 0x74]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x4838dc
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 0x4018e5
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 0x401913
push 0x117
push edi
lea ecx, [ebp - 0x10]
call fcn.00425678
mov ecx, eax
call fcn.00425784
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40191f
cmp dword [ebp + 0xc], ebx
jg 0x401934
push 0x118
push edi
lea ecx, [ebp - 0x10]
call fcn.00425678
mov ecx, eax
call fcn.00425784
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 0x401993
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 0x4019b5
xor eax, eax
jmp 0x4019bb
jne 0x40198b
push dword [esi + 0x14]
push str.CHttpClient::ReadSocket__:_no_data_received_during__u_ms.
push 0x4ae550
call fcn.0042874e
add esp, 0xc
mov dword [esi + 0x1c], 0x274c
xor eax, eax
jmp 0x4019c0
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.0042c635
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
call fcn.0042b07f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
call fcn.0042c635
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
call fcn.0042b07f
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 0x4ae550
call fcn.00428736
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 0x4064d8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47cae4
call fcn.0047bf20
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
call fcn.00428e0f
and dword [ebp - 4], 0
lea ecx, [esi + 0x24]
call fcn.0042bbba
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.0042bbba
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
call fcn.0042a608
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.0042a608
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x406530
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47cb1c
call fcn.0047bf20
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.0042a904
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
call fcn.0042a904
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.0042bebc
and byte [ebp - 4], 0
lea ecx, [esi + 0x24]
call fcn.0042bebc
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.00428ed1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x407b7a
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x47cd40
call fcn.0047bf20
sub esp, 0x234
push ebx
push esi
mov esi, ecx
xor ebx, ebx
inc ebx
push edi
cmp byte [esi + 8], 0
jne 0x407ba7
cmp byte [esi + 5], 0
jne 0x407ba7
and dword [0x4ae550], 0
jmp 0x407bad
mov dword [0x4ae550], ebx
cmp byte [esi + 8], 0
je 0x407c03
lea eax, [ebp - 0x10]
push eax
call fcn.00408196
and dword [ebp - 4], 0
mov dword [esp], 0x4a0014
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0042c1a0
add esp, 0xc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0042bebc
lea ecx, [ebp - 0x18]
call fcn.0042c635
mov edi, 0x4ae550
push eax
mov ecx, edi
call fcn.004284c6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0042bebc
jmp 0x407c12
push dword [esi + 0x50]
mov edi, 0x4ae550
mov ecx, edi
call fcn.004284ee
mov ecx, esi
call fcn.00406fb4
cmp dword [0x4ae550], 0
push ebx
sete al
mov byte [0x4ae7c4], al
call fcn.004257b5
pop ecx
mov ebx, 0x49fc84
push ebx
mov ecx, 0x4ae7c0
call fcn.0042aace
push ebx
mov ecx, 0x4adefc
call fcn.0042aace
push 0x4a0010
mov ecx, 0x4adef4
call fcn.0042aace
call fcn.00421e4d
push eax
mov ecx, 0x4adef8
call fcn.0042aace
push 0
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
movzx eax, word [ebp - 0xac]
movzx ecx, word [ebp - 0xa8]
shl eax, 0x10
or eax, ecx
push eax
push str.OS_version__X
push edi
mov dword [esi + 0x38], eax
call fcn.0042874e
add esp, 0xc
mov ecx, esi
call fcn.00407a6c
cmp byte [esi + 8], 0
jne 0x407da4
lea eax, [ebp - 0x240]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x407cfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.Error_d_WSAStartup__
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
mov edi, 0x4ae470
mov ecx, edi
call fcn.00421104
cmp dword [esi + 0x1c], 0
jbe 0x407da4
add esi, 0x10
mov ecx, esi
call fcn.00429187
mov word [0x4ae7da], ax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00429244
push eax
mov ecx, 0x4ae7d4
mov dword [ebp - 4], 3
call fcn.0042aa39
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a904
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00429244
push eax
mov ecx, 0x4ae7cc
mov dword [ebp - 4], 4
call fcn.0042aa39
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a904
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00429244
push eax
mov ecx, 0x4ae7c8
mov dword [ebp - 4], 5
call fcn.0042aa39
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042a904
mov ecx, edi
call fcn.004219d5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x407f34
Capabilities:
Create directory
Set current directory

Disassembly:
mov eax, 0x47cdac
call fcn.0047bf20
sub esp, 0x24
cmp byte [0x4ade8c], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
je 0x407fa2
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.0040bb00
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040af40
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0042bffd
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0042bebc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042bebc
push dword [ebp - 0x18]
call fcn.0040b32e
pop ecx
jmp 0x40808b
xor esi, esi
push 2
inc esi
pop ebx
cmp esi, ebx
jg 0x40808b
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0040b7b7
add esp, 4
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 4], ebx
call fcn.0042bbc6
call fcn.0040b02f
test al, al
pop ecx
jne 0x4080b5
push 0
lea ecx, [ebp - 0x14]
call fcn.0042c635
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408039
lea ecx, [ebp - 0x14]
call fcn.0042c635
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042a9bc
mov edi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0042c635
push eax
push str.CreateDirectoryW__s__error_u
push 0x4ae550
call fcn.00428736
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0042a904
jmp 0x4080c8
cmp esi, 1
jne 0x408070
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0042c635
push eax
call fcn.0040b5c5
pop ecx
jmp 0x408070
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
call fcn.0042bffd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042bebc
mov ecx, dword [ebp - 0x18]
call fcn.0042c625
test eax, eax
je 0x4080da
lea eax, [ebp - 0x28]
push str.Cant_find_any_writtable_folder
push eax
call fcn.0042778f
pop ecx
lea eax, [ebp - 0x28]
pop ecx
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp esi, 1
jne 0x408073
lea eax, [ebp - 0x14]
push eax
call fcn.0040b1f2
test al, al
pop ecx
jne 0x408073
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042bebc
inc esi
jmp 0x407fa8
mov ecx, dword [ebp - 0x18]
call fcn.0042c635
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x408135
mov ecx, dword [ebp - 0x18]
call fcn.0042c635
push eax
lea ecx, [ebp - 0x20]
call fcn.0042a9bc
mov esi, eax
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0042c635
push eax
lea eax, [ebp - 0x30]
push str.SetCurrentDirectoryW__s__error_u
push eax
call fcn.0042778f
add esp, 0x10
lea eax, [ebp - 0x30]
push 0x48e404
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 0x408880
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x47ce54
call fcn.0047bf20
push ecx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.0042a608
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
call fcn.00408720
mov edi, eax
call fcn.00408752
push eax
push edi
push esi
lea eax, [ebp - 0x10]
push str._u._u._d
push eax
call fcn.0042bb0a
mov ecx, dword [ebp + 8]
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
call fcn.0042908c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a904
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40a762
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47d2ac
call fcn.0047bf20
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, edi
call fcn.00429173
mov byte [esi + 0xc], al
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.00429244
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x10]
call fcn.0042aa39
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042a904
mov ecx, edi
call fcn.0042919c
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.00429187
push eax
push dword [ebp + 8]
call fcn.004529d5
pop ecx
mov dword [esi + 0x18], eax
pop ecx
mov dword [esi + 0x1c], edx
mov ecx, edi
call fcn.0042919c
mov ecx, edi
call fcn.0042919c
mov ecx, edi
mov dword [esi + 0x20], eax
call fcn.0042919c
mov dword [esi + 0x24], eax
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.00429244
push eax
lea ecx, [esi + 0x28]
mov dword [ebp - 4], 1
call fcn.0042aa39
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042a904
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00429244
push eax
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], 2
call fcn.0042aa39
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a904
mov ecx, edi
call fcn.004291b0
and dword [esi + 0x3c], 0
mov ecx, edi
mov dword [esi + 0x38], eax
call fcn.004291b0
and dword [esi + 0x34], 0
mov ecx, edi
mov dword [esi + 0x30], eax
call fcn.004291b0
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 0x40b0d0
Capabilities:
Create directory

Disassembly:
mov eax, 0x47d42c
call fcn.0047bf20
sub esp, 0xc
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call fcn.0042bbc6
call fcn.0040b02f
test al, al
pop ecx
jne 0x40b150
mov ecx, dword [ebp + 8]
push 0
call fcn.0042c635
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b150
mov ecx, dword [ebp + 8]
call fcn.0042c635
push eax
lea ecx, [ebp + 8]
call fcn.0042a9bc
mov esi, eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0042c635
push eax
lea eax, [ebp - 0x18]
push str.cant_create_folder__s_error__d
push eax
call fcn.0042778f
add esp, 0x10
lea eax, [ebp - 0x18]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40b3d4
Capabilities:
Delete file

Disassembly:
mov eax, 0x47d4e0
call fcn.0047bf20
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b42e
push esi
lea ecx, [ebp + 8]
push dword [ebp + 8]
call fcn.0042a9bc
mov esi, eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0042c635
push eax
lea eax, [ebp - 0x14]
push str.Cant_delete_file__s_error_d
push eax
call fcn.0042778f
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret