joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49fe47
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x52efc0]
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 0x49fe92
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a0309
test al, al
jne 0x49fe8c
sub edx, 2
cmp edx, edi
jne 0x49fe72
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49feb4
lea eax, [edi + 2]
cmp edx, eax
je 0x49feb4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049fa40
add esp, 0x10
jmp 0x49ffae
push esi
lea ecx, [ebp - 0x255]
call fcn.004a0309
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 0x49fef7
push dword [ebp - 0x25c]
jmp 0x49fea4
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 0x49ff34
cmp word [ebp - 0x226], 0
je 0x49ff55
cmp word [ebp - 0x226], ax
jne 0x49ff34
cmp word [ebp - 0x224], 0
je 0x49ff55
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049fa40
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49ffa1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49ff0e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ff89
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49ffae
push 0x49f428
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004058d5
add esp, 0x10
jmp 0x49ff7e
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.0040320b
leave
ret
Function at 0x406c60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cd70
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x44d100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0041b82f
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0041a89b
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00410bd0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413ac0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [esp + 0xc]
mov ecx, 0
sub esi, edi
je 0x413ae9
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x413ad8
pop edi
mov eax, edx
pop esi
ret 8

Function at 0x4189b0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x4189d1
jl 0x4189c7
test esi, esi
jne 0x4189d1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x418a84
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.00410920
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x418a41
jg 0x418a09
test esi, esi
je 0x418a41
cmp ebp, eax
jg 0x418a19
jl 0x418a13
cmp edi, esi
jae 0x418a19
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.0041d110
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x418a60
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x418a70
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x4189f0
jl 0x418a70
test edi, edi
jne 0x4189f0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x418ac9
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x418ad0
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.0041d110
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x418ad0
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x418b39
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x418afa
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x418b24
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.004212e7
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x418b39
cmp edi, eax
ja 0x418b02
test edi, edi
je 0x418b39
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.004212e7
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x419bbf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x419be6
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x419be9
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00419b9b
pop esi
leave
ret 8

