joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425ba2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x20]
or dword [edi], 0xffffffff
or dword [edi + 4], 0xffffffff
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov byte [edi + 0x44], 1
mov dword [edi + 0x10], 4
call fcn.0041bc3f
mov eax, dword [edi + 0x2c]
xor ecx, ecx
mov dword [edi + 0x30], ecx
mov byte [eax], cl
mov eax, dword [edi + 0x38]
mov dword [edi + 0x3c], ecx
mov word [eax], cx
lea ecx, [edi + 0x14]
call fcn.00425e56
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42a014
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push eax
inc ebx
add esi, 8
push ebx
push 0
push 0
mov ecx, esi
call fcn.0041323e
test al, al
jne 0x42a040
mov eax, 0x80004005
jmp 0x42a09d
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041323e
test al, al
je 0x42a08e
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jne 0x42a08e
cmp dword [ebp - 4], edi
jne 0x42a08e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
test al, al
je 0x42a08e
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0041323e
test al, al
jne 0x42a090
xor bl, bl
xor ecx, ecx
mov eax, 0x80004005
test bl, bl
pop edi
cmovne eax, ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42a0a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x42a0b5
mov dword [esi], edi
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42a0fb
mov eax, 0x8000
cmp ecx, eax
push edi
cmovb eax, ecx
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
add dword [ecx + 8], edx
adc dword [ecx + 0xc], edi
test esi, esi
je 0x42a0f0
add dword [esi], edx
test eax, eax
jne 0x42a0fb
call fcn.00429c2b
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x43168d
Capabilities:
Read file via mapping

Disassembly:
push 0x38
mov eax, 0x467105
call fcn.0046392b
mov dword [ebp - 0x14], ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040fd08
xor eax, eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 0x2c]
mov ecx, ebx
push 0x3a
pop edx
call fcn.0040f5bc
mov esi, eax
test esi, esi
js 0x43184b
lea ecx, [ebx + 2]
lea ecx, [ecx + esi*2]
call fcn.0040f5bc
lea edi, [esi + 1]
add edi, eax
test eax, eax
push 0xffffffffffffffff
pop eax
cmovs edi, eax
test edi, edi
js 0x43184b
lea eax, [ebx + 2]
lea eax, [eax + edi*2]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040fccb
cmp edi, dword [ebp - 0x28]
jae 0x4316fe
xor eax, eax
mov dword [ebp - 0x28], edi
mov word [ebx + edi*2], ax
lea ecx, [ebx + 2]
lea ecx, [ecx + esi*2]
lea edx, [ebp - 0x10]
call fcn.0043119e
test al, al
je 0x431834
mov ebx, dword [ebp - 0x10]
lea eax, [ebx - 2]
cmp eax, 0x7ffffffe
ja 0x431834
test bl, 1
jne 0x431834
mov eax, dword [ebp - 0x2c]
cmp esi, dword [ebp - 0x28]
jae 0x43173f
xor ecx, ecx
mov dword [ebp - 0x28], esi
mov word [eax + esi*2], cx
push eax
push 0
push 4
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x43176b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43176b
mov edi, str.Can_not_open_mapping
jmp 0x431823
push ebx
xor eax, eax
push eax
push eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x43178c
mov edi, str.MapViewOfFile_error
jmp 0x431823
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0040fca7
xor ecx, ecx
mov byte [ebp - 4], 4
cmp word [edi], cx
je 0x4317ad
mov edi, str.Unsupported_Map_data
jmp 0x43180d
xor eax, eax
shr ebx, 1
inc eax
mov dword [ebp - 0x10], eax
cmp ebx, eax
jbe 0x431800
mov esi, dword [ebp - 0x14]
movzx eax, word [edi + eax*2]
test ax, ax
jne 0x4317e7
push dword [ebp + 0x10]
lea edx, [ebp - 0x38]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004312b7
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
mov word [eax], cx
jmp 0x4317f0
push eax
lea ecx, [ebp - 0x38]
call fcn.0040e755
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, ebx
jb 0x4317bc
mov esi, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [ebp - 0x34], 0
mov edi, str.Map_data_error
jne 0x43180d
mov edi, ecx
mov byte [ebp - 4], 3
push dword [ebp - 0x38]
call fcn.00455704
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp - 4], 1
test esi, esi
je 0x431839
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x431839
mov edi, str.Unsupported_Map_data_size
xor eax, eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], al
call fcn.00431632
mov ebx, dword [ebp - 0x2c]
jmp 0x431850
mov edi, str.Incorrect_Map_command
or eax, 0xffffffff
push ebx
mov dword [ebp - 4], eax
call fcn.00455704
pop ecx
mov eax, edi
call fcn.004638f9
ret 0xc
Function at 0x434881
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
xor dl, dl
push esi
mov esi, ecx
push edi
cmp dword [ebx + 4], 0
mov dword [ebp - 4], esi
je 0x4348b8
mov eax, dword [ebx]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
jne 0x4348a6
inc dl
jmp 0x4348b8
mov ecx, dword [ecx]
call fcn.00413bc0
xor ecx, ecx
movzx edx, dl
inc ecx
test al, al
cmovne edx, ecx
cmp dword [esi + 0x54], 3
jne 0x4348d2
test dl, dl
je 0x4348d2
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
and dword [esi + 4], 0
xor ecx, ecx
mov word [eax], cx
jmp 0x4348e0
lea eax, [esi + 0x3c]
mov esi, dword [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0040fde5
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x434935
test edi, edi
je 0x4348f4
push 0x5c
mov ecx, esi
call fcn.0040e755
mov eax, dword [ebx]
mov ecx, esi
mov eax, dword [eax + edi*4]
push eax
mov dword [ebp + 0xc], eax
call fcn.0040ff13
mov eax, dword [ebp - 4]
cmp dword [eax + 0x54], 3
jne 0x434925
test edi, edi
jne 0x434925
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 2
jne 0x434925
mov ecx, dword [ecx]
call fcn.00413bc0
test al, al
jne 0x43492f
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc edi
cmp edi, dword [ebx + 4]
jb 0x4348e7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x439181
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x4823f0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0x18]
mov eax, ebx
mov dword [esp + 0x10], ecx
mov esi, ebx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
cmp esi, ebx
ja 0x4392a4
jb 0x4391c7
cmp eax, 0x40
jae 0x4392a4
mov byte [esp + eax + 0x28], bl
add eax, 1
adc esi, ebx
jne 0x4391d7
cmp eax, 0x40
jb 0x4391b4
mov esi, ebx
mov edi, ebx
mov dword [esp + 0x20], esi
cmp dword [ebp + 0xc], ebx
jb 0x4392a0
ja 0x4391f3
cmp dword [ebp + 8], ebx
jbe 0x4392a0
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x439213
movzx eax, byte [esp + 0x20]
or eax, 0
jne 0x439213
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 8]
test eax, eax
jne 0x43928c
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x18]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, eax
xor eax, eax
cmp edx, 0x40
ja 0x43928b
xor ecx, ecx
test edx, edx
je 0x43925e
xor ecx, dword [esp + eax + 0x28]
add eax, 4
cmp eax, edx
jb 0x439253
test ebx, ebx
je 0x439266
cmp ecx, dword [ebx]
jne 0x439289
add esi, 1
mov dword [esp + 0x20], esi
adc edi, 0
cmp edi, dword [ebp + 0xc]
ja 0x4392a0
jb 0x43927c
cmp esi, dword [ebp + 8]
jae 0x4392a0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
jmp 0x4391f6
xor eax, eax
inc eax
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004550af
mov esp, ebp
pop ebp
ret 0x14
xor eax, eax
jmp 0x43928c
call fcn.00455f4c
int3
Function at 0x4392aa
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x43937c
xor eax, eax
inc eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
inc ecx
xor ecx, eax
dec edx
jne 0x4392b5
mov eax, ecx
ret 4

Function at 0x439540
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
or esi, 0xffffffff
xor edi, edi
test edx, edx
je 0x439565
movzx eax, byte [edi + ecx]
xor eax, esi
shr esi, 8
and eax, 0xff
xor esi, dword [eax*4 + 0x48b560]
inc edi
cmp edi, edx
jb 0x43954b
not esi
pop edi
mov eax, esi
pop esi
ret
Function at 0x45da99
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4823f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0045980a
mov dword [ebp - 0x14], eax
cmp dword [0x485f94], esi
jne 0x45db8c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x45db19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x45dc6c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x45dc6c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45dc6c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x485f94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x485f98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x485f9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x485fa4], eax
test eax, eax
je 0x45db89
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x485fa0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x45dbb1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x45dba4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x45dbc6
push 4
pop eax
jmp 0x45dc6e
cmp dword [ebp - 0x14], esi
je 0x45dbc6
push dword [0x485f94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x45dbab
mov eax, dword [0x485fa0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x45dc24
cmp dword [0x485fa4], edi
je 0x45dc24
push eax
call ebx
push dword [0x485fa4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x45dc24
test eax, eax
je 0x45dc24
call ecx
test eax, eax
je 0x45dc19
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x45dc19
test byte [ebp - 8], 1
jne 0x45dc24
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x45dc54
mov eax, dword [0x485f98]
cmp eax, edi
je 0x45dc51
push eax
call ebx
test eax, eax
je 0x45dc51
call eax
mov esi, eax
test esi, esi
je 0x45dc51
mov eax, dword [0x485f9c]
cmp eax, edi
je 0x45dc51
push eax
call ebx
test eax, eax
je 0x45dc51
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x485f94]
call ebx
test eax, eax
je 0x45dc6c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x45dc6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004550af
mov esp, ebp
pop ebp
ret
Function at 0x4050ee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x44ce2c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x405151
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401d50
push dword [esp + 0x38]
lea ecx, [esp + 0x18]
call fcn.0040293a
test al, al
jne 0x405168
lea ecx, [esp + 0x14]
add edi, 4
call fcn.0040415a
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40511f
xor esi, esi
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407ad9
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.0040415a
jmp 0x405153

Function at 0x408349
Capabilities:
Parse pe header

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

Function at 0x41962c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429650
push 0x429648
push str.FlsAlloc
push 0x1e
call fcn.00419499
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419660
push dword [ebp + 8]
mov ecx, esi
call dword [0x42513c]
call esi
jmp 0x419666
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4196aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429660
push 0x429658
push str.FlsGetValue
push 0x20
call fcn.00419499
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4196e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42513c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41ac69
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a90b

Function at 0x41ac74
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041aa9a
Function at 0x41b740
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.004086b0
mov eax, dword [0x44ce2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov edx, dword [ebp + 0x14]
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [eax*4 + 0x44e6d8]
push esi
push edi
mov edi, ebx
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x10]
add edx, ecx
mov dword [ebp - 0x1408], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1410], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x41b80a
lea esi, [ebp - 0x1404]
cmp ecx, edx
jae 0x41b7c4
movzx eax, word [ecx]
add ecx, 2
cmp eax, 0xa
jne 0x41b7b7
add dword [ebx + 8], 2
push 0xd
pop edi
mov word [esi], di
add esi, 2
mov word [esi], ax
add esi, 2
lea eax, [ebp - 6]
cmp esi, eax
jb 0x41b79b
mov edi, dword [ebp - 0x1408]
lea eax, [ebp - 0x1404]
sub esi, eax
mov dword [ebp + 0x10], ecx
push 0
lea eax, [ebp - 0x140c]
and esi, 0xfffffffe
push eax
push esi
lea eax, [ebp - 0x1404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b810
mov eax, dword [ebp - 0x140c]
add dword [ebx + 4], eax
cmp eax, esi
jb 0x41b818
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1410]
cmp ecx, edx
jb 0x41b795
jmp 0x41b818
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407ad9
leave
ret
Function at 0x41c054
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004086b0
mov eax, dword [0x44ce2c]
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.00418bae
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c096
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c1f2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424430
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 + 0x44e6d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c47a
mov ecx, dword [esi*4 + 0x44e6d8]
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 0x41c1eb
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c1eb
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 0x41c1eb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c47a
add esp, 0x14
test edx, edx
jl 0x41c1eb
jg 0x41c161
test eax, eax
jb 0x41c1eb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c1eb
jl 0x41c17b
cmp dword [ebp - 0x1008], eax
ja 0x41c1eb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c199
test ebx, ebx
je 0x41c1d2
cmp ecx, edi
jae 0x41c1d2
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c1b3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c1bf
cmp byte [ecx + 1], 0xa
jne 0x41c1bf
inc ecx
jmp 0x41c1bf
movzx eax, al
movsx eax, byte [eax + 0x44d770]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c199
cmp edx, ebx
jne 0x41c199
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c1f0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407ad9
leave
ret
Function at 0x41e5b3
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 0x41e650
push ebx
push esi
call fcn.0041e57c
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.0041d201
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e5fd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e64f
push edi
push eax
call fcn.00419982
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e61d
call fcn.00418977
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e64e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d201
add esp, 0x20
test eax, eax
jne 0x41e63c
push edi
call fcn.00418977
jmp 0x41e644
push ebx
call fcn.00418977
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 0x420ba3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
push edi
test ecx, ecx
je 0x420c54
xor eax, eax
cmp word [ecx], ax
je 0x420c54
mov esi, 0x42a540
mov edx, ecx
mov di, word [edx]
cmp di, word [esi]
jne 0x420bee
test di, di
je 0x420bea
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x420bee
add edx, 4
add esi, 4
test di, di
jne 0x420bc8
mov edx, eax
jmp 0x420bf3
sbb edx, edx
or edx, 1
test edx, edx
je 0x420c54
mov esi, 0x42a554
mov edx, ecx
mov di, word [edx]
cmp di, word [esi]
jne 0x420c22
test di, di
je 0x420c27
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x420c22
add edx, 4
add esi, 4
test di, di
jne 0x420bfe
jmp 0x420c27
sbb eax, eax
or eax, 1
test eax, eax
jne 0x420c4b
push 2
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push 0x2000000b
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420c6f
mov eax, dword [ebp - 4]
jmp 0x420c80
push ecx
call fcn.00415acc
pop ecx
jmp 0x420c80
push 2
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push 0x20001004
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x420c73
xor eax, eax
jmp 0x420c80
mov eax, dword [ebp - 4]
test eax, eax
jne 0x420c80
call dword [sym.imp.KERNEL32.dll_GetACP]
pop edi
pop esi
leave
ret