joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x436020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4032e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4032c8
xor eax, eax
push ebp
push 0x4032c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403304
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x436020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x436020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403fa8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x438044], 0
je 0x404009
cmp word [0x438218], 0xd7b2
jne 0x403fd1
cmp dword [0x438220], 0
jbe 0x403fd1
mov eax, 0x438214
call dword [0x438230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43606c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404030
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x436030], 0
jne 0x404025
push 0
push 0x436064
push 0x43606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404164
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a44
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x438045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40412c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4060f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40615a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404420
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406144
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406161
lea eax, [ebp - 0x10]
call fcn.004041b0
ret

Function at 0x4080f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404670
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408111
test al, 0x10
jne 0x408115
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40811c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404670
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40813e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ab80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40abb9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042a0
jmp 0x40abc2
mov eax, ebx
mov edx, esi
call fcn.00404204
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40abcc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40abed
mov al, byte [esp]
jmp 0x40abef
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40b284
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b0ec
mov eax, dword [0x4372f0]
cmp byte [eax], 0
je 0x40b300
mov eax, dword [0x437064]
call fcn.00402d44
call fcn.00402ba4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040839c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b348
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b336
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x437004]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x438660]
call fcn.00405590
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c0bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c120
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404420
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407d44
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c127
lea eax, [ebp - 0xc]
call fcn.004041b0
ret

Function at 0x418a90
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004188e8
dec esi
jne 0x418ab2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x419bbc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404670
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x419c14
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x43744c]
mov dl, 1
mov eax, dword [0x419554]
call fcn.0040b444
call fcn.00403b64
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041965c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x422b70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x422b78
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x422d14
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 8]
mov edx, 0x422d2c
mov eax, esi
call fcn.004208fc
mov edx, dword [ebp - 8]
lea eax, [ebx + 0xc]
call fcn.00404204
lea ecx, [ebp - 0xc]
mov edx, 0x422d40
mov eax, esi
call fcn.004208fc
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x28]
call fcn.00404204
lea ecx, [ebp - 0x10]
mov edx, 0x422d58
mov eax, esi
call fcn.004208fc
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x10]
call fcn.00404204
lea ecx, [ebp - 0x14]
mov edx, 0x422d74
mov eax, esi
call fcn.004208fc
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x14]
call fcn.00404204
lea ecx, [ebp - 0x18]
mov edx, 0x422d90
mov eax, esi
call fcn.004208fc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x24]
call fcn.00404204
lea ecx, [ebp - 0x20]
mov edx, 0x422da8
mov eax, esi
call fcn.004208fc
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00407950
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
call fcn.00407d44
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x24]
mov edx, 0x422dc0
mov eax, esi
call fcn.004208fc
mov eax, dword [ebp - 0x24]
call fcn.0041f9ec
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x28]
mov edx, 0x422dd0
mov eax, esi
call fcn.004208fc
mov eax, dword [ebp - 0x28]
call fcn.0041f9ec
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 4]
mov edx, 0x422de8
mov eax, esi
call fcn.004208fc
mov eax, dword [ebp - 4]
call fcn.0041f5a0
test al, al
je 0x422ccb
mov eax, dword [ebp - 4]
call fcn.00407d08
mov edi, eax
test edi, edi
jl 0x422cc1
call fcn.004095f0
mov dword [ebp - 0x2c], edi
fild dword [ebp - 0x2c]
fdiv dword [0x422df0]
faddp st(1)
fstp qword [ebx + 0x38]
wait
jmp 0x422cd7
xor eax, eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
jmp 0x422cd7
mov eax, dword [ebp - 4]
call fcn.0041f9ec
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x422dfc
mov eax, esi
call fcn.004208fc
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x48]
call fcn.00404204
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422d1b
lea eax, [ebp - 0x30]
call fcn.004041b0
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.004041d4
ret

