joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a390
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x49a690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 1
push edi
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.0045db30
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x41a3f3
call fcn.0045db30
mov dword [ebx], 0x2746
jmp 0x41a405
cmp eax, 0x4d2
jne 0x41a408
call fcn.0045db30
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x41a420
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045db95
mov esp, ebp
pop ebp
ret
call fcn.0045db30
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
pop esi
mov dword [ebx], 0
xor ecx, ebp
pop ebx
call fcn.0045db95
mov esp, ebp
pop ebp
ret

Function at 0x41a580
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x49a690]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, ecx
mov esi, edx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x41a69c
cmp byte [ebp + 8], bl
je 0x41a604
test byte [esi], 8
je 0x41a604
xor eax, eax
mov dword [esp + 0x18], eax
call fcn.0045db30
or byte [esi], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x1c]
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.0045db30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x41a606
call fcn.0045db30
jmp 0x41a606
mov ebx, eax
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.0045db30
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x41a69c
call fcn.0045db30
cmp dword [edi + 4], eax
jne 0x41a63f
cmp dword [edi], 0x2733
je 0x41a651
call fcn.0045db30
cmp dword [edi + 4], eax
jne 0x41a698
cmp dword [edi], 0x4d5
jne 0x41a698
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esp + 0x14]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.0045db30
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x41a6aa
call fcn.0045db30
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0045db95
mov esp, ebp
pop ebp
ret
Function at 0x403200
Capabilities:
Enumerate gui resources
Get disk information

Disassembly:
mov eax, dword [0x2b9b67c]
mov ecx, dword [0x2b98588]
sub esp, 0x824
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x4032f5
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x2b9b67c], 0x959
jne 0x4032db
call esi
push 0
lea eax, [esp + 0x34]
push eax
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edx, dword [esp + 0x14]
push edx
call fcn.00403040
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x403240
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x824
ret
Function at 0x408d80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444c30]
jne 0x408d8a
repz ret
jmp fcn.0040b89c

Function at 0x40b067
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405217
and dword [ebp - 4], 0
cmp dword [0x445fc4], 0
mov ebx, eax
jne 0x40b118
push 0x402ac4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b1c9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ab8
push edi
call esi
test eax, eax
je 0x40b1c9
push eax
call fcn.004051a5
mov dword [esp], 0x402aa8
push edi
mov dword [0x445fc4], eax
call esi
push eax
call fcn.004051a5
mov dword [esp], 0x402a94
push edi
mov dword [0x445fc8], eax
call esi
push eax
call fcn.004051a5
mov dword [esp], 0x402a78
push edi
mov dword [0x445fcc], eax
call esi
push eax
call fcn.004051a5
pop ecx
mov dword [0x445fd4], eax
test eax, eax
je 0x40b118
push 0x402a60
push edi
call esi
push eax
call fcn.004051a5
pop ecx
mov dword [0x445fd0], eax
mov eax, dword [0x445fd0]
cmp eax, ebx
je 0x40b170
cmp dword [0x445fd4], ebx
je 0x40b170
push eax
call fcn.00405220
push dword [0x445fd4]
mov esi, eax
call fcn.00405220
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b170
test edi, edi
je 0x40b170
call esi
test eax, eax
je 0x40b167
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b167
test byte [ebp - 0xc], 1
jne 0x40b170
or dword [ebp + 0x10], 0x200000
jmp 0x40b1a9
mov eax, dword [0x445fc8]
cmp eax, ebx
je 0x40b1a9
push eax
call fcn.00405220
pop ecx
test eax, eax
je 0x40b1a9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b1a9
mov eax, dword [0x445fcc]
cmp eax, ebx
je 0x40b1a9
push eax
call fcn.00405220
pop ecx
test eax, eax
je 0x40b1a9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445fc4]
call fcn.00405220
pop ecx
test eax, eax
je 0x40b1c9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b1cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x527120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc6000]
push edi
or ebp, 0xffffffff
jmp 0x527142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x527149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x527138
mov eax, 1
add ebx, ebx
jne 0x52715b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x527150
jne 0x52716c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x527150
xor ecx, ecx
sub eax, 3
jb 0x527180
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5271f2
mov ebp, eax
add ebx, ebx
jne 0x52718b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x527198
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5271bc
inc ecx
add ebx, ebx
jne 0x5271a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52719d
jne 0x5271b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52719d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5271dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5271cd
jmp 0x52713e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5271dc
add edi, ecx
jmp 0x52713e
pop esi
mov edi, esi
mov ecx, 7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5271fa
cmp byte [edi], 0x34
jne 0x5271fa
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 0x5271ff
lea edi, [esi + 0x125000]
mov eax, dword [edi]
or eax, eax
je 0x527277
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12b94c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12b988]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52722c
mov ecx, edi
jns 0x52725b
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 + 0x12b98c]
or eax, eax
je 0x527271
mov dword [ebx], eax
add ebx, 4
jmp 0x527249
call dword [esi + 0x12b99c]
mov ebp, dword [esi + 0x12b990]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
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 0x5272ab
sub esp, 0xffffff80
jmp 0x40109c

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x4066b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cbcd
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x43d074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x60]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
je 0x406719
cmp dword [ebp - 0x30], 9
je 0x4066fe
jmp 0x406734
push 0x42e3e8
mov ecx, dword [ebp + 8]
call fcn.00403c40
mov edx, dword [ebp - 0x2c]
or edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
jmp 0x40678c
push 0x42e3f0
mov ecx, dword [ebp + 8]
call fcn.00403c40
mov eax, dword [ebp - 0x2c]
or eax, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
jmp 0x40678c
movzx ecx, word [ebp - 0x60]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040bf90
add esp, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
push str._Unsupported
mov ecx, dword [ebp - 0x3c]
call fcn.004092a0
push eax
mov ecx, dword [ebp + 8]
call fcn.00403b90
mov edx, dword [ebp - 0x2c]
or edx, 1
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404dd0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040eace
mov esp, ebp
pop ebp
ret
Function at 0x417b6d
Capabilities:
Parse pe header

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

