joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403654
Capabilities:
Check http status code
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4024
call fcn.0043e6a0
mov eax, dword [0x4e11d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 0x32
pop edi
push ebx
push ebx
mov dword [ebp - 0x401c], eax
xor eax, eax
push ebx
inc eax
push ebx
push str.SpotifyInstaller_1.0
mov dword [ebp - 0x4018], eax
mov byte [0x4e7128], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x4024], eax
test eax, eax
jne 0x4036b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403823
push ebx
push 0x80000200
push ebx
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
jne 0x4036d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x34
pop edi
jmp 0x403817
and dword [ebp - 0x4010], 0
lea eax, [ebp - 0x4008]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0
push eax
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x4008], 4
push eax
push 0x20000005
push ebx
call esi
and dword [ebp - 0x4014], 0
lea eax, [ebp - 0x4008]
push 0
push eax
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x4008], 4
push eax
push 0x20000013
push ebx
call esi
cmp dword [ebp - 0x4014], 0xc8
je 0x403740
push 0x33
jmp 0x40380f
mov eax, dword [ebp - 0x4010]
xor esi, esi
mov dword [0x4e7124], eax
mov dword [0x4e7120], 0
jmp 0x403800
push 0x4e7108
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4e7108
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x400c]
push eax
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x403852
cmp byte [ebp - 0x4018], 0
mov eax, dword [ebp - 0x400c]
je 0x4037c1
mov byte [ebp - 0x4018], 0
cmp eax, 2
jb 0x4037c1
cmp byte [ebp - 0x4004], 0x4d
jne 0x403834
cmp byte [ebp - 0x4003], 0x5a
jne 0x403834
test eax, eax
je 0x403842
push 0
lea ecx, [ebp - 0x4020]
push ecx
push eax
lea eax, [ebp - 0x4004]
push eax
push dword [ebp - 0x401c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403838
mov eax, dword [ebp - 0x400c]
cmp dword [ebp - 0x4020], eax
jne 0x40383e
add dword [0x4e7120], eax
add esi, dword [ebp - 0x400c]
cmp byte [0x4e7104], 0
je 0x40375c
push 0x13
pop edi
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x4024]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e584
leave
push 0x36
jmp 0x40380f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xb
jmp 0x40380f
xor eax, eax
cmp esi, dword [ebp - 0x4010]
push 0x36
pop edi
cmove edi, eax
jmp 0x403810
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403810
Function at 0x4039bb
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x4039ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4039ea
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4039f5
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4039f3
mov dword [eax], esi
mov al, 1
pop esi
pop ebp
ret

Function at 0x404668
Capabilities:
Create process on windows

Disassembly:
push 0x60
mov eax, 0x4667d3
call fcn.0043e5c4
push 0x10
xor ebx, ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004416f0
push 0x44
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004416f0
mov edi, dword [ebp + 0x14]
add esp, 0x18
test edi, edi
je 0x40469a
mov dword [edi], ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0041477c
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0041477c
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
test esi, esi
mov byte [ebp - 4], 1
mov eax, 0x46c5a3
cmovne eax, esi
push eax
call fcn.0041477c
xor eax, eax
mov dword [ebp - 0x6c], 0x44
lea ecx, [ebp - 0x28]
test esi, esi
push ecx
cmovne eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x6c]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404717
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40470b
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
jmp 0x404710
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.004147df
lea ecx, [ebp - 0x14]
call fcn.004147df
lea ecx, [ebp - 0x18]
call fcn.004147df
invalid
Function at 0x404737
Capabilities:
Create http request

Disassembly:
push 0x2ec
mov eax, 0x466842
call fcn.0043e5f7
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x2f0], ebx
mov dword [ebp - 0x2ec], ebx
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 4], ebx
push ecx
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x2e8], ebx
push ecx
push eax
mov dword [ebp - 0x2e4], 0x4e1010
call fcn.00414e91
add esp, 0xc
test al, al
jne 0x404796
mov ebx, dword [ebp - 0x2e8]
jmp 0x404a8f
lea eax, [ebp - 0x2f4]
push eax
call fcn.00403457
mov dword [ebp - 0x2d0], eax
pop ecx
test eax, eax
jne 0x4047b5
push 4
pop ebx
jmp 0x404a8f
push eax
lea ecx, [ebp - 0x250]
call fcn.0040239d
cmp dword [ebp - 0x23c], 0x10
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x2d1]
cmovae ecx, dword [ebp - 0x250]
add eax, ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], 0x10
lea ecx, [ebp - 0x250]
push edx
cmovae ecx, dword [ebp - 0x250]
push eax
push ecx
lea ecx, [ebp - 0x2b0]
call fcn.0040184d
push eax
mov byte [ebp - 4], 2
call fcn.00406288
pop ecx
lea ecx, [ebp - 0x2b0]
call fcn.0040506e
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], bl
call fcn.00405048
call fcn.0040352f
mov ebx, eax
push ebx
push 0x46c5a3
call fcn.00415d72
push ebx
call fcn.00415d18
and dword [ebp - 0x2d8], 0
add esp, 0xc
xor edi, edi
push edi
lea eax, [ebp - 0x30]
push str.SpWebInst_d.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.00415f3a
mov esi, eax
mov dword [ebp - 0x2dc], esi
push esi
mov byte [ebp - 4], 3
call fcn.00415ea7
add esp, 0x18
test al, al
je 0x4048ae
push esi
call fcn.00415e37
push esi
call fcn.00415ea7
pop ecx
pop ecx
test al, al
je 0x4048ae
push esi
mov byte [ebp - 4], 0
call fcn.00443a2b
inc edi
pop ecx
cmp edi, 0xa
jl 0x404851
push 0xd
jmp 0x4047af
xor ebx, ebx
jmp 0x404a62
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404b74
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x280]
call fcn.0040239d
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.004172b2
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x40490f
mov eax, dword [eax]
push edi
push eax
call fcn.00403654
pop ecx
pop ecx
lea ecx, [ebp - 0x2c8]
mov ebx, eax
call fcn.00405048
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.00405048
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x34
invalid
invalid

Function at 0x404940
Capabilities:
Create http request

Disassembly:
ret

Function at 0x40585d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
xor esi, esi
xor al, 1
push esi
push esi
push 1
push esi
mov byte [0x4e7130], al
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4e7138], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x4060f4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebp
ret
Function at 0x413892
Capabilities:
Read file via mapping

Disassembly:
push 0x34
mov eax, 0x467fca
call fcn.0043e5f7
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4138ab
xor al, al
jmp 0x413922
push str.SpotifyWindowHandle
lea ecx, [ebp - 0x40]
call fcn.0040239d
push esi
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
call fcn.0041378c
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00405048
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x413918
push 4
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x413911
mov eax, dword [ecx]
push ecx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00405048
mov al, bl
call fcn.0043e5a6
ret 4
Function at 0x41418b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 1
push dword [ebp + 8]
call fcn.004141ce
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4141a6
xor bl, bl
jmp 0x4141c8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
inc bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x414828
Capabilities:
Delete registry value

Disassembly:
push 0xc
mov eax, 0x4680fa
call fcn.0043e5c4
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.0041477c
push dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0041477c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 2
push ebx
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x10], ebx
je 0x414886
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
neg eax
sbb al, al
lea ebx, [eax + 1]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call fcn.0043e57f
push dword [ebp - 0x18]
call fcn.0043e57f
pop ecx
pop ecx
mov al, bl
call fcn.0043e592
ret

Function at 0x41512a
Capabilities:
Create process on windows

Disassembly:
push 0x34
mov eax, 0x468216
call fcn.0043e5f7
lea eax, [ebp - 0x28]
push eax
call fcn.0041508f
lea eax, [ebp - 0x28]
xor esi, esi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], esi
push eax
call fcn.004143ff
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41515c
mov eax, dword [eax]
push 5
push esi
push esi
push eax
push 0x46d2ac
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x40]
call fcn.0040506e
lea ecx, [ebp - 0x28]
call fcn.00405048
call fcn.0043e5a6
ret

