joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056c0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, 0x5678ec83
mov ecx, dword [esp + ecx]
les ecx, [ebp - 0x3f9577bb]
push eax
pushfd
call 0xa286e0
in al, 0xca
or byte [ebx - 0x543f37eb], cl
push eax
push ecx
add edx, 0x40
push str._s:__s___d__n
or al, 0xff
adc eax, 0x961980
and dh, byte [ecx + 2]
inc ecx
out dx, eax
add esp, 0x14
test eax, eax
je 0x401e8c
push eax
iretd
invalid

Function at 0x405f20
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x69004a98
ror byte [eax - 0x74ffbe9d], 1
enter 0xffffffffffff8540, 0xffffffffffffffc9
mov dword [0x411988], eax
je 0x405f40
adc eax, eax
daa
in eax, 0xce
push cs
lahf
push ebp
clc
push edx
call 0xb34078f3
sbb dword [edx + 4], 0xffffff85
pop edx
invalid

Function at 0x40a9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx + 0x6c89d285]
clc
jne 0x40a9c3
pop edi
sal dword [ebx], 0xa8
pop ebx
test al, 0x5b
mov ebx, dword [eax + 0x10c25d]
mov edi, dword [ecx]
xor byte [ebx], dl
dec ebp
adc al, 0x83
cmp dword [eax], eax
adc ecx, dword [ebp + 0x14]
cmp dword [ecx], 0
je 0x40a9e1
push edx
jne 0x40aa08
xor eax, eax
mov al, byte [esi]
inc esi
ffreep st(0)
cld
jne 0x40a9e0
js 0x40a9f3
dec edx
mov dword [edi], edx
mov edx, dword [ecx]
dec edx
mov dword [ecx], edx
mov esp, dword [ebx + 0x10]
mov word [ecx], ax
add ecx, 0x5b
mov dword [ebp - 7], ecx
adc dword [ebx - 0x7699ef9d], ecx
add dword [ebx + 0x4d895bc1], eax
stc
push edi
rcl dword [ebx - 0x37750000], cl
mov ecx, eax
popfd
loope 0x40a9b8
add byte [eax], al
nop
cmp cl, 0xc0
jne 0x40aa5d
cdq
mov edi, 0x6f51
add byte [eax], al
mov ecx, eax
mov dword [ebp - 0x10], edx
and ebp, dword [edx]
xor ebx, ebx
mov esi, 0xb4ab6501
xor ecx, dword [eax - 0x1e]
stosb byte es:[edi], al
mov dword [ebp - 4], esi
xor eax, 0x3475ec45
cmp edx, ebx
jne 0x40aa58
mov eax, edi
mov edx, ebx
mov ecx, 0xa2
call 0xdbb810
test eax, edi
or ebx, edx
adc al, 0x83
sub ebp, dword [edi - 0x23]
jne 0x40aa8e
jnp 0x40aa8b
mov esp, dword [edi - 0xfb2741d]
pop esi
invalid
mov ecx, dword [eax + esi*8 - 0x2e084f20]
not ecx
mov esi, edi
and ecx, edx
out 0x43, al
cld
div dword [eax + 0x23]
invalid
pop edi
pop esi
mov eax, 0x8b
mov eax, dword [eax]
add byte [eax], al
xchg ebx, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4014e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401537
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401537
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401526
cmp esi, edx
jae 0x401537
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401514
cmp esi, edx
jae 0x401537
movzx eax, word [esi]
neg eax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x401970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44893f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.0040c2c1
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 eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x4019fb
push eax
push esi
call fcn.0040fd5c
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.0040c469
int3
Function at 0x402da0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448ac5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x14], ebx
push edi
mov dword [ebx], vtable.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
push 1
mov dword [ebp - 4], 0
call fcn.0040fc5f
add esp, 4
mov dword [ebx + 0xc], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0xf
mov byte [ebx + 0x10], al
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 7
mov word [ebx + 0x28], ax
mov byte [ebp - 4], 3
push 0x34
mov word [ebx + 0x48], ax
mov byte [ebx + 0x4a], al
call fcn.00423cda
mov esi, eax
mov dword [ebp - 0x10], esi
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00401b90
mov dword [esi], vtable.std::codecvt_utf8_wchar_t__1114111__0_.0
mov byte [ebp - 4], 3
push dword [ebx + 0xc]
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 4], esi
call fcn.0040fdc1
mov edi, eax
add esp, 4
mov eax, dword [0x45db4c]
test eax, eax
jne 0x402e9b
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c2c1
cmp dword [0x45db4c], 0
jne 0x402e8e
mov eax, dword [0x45db40]
inc eax
mov dword [0x45db40], eax
mov dword [0x45db4c], eax
lea ecx, [ebp - 0x10]
call fcn.0040c319
mov eax, dword [0x45db4c]
push eax
push esi
push edi
call fcn.0040e2e9
add esp, 0xc
mov dword [edi + 0x10], 0
cmp dword [edi + 0x18], 0x455594
je 0x402eff
cmp dword [edi + 0x18], 0
je 0x402ec7
push dword [edi + 0x18]
call fcn.00428e74
add esp, 4
mov dword [edi + 0x18], 0
mov esi, 0x455594
inc esi
cmp byte [esi], 0
jne 0x402ed3
sub esi, 0x455594
inc esi
push esi
call fcn.00428e8f
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x402eff
push esi
push 0x455594
push eax
call fcn.004253d0
add esp, 0xc
mov ecx, dword [ebx + 0xc]
cmp ecx, edi
je 0x402f21
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x402f17
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov dword [ebx + 0xc], edi
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x402f34
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
mov dword [ebx + 0x4c], 0
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4063b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448d4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
mov edi, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 2
call fcn.00401620
mov ecx, eax
test ecx, ecx
je 0x4064e5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 1
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0x1000
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edx, dword [ebp - 0x10]
test edx, edx
js 0x4064db
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x40643d
push edx
mov ecx, esi
call fcn.00403d80
lea eax, [ebp - 0x10]
push eax
push dword [esi]
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esi]
test eax, eax
jne 0x40645f
xor ecx, ecx
jmp 0x406471
push dword [eax - 8]
push eax
call fcn.00428fbc
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4064db
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4064db
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4064ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4064c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004013f0
push 0x80004005
call fcn.004013f0
int3
Function at 0x4087f0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44918d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.00401620
mov ecx, eax
test ecx, ecx
je 0x4089a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.dTFBeS1BGOMhdfgH2s
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004038c0
test al, al
jne 0x40885c
push 0x13
push str.dTFBeS1BGOMhdfgH2s
mov ecx, esi
call fcn.00403de0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004023d0
add esp, 4
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40889a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408970
lea esp, [esp]
lea eax, [ebp - 0x440]
push eax
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.00401620
test eax, eax
je 0x4089a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.R2NlBdGIUmFihiDFBY
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004038c0
test al, al
jne 0x40890b
push 0x13
push str.R2NlBdGIUmFihiDFBY
mov ecx, esi
call fcn.00403de0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004023d0
add esp, 4
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x14]
add esp, 0x10
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408946
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4088c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40898f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013f0
int3
Function at 0x423488
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00432925
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4234c7
sub eax, 1
je 0x4234c2
sub eax, 1
je 0x4234be
xor eax, eax
leave
ret
push 3
jmp 0x4234c9
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x42475a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x424799
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424799
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424799
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x424799
cmp dword [ecx + 0x74], 0xe
jbe 0x424799
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43b61b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ff10
push 0x44ff08
push str.FlsAlloc
push 0x1f
call fcn.0043b486
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b64f
push dword [ebp + 8]
mov ecx, esi
call dword [0x44b21c]
call esi
jmp 0x43b655
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43b699
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ff20
push 0x44ff18
push str.FlsGetValue
push 0x21
call fcn.0043b486
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b6d0
push dword [ebp + 8]
mov ecx, esi
call dword [0x44b21c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43b6d8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ff28
push 0x44ff20
push str.FlsSetValue
push 0x22
call fcn.0043b486
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b712
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44b21c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43c3ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00424bb0
mov eax, dword [0x45c068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00438b3a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43c42f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43c58b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00448480
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x45e528]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043d1ee
mov ecx, dword [esi*4 + 0x45e528]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x43c584
cmp eax, dword [ecx + edi + 0x24]
jne 0x43c584
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c584
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043d1ee
add esp, 0x14
test edx, edx
jl 0x43c584
jg 0x43c4fa
test eax, eax
jb 0x43c584
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43c584
jl 0x43c514
cmp dword [ebp - 0x1008], eax
ja 0x43c584
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43c532
test ebx, ebx
je 0x43c56b
cmp ecx, edi
jae 0x43c56b
mov al, byte [ecx]
cmp al, 0xd
jne 0x43c54c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43c558
cmp byte [ecx + 1], 0xa
jne 0x43c558
inc ecx
jmp 0x43c558
movzx eax, al
movsx eax, byte [eax + 0x45c2e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43c532
cmp edx, ebx
jne 0x43c532
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43c589
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004241dc
leave
ret
Function at 0x43c686
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x45e528]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43c6c6
cmp byte [ebx], 0xa
jne 0x43c6c6
or byte [edi + eax + 0x28], 4
jmp 0x43c6cb
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x43c7ca
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43c7ad
inc eax
cmp dl, 0xd
je 0x43c6f7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43c71d
cmp eax, ecx
jae 0x43c72b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x43c6df
jmp 0x43c7ca
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c7a8
cmp dword [ebp - 0x10], 0
je 0x43c7a8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x45e528]
test byte [eax + edi + 0x28], 0x48
je 0x43c782
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43c76d
mov byte [esi], dl
jmp 0x43c77e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45e528]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43c7ca
cmp byte [ebp - 1], 0xa
jne 0x43c791
cmp esi, ebx
jne 0x43c791
mov byte [esi], 0xa
jmp 0x43c7c9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043d20c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43c7ca
mov byte [esi], 0xd
jmp 0x43c7c9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x45e528]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43c7c7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43c7ca
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43c7d3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x45e528]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43c819
cmp word [ebx], dx
jne 0x43c819
or byte [eax + edi + 0x28], 4
jmp 0x43c81e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43c981
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43c961
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43c85f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43c895
cmp eax, edx
jae 0x43c8a3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x43c83a
jmp 0x43c981
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c95c
cmp dword [ebp - 0x18], 0
je 0x43c95c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x45e528]
test byte [eax + edi + 0x28], 0x48
je 0x43c932
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x43c8f6
mov word [esi], cx
jmp 0x43c92d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x45e528]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45e528]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x45e528]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43c981
pop eax
cmp word [ebp - 4], ax
jne 0x43c942
cmp esi, ebx
jne 0x43c942
mov word [esi], ax
jmp 0x43c97e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043d20c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43c981
push 0xd
pop eax
jmp 0x43c93d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x45e528]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43c97b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43c981
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43f928
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45c068]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43f973
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043fac3
test al, al
jne 0x43f96d
sub edx, 2
cmp edx, edi
jne 0x43f953
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43f995
lea eax, [edi + 2]
cmp edx, eax
je 0x43f995
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043f874
add esp, 0x10
jmp 0x43fa8f
push esi
lea ecx, [ebp - 0x255]
call fcn.0043fac3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43f9d8
push dword [ebp - 0x25c]
jmp 0x43f985
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x43fa15
cmp word [ebp - 0x226], 0
je 0x43fa36
cmp word [ebp - 0x226], ax
jne 0x43fa15
cmp word [ebp - 0x224], 0
je 0x43fa36
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043f874
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43fa82
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43f9ef
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43fa6a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43fa8f
push 0x43f6a4
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004464a0
add esp, 0x10
jmp 0x43fa5f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004241dc
leave
ret

Function at 0x4403a8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4403b9
pop esi
ret
push ebx
push edi
push esi
call fcn.00440371
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00438aec
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4403e1
push ebx
push esi
push edi
call fcn.004253d0
add esp, 0xc
push 0
call fcn.00438ab2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4407b1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004403f6