Function at 0x42f800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x42f85a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0042f7f0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0041e4a0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0041e0a0
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f861
lea eax, [ebp - 4]
call fcn.004041b0
ret
Function at 0x434538
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], 7
push 0
lea eax, [ebp - 8]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop ebp
ret
Function at 0x401e31
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
je 0x401e71
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x401e5d
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jmp 0x401e3a
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x4033e1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401158
push 0x404b6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 3
ja case.default.0x4032f4
mov ecx, dword [ebp - 0x28]
jmp dword [ecx*4 + 0x40346a]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x42ec88]
test eax, eax
je case.0x4032f4.1
jmp case.default.0x4032f4
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x42ec6c]
test eax, eax
je 0x403349
jmp case.default.0x4032f4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jbe 0x4033bd
cmp dword [ebp - 0x2c], 3
jbe 0x403363
cmp dword [ebp - 0x2c], 4
je 0x403398
jmp 0x4033bd
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.00401840
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [0x42ec84]
test eax, eax
jne 0x403396
mov dword [ebp - 0x1c], 1
jmp 0x4033bd
push 4
lea eax, [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [0x42ec84]
test eax, eax
jne 0x4033bd
mov dword [ebp - 0x1c], 1
jmp case.default.0x4032f4
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x42ec6c]
test eax, eax
je 0x4033de
jmp case.default.0x4032f4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [0x42ec80]
test eax, eax
jne 0x4033f7
mov dword [ebp - 0x1c], 1
jmp case.default.0x4032f4
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x42ec6c]
test eax, eax
je 0x403418
jmp case.default.0x4032f4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [0x42ec7c]
test eax, eax
jne case.default.0x4032f4
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.0040343f
jmp 0x403454
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4013c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x4013f6
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x40146e
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call fcn.00401160
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x10]
cmp dword [ebp + 0xc], edx
jb 0x401436
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0xc]
jbe 0x40143d
mov eax, 0xc1
jmp 0x401470
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0xc]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00448630
add esp, 0xc
jmp 0x4013e4
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401fb0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x401fc8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x40201a
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x401fe9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x40200b
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
xor edx, edx
sub edx, ecx
and edx, 0xedb88320
xor eax, edx
mov dword [ebp - 8], eax
jmp 0x401fe0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x4668c0], ecx
jmp 0x401fbf
mov dword [ebp - 4], 0x100
jmp 0x40202c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x800
jae 0x402064
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x4664c0]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov eax, dword [ebp - 0x10]
shr eax, 8
xor eax, dword [edx*4 + 0x4668c0]
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x4668c0], eax
jmp 0x402023
mov dword [0x4668b8], 0x4020b0
mov dword [0x4668b4], 0x4020b0
mov esp, ebp
pop ebp
ret
Function at 0x404830
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x463064]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
cmp eax, 6
je 0x40488b
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
je 0x40488b
push 0xc00
call dword [ebp - 0x2e8]
test eax, eax
je 0x40488b
jmp 0x4049f3
push 0x106
lea ecx, [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
je 0x4048b8
cmp dword [ebp - 0x2e0], 0x104
jbe 0x4048bd
jmp 0x4049f3
mov edx, dword [ebp - 0x2e0]
movzx eax, word [ebp + edx*2 - 0x2d6]
cmp eax, 0x5c
je 0x4048f2
mov ecx, 0x5c
mov edx, dword [ebp - 0x2e0]
mov word [ebp + edx*2 - 0x2d4], cx
mov eax, dword [ebp - 0x2e0]
add eax, 1
mov dword [ebp - 0x2e0], eax
mov ecx, dword [str.userenv]
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x2e4]
movsx eax, byte [edx]
test eax, eax
je 0x4049f3
mov ecx, dword [ebp - 0x2e0]
lea edx, [ebp + ecx*2 - 0x2d4]
mov dword [ebp - 0x2dc], edx
mov eax, dword [ebp - 0x2e4]
mov cl, byte [eax]
mov byte [ebp - 0x2d5], cl
mov edx, dword [ebp - 0x2e4]
add edx, 1
mov dword [ebp - 0x2e4], edx
movsx eax, byte [ebp - 0x2d5]
test eax, eax
jne 0x40494c
jmp 0x40496e
movzx cx, byte [ebp - 0x2d5]
mov edx, dword [ebp - 0x2dc]
mov word [edx], cx
mov eax, dword [ebp - 0x2dc]
add eax, 2
mov dword [ebp - 0x2dc], eax
jmp 0x404922
mov ecx, 2
imul edx, ecx, 0
mov eax, 0x2e
mov ecx, dword [ebp - 0x2dc]
mov word [ecx + edx], ax
mov edx, 2
shl edx, 0
mov eax, 0x64
mov ecx, dword [ebp - 0x2dc]
mov word [ecx + edx], ax
mov edx, 2
shl edx, 1
mov eax, 0x6c
mov ecx, dword [ebp - 0x2dc]
mov word [ecx + edx], ax
mov edx, 2
imul eax, edx, 3
mov ecx, 0x6c
mov edx, dword [ebp - 0x2dc]
mov word [edx + eax], cx
mov eax, 2
shl eax, 2
xor ecx, ecx
mov edx, dword [ebp - 0x2dc]
mov word [edx + eax], cx
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4048fe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447417
mov esp, ebp
pop ebp
ret
Function at 0x40ca80
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0x6a09e667
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x20], 0xbb67ae85
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x3c6ef372
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0xa54ff53a
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0x510e527f
mov eax, 4
imul ecx, eax, 5
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0x9b05688c
mov eax, 4
imul ecx, eax, 6
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0x1f83d9ab
mov eax, 4
imul ecx, eax, 7
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0x5be0cd19
pop ebp
ret 4

Function at 0x40cfb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.0044c527
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0040ccb0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x411800
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4557b5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x463064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x465e70]
test eax, eax
jne 0x41187f
push 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040f180
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.0040d180
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d110
cmp dword [ebp - 0x1c], 0
je 0x41187d
mov al, 1
jmp 0x4118fd
jmp 0x411893
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x411893
mov al, 1
jmp 0x4118fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4118a4
xor al, al
jmp 0x4118fd
lea ecx, [ebp - 0x60]
call fcn.004112a0
mov dword [ebp - 4], 1
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x60]
call fcn.00412dc0
movzx eax, al
test eax, eax
jne 0x4118e0
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411350
mov al, byte [ebp - 0xd]
jmp 0x4118fd
lea ecx, [ebp - 0x60]
call fcn.004120b0
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411350
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x411c50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45582d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x463064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00413790
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x411cb2
mov ecx, dword [ebp - 0x10]
and ecx, 0x10
jne 0x411cb2
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x411cb2
mov eax, dword [ebp - 0x10]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412780
movzx edx, al
test edx, edx
jne 0x411cb2
xor al, al
jmp 0x411d1b
movzx eax, byte [0x465e70]
test eax, eax
jne 0x411d07
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040f180
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.0040d180
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d110
cmp dword [ebp - 0x1c], 0
je 0x411d05
mov al, 1
jmp 0x411d1b
jmp 0x411d19
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x411d19
mov al, 1
jmp 0x411d1b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4