Function at 0x415ea7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e11d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x415ee1
xor al, al
jmp 0x415ef4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e584
leave
ret
Function at 0x415fc6
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e11d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x104
push ecx
push 0xffffffffffffffff
push eax
xor edi, edi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x416007
push 0xa
pop eax
jmp 0x416081
push esi
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41603e
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x20
neg eax
sbb eax, eax
add eax, 0xe
jmp 0x416080
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416069
cmp dword [ebp - 0x210], edi
jne 0x416069
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x416080
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xc
pop eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043e584
leave
ret
Function at 0x41aa1e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
push esi
xor esi, esi
and edx, 7
cmp eax, 5
jae 0x41aa3e
xor eax, eax
jmp 0x41ab95
add dword [ebp + 0x10], 5
or ecx, 0xffffffff
push ebx
push edi
mov edi, dword [ebp + 8]
lea ebx, [edi - 4]
add ebx, eax
mov dword [ebp - 0xc], ebx
add edi, esi
mov dword [ebp + 0xc], edi
cmp edi, ebx
jae 0x41aa6b
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41aa68
inc edi
cmp edi, ebx
jb 0x41aa5b
mov dword [ebp + 0xc], edi
mov esi, edi
sub esi, dword [ebp + 8]
mov eax, esi
sub eax, ecx
cmp edi, ebx
jae 0x41ab7c
cmp eax, 3
jbe 0x41aaa3
xor edx, edx
mov al, byte [edi + 4]
mov ecx, esi
mov dword [ebp - 8], ecx
test al, al
je 0x41aadf
cmp al, 0xff
je 0x41aadf
and edx, 3
xor eax, eax
add edx, edx
or edx, 1
inc eax
jmp 0x41ab75
lea ecx, [eax - 1]
shl edx, cl
and edx, 7
je 0x41aa83
cmp byte [edx + 0x4ca3c4], 0
je 0x41aacc
movzx eax, byte [edx + 0x4ca3cc]
mov ecx, edi
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x41aacc
cmp al, 0xff
jne 0x41aa83
and edx, 3
mov ecx, esi
add edx, edx
or edx, 1
inc esi
mov edi, dword [ebp + 8]
jmp 0x41aa52
movzx ecx, al
movzx eax, byte [edi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
mov edi, dword [ebp + 0x10]
shl ecx, 8
or ecx, eax
cmp dword [ebp + 0x18], 0
je 0x41ab0d
lea ebx, [ecx + esi]
add ebx, edi
jmp 0x41ab13
mov ebx, ecx
sub ebx, esi
sub ebx, edi
test edx, edx
je 0x41ab4a
movzx eax, byte [edx + 0x4ca3cc]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 4], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x41ab35
cmp al, 0xff
jne 0x41ab4a
xor eax, eax
push 0x20
pop ecx
sub ecx, dword [ebp - 4]
inc eax
shl eax, cl
mov ecx, eax
mov dword [ebp - 4], eax
dec ecx
xor ecx, ebx
jmp 0x41ab00
mov edi, dword [ebp + 0xc]
mov eax, ebx
mov ecx, dword [ebp - 8]
shr eax, 0x18
and al, 1
neg al
mov byte [edi + 1], bl
mov byte [edi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0xc]
shr eax, 8
push 5
mov byte [edi + 2], al
pop eax
add esi, eax
jmp 0x41aad7
lea ecx, [eax - 1]
shl edx, cl
xor ecx, ecx
and edx, 7
cmp eax, 3
mov eax, dword [ebp + 0x14]
cmova edx, ecx
pop edi
pop ebx
mov dword [eax], edx
mov eax, esi
pop esi
leave
ret
Function at 0x41ddb4
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x468c3e
call fcn.0043e5c4
mov esi, ecx
and dword [ebp - 4], 0
mov eax, SysReAllocString
push 2
pop ecx
cmp dword [ebp + 8], ecx
mov edi, 0xc0000000
cmovne edi, eax
setne bl
mov eax, dword [ebp + 0x20]
or eax, dword [ebp + 0x24]
je 0x41dde8
test bl, bl
je 0x41ddeb
push 3
pop ecx
xor eax, eax
mov edx, 0x100
inc eax
test bl, bl
push 0
cmovne edx, eax
cmp byte [ebp + 0x60], 0
push edx
push ecx
push 0
push eax
push edi
je 0x41de1a
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
cmovae eax, dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x41de2c
cmp dword [ebp + 0x44], 0x10
lea eax, [ebp + 0x30]
cmovae eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
or edi, 0xffffffff
mov dword [esi + 0x70], ecx
cmp ecx, edi
je 0x41df0b
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
or eax, edx
je 0x41de82
test bl, bl
jne 0x41de82
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edx
push eax
push dword [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x41de6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41de78
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41de82
push str.failed_setting_file_size
jmp 0x41df10
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4ca628
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41debc
lea ecx, [ebp - 0x14]
push ecx
push dword [esi + 0x70]
call eax
test eax, eax
je 0x41deb5
mov eax, dword [ebp - 0x10]
xor ecx, ecx
or ecx, dword [ebp - 0x14]
cdq
jmp 0x41ded4
push str.failed_querying_file_size
jmp 0x41df10
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
je 0x41deb5
xor ecx, ecx
or ecx, eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x18], edi
je 0x41dee9
test eax, eax
jg 0x41dee4
jl 0x41dee9
cmp ecx, dword [ebp + 0x18]
jb 0x41dee9
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi + 0x68], ecx
lea ecx, [ebp + 0x48]
and dword [esi + 0x6c], 0
call fcn.0040506e
lea ecx, [ebp + 0x30]
call fcn.00405048
call fcn.0043e592
ret 0x60
push str.failed_opening_file
mov ecx, esi
call fcn.0041da62
int3
Function at 0x42327b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x28
mov eax, 0x4694cd
call fcn.0043e5f7
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x42329d
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040245d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2200000
push 3
push 0
push 7
push 0x88
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040506e
cmp esi, 0xffffffff
jne 0x423342
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp eax, 5
jne 0x423332
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4232f8
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x423327
test esi, 0x400
jne 0x42332f
push esi
push edi
call fcn.004223c0
and esi, 0x10
mov dword [ebx + 4], eax
or esi, 0x20
pop ecx
shr esi, 4
pop ecx
mov dword [ebx], esi
jmp 0x423357
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x423332
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x2c]
push edi
push eax
push ebx
call fcn.00422f8c
add esp, 0x10
jmp 0x423357
push dword [ebp - 0x2c]
push edi
push esi
push ebx
call fcn.0042306a
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.0043e5a6
ret
Function at 0x4266ab
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4e11d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x4e7580], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x4266e8
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ax, word [ebp - 0x14]
mov word [0x4e7580], ax
movzx esi, word [0x4e7580]
xor eax, eax
and dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
cmp byte [edi], 1
mov ebx, edi
jbe 0x4267a0
inc ebx
cmp byte [ebx], 1
ja 0x426705
mov dword [ebp - 0x38], ebx
cmp ebx, edi
je 0x4267a0
test eax, eax
jne 0x426736
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
cmp word [0x4e757c], si
je 0x42674e
push esi
push eax
mov word [0x4e757c], si
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, ebx
sub eax, edi
je 0x4267a0
mov esi, dword [ebp - 0x24]
mov ebx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov ecx, 0x2000
cmp eax, ecx
lea eax, [ebp - 0x34]
push 0
push eax
cmovg ebx, ecx
cmp dword [ebp - 0x2c], 0
push ebx
push edi
push esi
je 0x426783
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x30]
jmp 0x42678c
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x28]
add edi, ebx
sub eax, ebx
mov ebx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
jne 0x42675f
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x38]
cmp byte [ebx], 0
je 0x4267f2
movzx eax, byte [ebx + 1]
sub eax, 1
js 0x4267f2
cmp eax, 0x20
jge 0x4267c6
and esi, 0xfff0
or si, word [eax*2 + 0x4cad44]
movzx esi, si
jmp 0x4267e4
cmp eax, 0x40
jge 0x4267db
and esi, 0xff0f
or si, word [eax*2 + 0x4cad64]
jmp 0x4267c1
jne 0x4267e7
movzx esi, word [0x4e7580]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x24]
lea edi, [ebx + 2]
jmp 0x4266fa
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e584
leave
ret

Function at 0x426ef2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00426ece
pop esi
leave
ret 8
Function at 0x43dc6f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0044b83e
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x43dcae
sub eax, 1
je 0x43dca9
sub eax, 1
je 0x43dca5
xor eax, eax
leave
ret
push 3
jmp 0x43dcb0
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x43f5f7
Capabilities:
Parse pe header

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

Function at 0x456fa3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cfde8
push 0x4cfde0
push str.FlsAlloc
push 0x1f
call fcn.00456e0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x456fd7
push dword [ebp + 8]
mov ecx, esi
call dword [0x46c2fc]
call esi
jmp 0x456fdd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x457021
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cfdf8
push 0x4cfdf0
push str.FlsGetValue
push 0x21
call fcn.00456e0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x457058
push dword [ebp + 8]
mov ecx, esi
call dword [0x46c2fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x457060
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cfe00
push 0x4cfdf8
push str.FlsSetValue
push 0x22
call fcn.00456e0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45709a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x46c2fc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]