joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100537d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [0x1011a9c0], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x10053845
test edi, edi
je 0x10053845
mov eax, dword [0x1011a9c4]
test eax, eax
jne 0x1005383f
mov esi, dword [esp + 0x1c]
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.100535d0
add esp, 0x10
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.100ba212
add esp, 4
push eax
call fcn.10055280
push dword [0x1011a9bc]
call fcn.100ba87b
add esp, 0x18
call fcn.100ba355
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x1011a9c4], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_recv]
mov esi, eax
test edi, edi
je 0x10053878
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.RECV__s:_d_recv__lu____ld_n
call fcn.100535d0
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret

Function at 0x100538b0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp byte [0x1011a9c0], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x10053925
test edi, edi
je 0x10053925
mov eax, dword [0x1011a9c4]
test eax, eax
jne 0x1005391f
mov esi, dword [esp + 0x1c]
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.100535d0
add esp, 0x10
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.100ba212
add esp, 4
push eax
call fcn.10055280
push dword [0x1011a9bc]
call fcn.100ba87b
add esp, 0x18
call fcn.100ba355
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x1011a9c4], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
test edi, edi
je 0x10053958
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.SEND__s:_d_send__lu____ld_n
call fcn.100535d0
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret
Function at 0x1006c390
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push str.D:_vcpkg_buildtreescurl_srce5cd7b457b_f116018cb9.cleanlibgetenv.c
push 0x2d
lea esi, [ebp + 1]
push esi
push ebp
call fcn.10053700
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1006c3ed
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x1006c40b
cmp esi, ebx
je 0x1006c40b
cmp esi, 0x8000
ja 0x1006c40b
cmp esi, ebx
jb 0x1006c404
push str.D:_vcpkg_buildtreescurl_srce5cd7b457b_f116018cb9.cleanlibgetenv.c
push 0x2d
push esi
push edi
call fcn.10053700
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1006c3b0
push str.D:_vcpkg_buildtreescurl_srce5cd7b457b_f116018cb9.cleanlibgetenv.c
push 0x2f
push ebp
call fcn.10053590
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push str.D:_vcpkg_buildtreescurl_srce5cd7b457b_f116018cb9.cleanlibgetenv.c
push 0x3a
push edi
call fcn.10053590
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100d0255
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d00cb

Function at 0x100d56e6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d5239

Function at 0x1011f4c0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
jmp 0x10308cac
xchg dword [esp], esi
jmp fcn.1007d112
lea esi, [esi + 0x71030d17]
jmp 0x10209260
mov esi, dword [esi + 0x3ef462]
jmp 0x10226a2d
push 0xf3036c60
call fcn.102d4fa6
nop
movzx esi, cx
not si
pop esi
xchg dword [esp], esi
jmp 0x10382ef8
push esi
bswap si
mov esi, 0x10075d0b
jmp 0x102ebd6d
Function at 0x10122c80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10122d8c
test eax, eax
je 0x10122d8c
push esi
push edi
mov ecx, 0x10
mov esi, 0x1013dff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x10122d73
lea edi, [eax + 4]
jmp 0x10122cd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x10122cec
mov dword [ebp - 4], 2
jmp 0x10122d0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x10122d03
mov dword [ebp - 4], 1
jmp 0x10122d0d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x10122d83
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x10122d46
mov byte [ecx], 0x3d
jmp 0x10122d52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x10122d5d
mov byte [ecx], 0x3d
jmp 0x10122d63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x10122cd4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4014c0
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 0x401517
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401517
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401506
cmp esi, edx
jae 0x401517
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4014f4
cmp esi, edx
jae 0x401517
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 0x401950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44847f
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.0040b081
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 0x4019db
push eax
push esi
call fcn.0040eeff
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.0040b229
int3
Function at 0x4055f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4487ce
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.00401600
mov ecx, eax
test ecx, ecx
je 0x405725
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 0x40571b
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x40567d
push edx
mov ecx, esi
call fcn.00403930
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 0x40569f
xor ecx, ecx
jmp 0x4056b1
push dword [eax - 8]
push eax
call fcn.004279fc
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40571b
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40571b
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 0x4056ed
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 0x405709
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.004013d0
push 0x80004005
call fcn.004013d0
int3
Function at 0x422fed
Capabilities:
Parse pe header

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