Function at 0x41c4d8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41c517
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c517
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c517
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41c517
cmp dword [ecx + 0x74], 0xe
jbe 0x41c517
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42b3d6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4441fc
push 0x4441f4
push str.FlsAlloc
push 0x1e
call fcn.0042b203
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b40a
push dword [ebp + 8]
mov ecx, esi
call dword [0x43f1e8]
call esi
jmp 0x42b410
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42b454
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44420c
push 0x444204
push str.FlsGetValue
push 0x20
call fcn.0042b203
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b48b
push dword [ebp + 8]
mov ecx, esi
call dword [0x43f1e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42cc3a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042caab

Function at 0x42d034
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041c930
mov eax, dword [0x44d100]
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.0042bb0e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42d076
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42d1d2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041bbc0
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 + 0x44f260]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042e02b
mov ecx, dword [esi*4 + 0x44f260]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x42d1cb
cmp eax, dword [edi + ecx + 0x24]
jne 0x42d1cb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d1cb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e02b
add esp, 0x14
test edx, edx
jl 0x42d1cb
jg 0x42d141
test eax, eax
jb 0x42d1cb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42d1cb
jl 0x42d15b
cmp dword [ebp - 0x1008], eax
ja 0x42d1cb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42d179
test ebx, ebx
je 0x42d1b2
cmp ecx, edi
jae 0x42d1b2
mov al, byte [ecx]
cmp al, 0xd
jne 0x42d193
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42d19f
cmp byte [ecx + 1], 0xa
jne 0x42d19f
inc ecx
jmp 0x42d19f
movzx eax, al
movsx eax, byte [eax + 0x44d3a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42d179
cmp edx, ebx
jne 0x42d179
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42d1d0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041bbac
leave
ret
Function at 0x42d4c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x44f260]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42d509
cmp byte [ebx], 0xa
jne 0x42d509
or byte [eax + edi + 0x28], 4
jmp 0x42d50e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42d60c
mov al, byte [edx]
cmp al, 0x1a
je 0x42d5ee
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42d53d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42d562
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42d56c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x42d51f
jmp 0x42d60c
push 0
lea eax, [ebp - 0xc]
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 0x42d5e9
cmp dword [ebp - 0xc], 0
je 0x42d5e9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x44f260]
test byte [eax + edi + 0x28], 0x48
je 0x42d5c3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42d5ae
mov byte [esi], dl
jmp 0x42d5bf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44f260]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42d60c
cmp byte [ebp - 1], 0xa
jne 0x42d5d2
cmp esi, ebx
jne 0x42d5d2
mov byte [esi], 0xa
jmp 0x42d60b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042e049
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42d60c
mov byte [esi], 0xd
jmp 0x42d60b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x44f260]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42d608
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42d60c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d615
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x44f260]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42d658
cmp word [esi], dx
jne 0x42d658
or byte [edi + eax + 0x28], 4
jmp 0x42d65d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42d7b0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x42d790
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42d69f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42d6d5
cmp eax, edx
jae 0x42d6e1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x42d677
jmp 0x42d7b0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d78c
cmp dword [ebp - 0x14], 0
je 0x42d78c
mov eax, dword [ebx*4 + 0x44f260]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42d764
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42d72d
mov word [esi], cx
jmp 0x42d760
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x44f260]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x44f260]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x44f260]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42d7b0
pop ebx
cmp word [ebp - 4], bx
jne 0x42d775
cmp esi, dword [ebp + 0xc]
jne 0x42d775
mov word [esi], bx
jmp 0x42d7ad
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042e049
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42d7b0
push 0xd
jmp 0x42d7a9
mov ecx, dword [ebx*4 + 0x44f260]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42d7a7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42d7b0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43359a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x433637
push ebx
push esi
call fcn.00433563
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00430c7a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4335e4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x433636
push edi
push eax
call fcn.0042e228
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x433604
call fcn.0042af28
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x433635
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00430c7a
add esp, 0x20
test eax, eax
jne 0x433623
push edi
call fcn.0042af28
jmp 0x43362b
push ebx
call fcn.0042af28
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x43363a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43364b
pop esi
ret
push ebx
push edi
push esi
call fcn.00433563
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042e228
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x433673
push ebx
push esi
push edi
call fcn.0041d110
add esp, 0xc
push 0
call fcn.0042af28
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x433dbf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004338e6
Function at 0x43aeae
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043ae2a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43b026
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43b026
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43afd5
jg 0x43af07
test eax, eax
je 0x43afcb
push 1
push 0x1000
call fcn.0042aecb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43af2d
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43afc2
push 0x8000
push ebx
call fcn.00428e98
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43af59
jg 0x43af54
cmp ecx, 0x1000
jb 0x43af59
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042c8ab
add esp, 0x10
cmp eax, 0xffffffff
je 0x43af9e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43af54
jl 0x43af85
test ecx, ecx
jne 0x43af46
push dword [ebp - 0xc]
push ebx
call fcn.00428e98
push esi
call fcn.0042af28
add esp, 0xc
xor edi, edi
jmp 0x43b037
cmp byte [edi + 0x24], 0
je 0x43afb5
cmp dword [edi + 0x20], 5
jne 0x43afb5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43afc0
mov edi, dword [edi + 0x18]
jmp 0x43afc2
xor edi, edi
push esi
call fcn.0042af28
pop ecx
jmp 0x43b037
test ecx, ecx
jg 0x43af97
jl 0x43afd5
test eax, eax
jae 0x43af97
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e049
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43aff8
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43af97
jmp 0x43b02f
push ebx
call fcn.00434411
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43af97
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x43b037
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43b034
mov edi, dword [edi + 0x18]
jmp 0x43b037
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042e049
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43c0b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43c0dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43c0dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10007e10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10078f6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1006df93
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10007e92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1006bea5
mov eax, dword [eax]
push 0x10093c48
push eax
call fcn.1005ebf4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1006e21e
test bl, bl
je 0x10007e92
push 0x10093c48
lea ecx, [esp + 0xc]
call fcn.1006e5ae
push 0x10093c54
lea ecx, [esp + 0xc]
call fcn.1006e5ae
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10007ece
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1006e21e
jmp 0x10007f99
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x10007f52
lea edx, [esp + 0x7c]
push 0x10093c50
push edx
call fcn.1005ebf4
add esp, 8
test eax, eax
je 0x10007f52
lea eax, [esp + 0x7c]
push 0x10093c4c
push eax
call fcn.1005ebf4
add esp, 8
test eax, eax
je 0x10007f52
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10007ee2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.1006e21e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x100087a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10008802
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc