joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471584
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
xor ebx, ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x118], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404558
xor eax, eax
push ebp
push 0x471659
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00404318
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0xb
lea edx, [ebp - 0x120]
xor ecx, ecx
mov eax, 0x471670
call fcn.004095b0
mov edx, dword [ebp - 0x118]
pop eax
call fcn.00404370
mov edx, dword [ebp - 0x114]
mov eax, ebx
call fcn.004048d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471660
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.004040cc
lea eax, [ebp - 4]
call fcn.004040a8
ret

Function at 0x471678
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4717ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
lea eax, [ebp - 0x10]
mov ecx, 0x4717c4
call fcn.004043b4
mov eax, dword [ebp - 0x10]
call fcn.00408ab8
test al, al
je 0x471787
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00404568
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404568
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00408ab8
test al, al
je 0x471787
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
lea eax, [ebp - 0x18]
mov ecx, 0x4717dc
call fcn.004043b4
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x42d608]
call fcn.0042d6b8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x471778
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov ecx, 0x4717ec
mov edx, 0x471800
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 8]
dec eax
jne 0x471762
lea ecx, [ebp - 0xc]
mov edx, 0x471810
mov eax, dword [ebp - 4]
call fcn.00471584
mov eax, dword [ebp - 0xc]
push eax
mov ecx, 0x471810
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
call fcn.00471408
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47177f
mov eax, dword [ebp - 0x14]
call fcn.004032d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4717b4
lea eax, [ebp - 0x18]
call fcn.004040a8
lea eax, [ebp - 0x10]
call fcn.004040a8
lea eax, [ebp - 0xc]
call fcn.00404788
ret
Function at 0x471a58
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x471afa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x10]
call fcn.00408ab8
test al, al
je 0x471adf
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00402a14
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00408ce8
push 0x471b10
lea eax, [ebp - 0x10]
call fcn.00471884
push dword [ebp - 0x10]
push 0x471b24
push dword [ebp - 8]
push 0x471b3c
lea eax, [ebp - 4]
mov edx, 5
call fcn.00404428
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404568
push eax
mov eax, dword [ebx + 0x10]
call fcn.00404568
push eax
push 0x471b40
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471b01
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004040cc
ret
Function at 0x472ff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x47301a
cmp dword [ebx + 0x64], 0
jne 0x47301a
cmp dword [ebx + 0x6c], 0
jne 0x47301a
mov edi, esi
jmp 0x4730a1
cmp edi, 0xffffffff
jne 0x473022
dec edi
jmp 0x4730a1
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x4730a1
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004723ec
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x47306f
mov cx, word [esp]
sub cx, si
jmp 0x473071
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x473058
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x473097
mov cx, word [esp]
sub cx, si
jmp 0x473099
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x473080
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4730fe
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.00472d8c
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4730e9
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4730fe
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x472ffa
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x479354
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x485f44
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x479376
shr eax, 1
xor eax, 0xedb88320
jmp 0x479378
shr eax, 1
dec edx
jne 0x479364
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x47935d
mov byte [0x486344], 1
pop esi
pop ebx
ret

Function at 0x479394
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x486344], 0
jne 0x4793ab
call fcn.00479354
mov eax, edi
dec eax
test eax, eax
jl 0x4793d4
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x485f44]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4793b5
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x402a80
Capabilities:
Terminate process

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x80]
test eax, eax
je 0x402b6f
cmp dword [eax + ecx], 0
push edi
lea edi, [eax + ecx]
mov dword [esp + 4], edi
je 0x402b6e
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push esi
mov eax, dword [edi + 0xc]
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x402bca
mov esi, dword [edi]
mov ecx, dword [esp + 0x18]
add esi, ecx
mov edi, dword [edi + 0x10]
add edi, ecx
cmp byte [0x42ce80], 0
je 0x402b71
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
or eax, edx
je 0x402b53
nop dword [eax]
test edx, edx
jg 0x402b28
jl 0x402afa
test ecx, ecx
jae 0x402b28
push ecx
push ebx
call ebp
test eax, eax
jne 0x402b39
push str.Error:_couldnt_get_function_by_ordinal.
push 0x42cf90
call fcn.004010d0
add esp, 8
mov ecx, eax
push 0x401490
call fcn.00401fb0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esp + 0x18]
add eax, 2
add eax, ecx
push eax
push ebx
call ebp
test eax, eax
je 0x402ba4
add esi, 8
mov dword [edi], eax
mov dword [edi + 4], 0
add edi, 8
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
or eax, edx
jne 0x402af0
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
add edi, 0x14
mov dword [esp + 0x10], edi
cmp dword [edi], 0
jne 0x402ab2
pop esi
pop ebx
pop ebp
pop edi
pop ecx
ret
mov eax, dword [esi]
test eax, eax
je 0x402b57
jns 0x402b83
push eax
push ebx
call ebp
test eax, eax
je 0x402b02
jmp 0x402b90
add ecx, 2
add eax, ecx
push eax
push ebx
call ebp
test eax, eax
je 0x402ba4
mov ecx, dword [esp + 0x18]
add esi, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [esi]
test eax, eax
jne 0x402b77
jmp 0x402b57
push str.Error:_couldnt_get_function_by_name.
push 0x42cf90
call fcn.004010d0
add esp, 8
mov ecx, eax
push 0x401490
call fcn.00401fb0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.Error:_couldnt_import_dll.
push 0x42cf90
call fcn.004010d0
add esp, 8
mov ecx, eax
push 0x401490
call fcn.00401fb0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407741
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x407762
jl 0x407759
test edi, edi
jne 0x407762
xor eax, eax
xor edx, edx
jmp 0x407823
cmp dword [ebx + 0x38], 0
je 0x407777
push eax
push edi
push dword [ebp + 8]
call fcn.00407829
jmp 0x407823
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4077be
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4077be
cmp eax, edi
jb 0x407798
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409360
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4077c4
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407818
mov ecx, ebx
call fcn.00406f9a
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407803
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040deff
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x407818
jmp 0x4077d6
test edx, edx
je 0x407818
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040deff
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x408b42
Capabilities:
Parse pe header

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