Function at 0x41b3dc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4327e0
push 0x4327d8
push str.FlsAlloc
push 0x1f
call fcn.0041b247
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b410
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e17c]
call esi
jmp 0x41b416
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41b45a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4327f0
push 0x4327e8
push str.FlsGetValue
push 0x21
call fcn.0041b247
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b491
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e17c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41b499
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4327f8
push 0x4327f0
push str.FlsSetValue
push 0x22
call fcn.0041b247
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b4d3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42e17c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41cf5a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040f730
mov eax, dword [0x43d074]
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.0041ba0f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41cf9c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d0f8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040eae0
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 + 0x43ec48]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041df57
mov ecx, dword [esi*4 + 0x43ec48]
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 0x41d0f1
cmp eax, dword [ecx + edi + 0x24]
jne 0x41d0f1
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 0x41d0f1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041df57
add esp, 0x14
test edx, edx
jl 0x41d0f1
jg 0x41d067
test eax, eax
jb 0x41d0f1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d0f1
jl 0x41d081
cmp dword [ebp - 0x1008], eax
ja 0x41d0f1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d09f
test ebx, ebx
je 0x41d0d8
cmp ecx, edi
jae 0x41d0d8
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d0b9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d0c5
cmp byte [ecx + 1], 0xa
jne 0x41d0c5
inc ecx
jmp 0x41d0c5
movzx eax, al
movsx eax, byte [eax + 0x43d308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d09f
cmp edx, ebx
jne 0x41d09f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d0f6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040eace
leave
ret
Function at 0x41d3ef
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 + 0x43ec48]
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 0x41d42f
cmp byte [ebx], 0xa
jne 0x41d42f
or byte [edi + eax + 0x28], 4
jmp 0x41d434
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 0x41d533
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41d516
inc eax
cmp dl, 0xd
je 0x41d460
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41d486
cmp eax, ecx
jae 0x41d494
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 0x41d448
jmp 0x41d533
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 0x41d511
cmp dword [ebp - 0x10], 0
je 0x41d511
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43ec48]
test byte [eax + edi + 0x28], 0x48
je 0x41d4eb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d4d6
mov byte [esi], dl
jmp 0x41d4e7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43ec48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d533
cmp byte [ebp - 1], 0xa
jne 0x41d4fa
cmp esi, ebx
jne 0x41d4fa
mov byte [esi], 0xa
jmp 0x41d532
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041df75
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d533
mov byte [esi], 0xd
jmp 0x41d532
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43ec48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d530
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d533
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d53c
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 + 0x43ec48]
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 0x41d582
cmp word [ebx], dx
jne 0x41d582
or byte [eax + edi + 0x28], 4
jmp 0x41d587
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 0x41d6ea
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 0x41d6ca
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41d5c8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d5fe
cmp eax, edx
jae 0x41d60c
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 0x41d5a3
jmp 0x41d6ea
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 0x41d6c5
cmp dword [ebp - 0x18], 0
je 0x41d6c5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43ec48]
test byte [eax + edi + 0x28], 0x48
je 0x41d69b
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 0x41d65f
mov word [esi], cx
jmp 0x41d696
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43ec48]
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 + 0x43ec48]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43ec48]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41d6ea
pop eax
cmp word [ebp - 4], ax
jne 0x41d6ab
cmp esi, ebx
jne 0x41d6ab
mov word [esi], ax
jmp 0x41d6e7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041df75
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41d6ea
push 0xd
pop eax
jmp 0x41d6a6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43ec48]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41d6e4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41d6ea
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 0x4238f3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43d074]
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 0x42393e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00423a8e
test al, al
jne 0x423938
sub edx, 2
cmp edx, edi
jne 0x42391e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x423960
lea eax, [edi + 2]
cmp edx, eax
je 0x423960
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042383f
add esp, 0x10
jmp 0x423a5a
push esi
lea ecx, [ebp - 0x255]
call fcn.00423a8e
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 0x4239a3
push dword [ebp - 0x25c]
jmp 0x423950
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 0x4239e0
cmp word [ebp - 0x226], 0
je 0x423a01
cmp word [ebp - 0x226], ax
jne 0x4239e0
cmp word [ebp - 0x224], 0
je 0x423a01
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042383f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x423a4d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4239ba
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x423a35
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x423a5a
push 0x42366f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042ab30
add esp, 0x10
jmp 0x423a2a
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.0040eace
leave
ret

Function at 0x424370
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x424381
pop esi
ret
push ebx
push edi
push esi
call fcn.00424339
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041e156
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4243a9
push ebx
push esi
push edi
call fcn.0040f780
add esp, 0xc
push 0
call fcn.0041af68
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x424779
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004243be
Function at 0x426de6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041ac20
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 0x426e55
cmp esi, dword [ebp - 4]
je 0x426e50
cmp dword [ebp + 0xc], 0
je 0x426e50
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x426e2d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00426938
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x426e57
xor eax, eax
inc eax
jmp 0x426e57
xor eax, eax
pop edi
pop esi
leave
ret