Function at 0x439293
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44fec0
push 0x44feb8
push str.FlsAlloc
push 0x1f
call fcn.004390fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4392c7
push dword [ebp + 8]
mov ecx, esi
call dword [0x44b1f4]
call esi
jmp 0x4392cd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x439311
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44fed0
push 0x44fec8
push str.FlsGetValue
push 0x21
call fcn.004390fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x439348
push dword [ebp + 8]
mov ecx, esi
call dword [0x44b1f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x439350
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44fed8
push 0x44fed0
push str.FlsSetValue
push 0x22
call fcn.004390fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43938a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44b1f4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43b270
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00423470
mov eax, dword [0x45f04c]
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.004379ba
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43b2b2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43b40e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00447fc0
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 + 0x461528]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043c071
mov ecx, dword [esi*4 + 0x461528]
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 0x43b407
cmp eax, dword [ecx + edi + 0x24]
jne 0x43b407
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 0x43b407
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043c071
add esp, 0x14
test edx, edx
jl 0x43b407
jg 0x43b37d
test eax, eax
jb 0x43b407
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43b407
jl 0x43b397
cmp dword [ebp - 0x1008], eax
ja 0x43b407
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43b3b5
test ebx, ebx
je 0x43b3ee
cmp ecx, edi
jae 0x43b3ee
mov al, byte [ecx]
cmp al, 0xd
jne 0x43b3cf
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43b3db
cmp byte [ecx + 1], 0xa
jne 0x43b3db
inc ecx
jmp 0x43b3db
movzx eax, al
movsx eax, byte [eax + 0x45f2d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43b3b5
cmp edx, ebx
jne 0x43b3b5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43b40c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00422b0f
leave
ret
Function at 0x43b509
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 + 0x461528]
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 0x43b549
cmp byte [ebx], 0xa
jne 0x43b549
or byte [edi + eax + 0x28], 4
jmp 0x43b54e
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 0x43b64d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43b630
inc eax
cmp dl, 0xd
je 0x43b57a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43b5a0
cmp eax, ecx
jae 0x43b5ae
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 0x43b562
jmp 0x43b64d
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 0x43b62b
cmp dword [ebp - 0x10], 0
je 0x43b62b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x461528]
test byte [eax + edi + 0x28], 0x48
je 0x43b605
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43b5f0
mov byte [esi], dl
jmp 0x43b601
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x461528]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43b64d
cmp byte [ebp - 1], 0xa
jne 0x43b614
cmp esi, ebx
jne 0x43b614
mov byte [esi], 0xa
jmp 0x43b64c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043c08f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43b64d
mov byte [esi], 0xd
jmp 0x43b64c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x461528]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43b64a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43b64d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43b656
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 + 0x461528]
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 0x43b69c
cmp word [ebx], dx
jne 0x43b69c
or byte [eax + edi + 0x28], 4
jmp 0x43b6a1
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 0x43b804
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 0x43b7e4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43b6e2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43b718
cmp eax, edx
jae 0x43b726
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 0x43b6bd
jmp 0x43b804
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 0x43b7df
cmp dword [ebp - 0x18], 0
je 0x43b7df
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x461528]
test byte [eax + edi + 0x28], 0x48
je 0x43b7b5
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 0x43b779
mov word [esi], cx
jmp 0x43b7b0
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x461528]
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 + 0x461528]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x461528]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43b804
pop eax
cmp word [ebp - 4], ax
jne 0x43b7c5
cmp esi, ebx
jne 0x43b7c5
mov word [esi], ax
jmp 0x43b801
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043c08f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43b804
push 0xd
pop eax
jmp 0x43b7c0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x461528]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43b7fe
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43b804
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 0x43fc82
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45f04c]
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 0x43fccd
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043fe1d
test al, al
jne 0x43fcc7
sub edx, 2
cmp edx, edi
jne 0x43fcad
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43fcef
lea eax, [edi + 2]
cmp edx, eax
je 0x43fcef
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043fbce
add esp, 0x10
jmp 0x43fde9
push esi
lea ecx, [ebp - 0x255]
call fcn.0043fe1d
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 0x43fd32
push dword [ebp - 0x25c]
jmp 0x43fcdf
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 0x43fd6f
cmp word [ebp - 0x226], 0
je 0x43fd90
cmp word [ebp - 0x226], ax
jne 0x43fd6f
cmp word [ebp - 0x224], 0
je 0x43fd90
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043fbce
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43fddc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43fd49
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43fdc4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43fde9
push 0x43f9fe
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00446b10
add esp, 0x10
jmp 0x43fdb9
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.00422b0f
leave
ret

Function at 0x4406ff
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x440710
pop esi
ret
push ebx
push edi
push esi
call fcn.004406c8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043796c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x440738
push ebx
push esi
push edi
call fcn.00423e20
add esp, 0xc
push 0
call fcn.00437932
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x440b08
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044074d
Function at 0x443108
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004374c0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x443177
cmp esi, dword [ebp - 4]
je 0x443172
cmp dword [ebp + 0xc], 0
je 0x443172
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44314f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00442c5a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x443179
xor eax, eax
inc eax
jmp 0x443179
xor eax, eax
pop edi
pop esi
leave
ret