Function at 0x412bdd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425948
push 0x425940
push str.FlsAlloc
push 0x1f
call fcn.00412a48
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412c11
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f13c]
call esi
jmp 0x412c17
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412c5b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425958
push 0x425950
push str.FlsGetValue
push 0x21
call fcn.00412a48
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412c92
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f13c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x412c9a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425960
push 0x425958
push str.FlsSetValue
push 0x22
call fcn.00412a48
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412cd4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41f13c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x415473
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408cb0
mov eax, dword [0x42c018]
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.004140ba
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4154b5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x415611
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041e680
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 + 0x42d930]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00416470
mov ecx, dword [esi*4 + 0x42d930]
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 0x41560a
cmp eax, dword [ecx + edi + 0x24]
jne 0x41560a
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 0x41560a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00416470
add esp, 0x14
test edx, edx
jl 0x41560a
jg 0x415580
test eax, eax
jb 0x41560a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41560a
jl 0x41559a
cmp dword [ebp - 0x1008], eax
ja 0x41560a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4155b8
test ebx, ebx
je 0x4155f1
cmp ecx, edi
jae 0x4155f1
mov al, byte [ecx]
cmp al, 0xd
jne 0x4155d2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4155de
cmp byte [ecx + 1], 0xa
jne 0x4155de
inc ecx
jmp 0x4155de
movzx eax, al
movsx eax, byte [eax + 0x42c2b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4155b8
cmp edx, ebx
jne 0x4155b8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41560f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407f4a
leave
ret
Function at 0x415908
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 + 0x42d930]
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 0x415948
cmp byte [ebx], 0xa
jne 0x415948
or byte [edi + eax + 0x28], 4
jmp 0x41594d
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 0x415a4c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x415a2f
inc eax
cmp dl, 0xd
je 0x415979
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41599f
cmp eax, ecx
jae 0x4159ad
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 0x415961
jmp 0x415a4c
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 0x415a2a
cmp dword [ebp - 0x10], 0
je 0x415a2a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42d930]
test byte [eax + edi + 0x28], 0x48
je 0x415a04
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4159ef
mov byte [esi], dl
jmp 0x415a00
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42d930]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x415a4c
cmp byte [ebp - 1], 0xa
jne 0x415a13
cmp esi, ebx
jne 0x415a13
mov byte [esi], 0xa
jmp 0x415a4b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041648e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x415a4c
mov byte [esi], 0xd
jmp 0x415a4b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42d930]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415a49
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415a4c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415a55
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 + 0x42d930]
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 0x415a9b
cmp word [ebx], dx
jne 0x415a9b
or byte [eax + edi + 0x28], 4
jmp 0x415aa0
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 0x415c03
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 0x415be3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x415ae1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415b17
cmp eax, edx
jae 0x415b25
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 0x415abc
jmp 0x415c03
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 0x415bde
cmp dword [ebp - 0x18], 0
je 0x415bde
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42d930]
test byte [eax + edi + 0x28], 0x48
je 0x415bb4
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 0x415b78
mov word [esi], cx
jmp 0x415baf
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42d930]
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 + 0x42d930]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42d930]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x415c03
pop eax
cmp word [ebp - 4], ax
jne 0x415bc4
cmp esi, ebx
jne 0x415bc4
mov word [esi], ax
jmp 0x415c00
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041648e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x415c03
push 0xd
pop eax
jmp 0x415bbf
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42d930]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x415bfd
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x415c03
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 0x418a0e
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 0x418aab
push ebx
push esi
call fcn.004189d7
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.004176c9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418a58
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418aaa
push edi
push eax
call fcn.00412755
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x418a78
call fcn.0041271b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418aa9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004176c9
add esp, 0x20
test eax, eax
jne 0x418a97
push edi
call fcn.0041271b
jmp 0x418a9f
push ebx
call fcn.0041271b
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 0x41b0d8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00412430
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 0x41b147
cmp esi, dword [ebp - 4]
je 0x41b142
cmp dword [ebp + 0xc], 0
je 0x41b142
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41b11f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041ac2a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41b149
xor eax, eax
inc eax
jmp 0x41b149
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41b1ae
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00412430
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00412430
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41b225
cmp word [ecx], dx
je 0x41b225
mov eax, dword [0x425fa4]
push edi
dec eax
push eax
push 0x425e90
call fcn.0041b14d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41b298
cmp word [eax], dx
je 0x41b298
mov eax, dword [edi]
test eax, eax
je 0x41b249
cmp word [eax], dx
je 0x41b249
lea eax, [ebp - 0x10]
push eax
call fcn.0041ab30
jmp 0x41b252
lea eax, [ebp - 0x10]
push eax
call fcn.0041abcb
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41b2c2
mov eax, dword [0x425e8c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x425b80
call fcn.0041b14d
add esp, 0xc
test al, al
je 0x41b2c2
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41b28d
cmp word [eax], di
je 0x41b28d
lea eax, [ebp - 0x10]
push eax
call fcn.0041ab30
pop ecx
jmp 0x41b2c4
lea eax, [ebp - 0x10]
push eax
call fcn.0041abcb
jmp 0x41b28a
mov eax, dword [edi]
test eax, eax
je 0x41b2af
cmp word [eax], dx
je 0x41b2af
lea eax, [ebp - 0x10]
push eax
call fcn.0041aae5
pop ecx
jmp 0x41b2c2
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41b38d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041afd2
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41b38d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41b38d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41b38d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41b31a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00412dda
test ebx, ebx
je 0x41b388
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00412dda
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41b38d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41b38d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041ca27
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41b38f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407f4a
leave
ret