joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b3e8
push esi
call fcn.00405a0c
push esi
call fcn.00405593
mov edi, eax
test edi, edi
jne 0x405601
xor eax, eax
jmp 0x405653
push edi
call fcn.00405c6e
test byte [0x42eb78], 0x80
je 0x40561a
mov al, byte [edi]
test al, al
je 0x4055fd
cmp al, 0x5c
je 0x4055fd
sub edi, esi
jmp 0x405632
call fcn.00405d07
test eax, eax
je 0x40562c
test byte [eax], 0x10
je 0x4055fd
push esi
call fcn.00405546
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40561e
call fcn.004054ff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4056c4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056e0
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056e3
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc
Function at 0x402bf9
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x14
mov eax, 0x466026
call fcn.0043e164
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x4c960c
push 1
push 0
push 0x4ca058
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x402d14
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
and dword [ebp - 0x18], 0
push edx
push 0x4ca048
mov eax, dword [ecx]
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x402d0b
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.0041437e
mov ecx, dword [ebp - 0x10]
xor ebx, ebx
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x50]
cmp dword [ebp + 0x14], ebx
je 0x402c91
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
call fcn.0041437e
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
push ecx
mov eax, dword [ecx]
call dword [eax + 0x2c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004143e1
mov ecx, dword [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x44]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004143e1
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0041437e
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov dword [ebp - 4], 2
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004143e1
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0041437e
mov ecx, dword [ebp - 0x18]
push 1
push dword [ebp - 0x20]
mov dword [ebp - 4], 3
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov ebx, eax
call fcn.004143e1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
shr ebx, 0x1f
xor bl, 1
mov al, bl
call fcn.0043e132
ret

Function at 0x403094
Capabilities:
Persist via run registry key

Disassembly:
push str.Spotify_Web_Helper
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call fcn.0041442a
add esp, 0xc
ret
Function at 0x403224
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.0043e240
mov eax, dword [0x4e01d4]
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 [0x4e6128], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x4024], eax
test eax, eax
jne 0x403281
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4033f3
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 0x4032a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x34
pop edi
jmp 0x4033e7
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 0x403310
push 0x33
jmp 0x4033df
mov eax, dword [ebp - 0x4010]
xor esi, esi
mov dword [0x4e6124], eax
mov dword [0x4e6120], 0
jmp 0x4033d0
push 0x4e6108
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4e6108
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 0x403422
cmp byte [ebp - 0x4018], 0
mov eax, dword [ebp - 0x400c]
je 0x403391
mov byte [ebp - 0x4018], 0
cmp eax, 2
jb 0x403391
cmp byte [ebp - 0x4004], 0x4d
jne 0x403404
cmp byte [ebp - 0x4003], 0x5a
jne 0x403404
test eax, eax
je 0x403412
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 0x403408
mov eax, dword [ebp - 0x400c]
cmp dword [ebp - 0x4020], eax
jne 0x40340e
add dword [0x4e6120], eax
add esi, dword [ebp - 0x400c]
cmp byte [0x4e6104], 0
je 0x40332c
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.0043e124
leave
ret
push 0x36
jmp 0x4033df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xb
jmp 0x4033df
xor eax, eax
cmp esi, dword [ebp - 0x4010]
push 0x36
pop edi
cmove edi, eax
jmp 0x4033e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4033e0
Function at 0x40542d
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 [0x4e6130], al
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4e6138], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x405cc4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebp
ret
Function at 0x41a625
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 0x41a645
xor eax, eax
jmp 0x41a79c
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 0x41a672
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41a66f
inc edi
cmp edi, ebx
jb 0x41a662
mov dword [ebp + 0xc], edi
mov esi, edi
sub esi, dword [ebp + 8]
mov eax, esi
sub eax, ecx
cmp edi, ebx
jae 0x41a783
cmp eax, 3
jbe 0x41a6aa
xor edx, edx
mov al, byte [edi + 4]
mov ecx, esi
mov dword [ebp - 8], ecx
test al, al
je 0x41a6e6
cmp al, 0xff
je 0x41a6e6
and edx, 3
xor eax, eax
add edx, edx
or edx, 1
inc eax
jmp 0x41a77c
lea ecx, [eax - 1]
shl edx, cl
and edx, 7
je 0x41a68a
cmp byte [edx + 0x4c94d4], 0
je 0x41a6d3
movzx eax, byte [edx + 0x4c94dc]
mov ecx, edi
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x41a6d3
cmp al, 0xff
jne 0x41a68a
and edx, 3
mov ecx, esi
add edx, edx
or edx, 1
inc esi
mov edi, dword [ebp + 8]
jmp 0x41a659
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 0x41a714
lea ebx, [ecx + esi]
add ebx, edi
jmp 0x41a71a
mov ebx, ecx
sub ebx, esi
sub ebx, edi
test edx, edx
je 0x41a751
movzx eax, byte [edx + 0x4c94dc]
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 0x41a73c
cmp al, 0xff
jne 0x41a751
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 0x41a707
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 0x41a6de
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 0x41d9bb
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x4685bf
call fcn.0043e164
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 0x41d9ef
test bl, bl
je 0x41d9f2
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 0x41da21
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
cmovae eax, dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x41da33
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 0x41db12
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
or eax, edx
je 0x41da89
test bl, bl
jne 0x41da89
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 0x41da72
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41da7f
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41da89
push str.failed_setting_file_size
jmp 0x41db17
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4c9738
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41dac3
lea ecx, [ebp - 0x14]
push ecx
push dword [esi + 0x70]
call eax
test eax, eax
je 0x41dabc
mov eax, dword [ebp - 0x10]
xor ecx, ecx
or ecx, dword [ebp - 0x14]
cdq
jmp 0x41dadb
push str.failed_querying_file_size
jmp 0x41db17
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
je 0x41dabc
xor ecx, ecx
or ecx, eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x18], edi
je 0x41daf0
test eax, eax
jg 0x41daeb
jl 0x41daf0
cmp ecx, dword [ebp + 0x18]
jb 0x41daf0
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.00404c3e
lea ecx, [ebp + 0x30]
call fcn.00404c18
call fcn.0043e132
ret 0x60
push str.failed_opening_file
mov ecx, esi
call fcn.0041d669
int3
Function at 0x4262b3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4e01d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x4e654c], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x4262f0
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 [0x4e654c], ax
movzx esi, word [0x4e654c]
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 0x4263a8
inc ebx
cmp byte [ebx], 1
ja 0x42630d
mov dword [ebp - 0x38], ebx
cmp ebx, edi
je 0x4263a8
test eax, eax
jne 0x42633e
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 [0x4e6548], si
je 0x426356
push esi
push eax
mov word [0x4e6548], si
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, ebx
sub eax, edi
je 0x4263a8
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 0x42638b
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x30]
jmp 0x426394
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 0x426367
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x38]
cmp byte [ebx], 0
je 0x4263fa
movzx eax, byte [ebx + 1]
sub eax, 1
js 0x4263fa
cmp eax, 0x20
jge 0x4263ce
and esi, 0xfff0
or si, word [eax*2 + 0x4c9e54]
movzx esi, si
jmp 0x4263ec
cmp eax, 0x40
jge 0x4263e3
and esi, 0xff0f
or si, word [eax*2 + 0x4c9e74]
jmp 0x4263c9
jne 0x4263ef
movzx esi, word [0x4e654c]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x24]
lea edi, [ebx + 2]
jmp 0x426302
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e124
leave
ret

Function at 0x426a84
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.00426a60
pop esi
leave
ret 8
Function at 0x43d80f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0044b3de
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 0x43d84e
sub eax, 1
je 0x43d849
sub eax, 1
je 0x43d845
xor eax, eax
leave
ret
push 3
jmp 0x43d850
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x43f197
Capabilities:
Parse pe header

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

Function at 0x456b43
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ceef8
push 0x4ceef0
push str.FlsAlloc
push 0x1f
call fcn.004569ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x456b77
push dword [ebp + 8]
mov ecx, esi
call dword [0x46b2fc]
call esi
jmp 0x456b7d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x456bc1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cef08
push 0x4cef00
push str.FlsGetValue
push 0x21
call fcn.004569ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x456bf8
push dword [ebp + 8]
mov ecx, esi
call dword [0x46b2fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x456c00
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cef10
push 0x4cef08
push str.FlsSetValue
push 0x22
call fcn.004569ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x456c3a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x46b2fc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x460592
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e01d4]
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.00454dc0
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.00454dc0
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 0x460609
cmp word [ecx], dx
je 0x460609
mov eax, dword [0x4cfa9c]
push edi
dec eax
push eax
push 0x4cf988
call fcn.00460531
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x46067c
cmp word [eax], dx
je 0x46067c
mov eax, dword [edi]
test eax, eax
je 0x46062d
cmp word [eax], dx
je 0x46062d
lea eax, [ebp - 0x10]
push eax
call fcn.0045ff14
jmp 0x460636
lea eax, [ebp - 0x10]
push eax
call fcn.0045ffaf
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4606a6
mov eax, dword [0x4cf984]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4cf678
call fcn.00460531
add esp, 0xc
test al, al
je 0x4606a6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x460671
cmp word [eax], di
je 0x460671
lea eax, [ebp - 0x10]
push eax
call fcn.0045ff14
pop ecx
jmp 0x4606a8
lea eax, [ebp - 0x10]
push eax
call fcn.0045ffaf
jmp 0x46066e
mov eax, dword [edi]
test eax, eax
je 0x460693
cmp word [eax], dx
je 0x460693
lea eax, [ebp - 0x10]
push eax
call fcn.0045fec9
pop ecx
jmp 0x4606a6
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 0x460771
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004603b6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x460771
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x460771
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x460771
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4606fe
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00456ddc
test ebx, ebx
je 0x46076c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00456ddc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x460771
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 0x460771
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004647fa
add esp, 0x10
xor eax, eax
inc eax
jmp 0x460773
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e124
leave
ret
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408920
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x1505
jmp 0x408941
push eax
call dword [0x4011e8]
imul edi, edi, 0x21
movzx eax, ax
xor edi, eax
inc esi
pop ecx
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x40892f
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x408951
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x1505
jmp 0x40897c
mov ecx, dword [ebp + 0xc]
dec dword [ebp + 0xc]
test ecx, ecx
je 0x408984
push eax
call dword [0x4011e8]
imul edi, edi, 0x21
movzx eax, ax
xor edi, eax
inc esi
pop ecx
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x408960
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x401810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x402d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 4]
mov esi, eax
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call fcn.00402b0e
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x401c70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x402e16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea eax, [ecx + 8]
push ebp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [eax]
push 0x405258
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x401e11
push str.SOFTWAREJavaSoftJava_Runtime_Environment
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0x104
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
mov dword [esp + 0x12c], 0
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call esi
test eax, eax
jne 0x401dfd
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edi
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.CurrentVersion
push edx
call ebp
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x401dfd
push 0x40514c
lea ecx, [esp + 0xc]
call fcn.00402b5c
call sub.MFC42.DLL_AfxGetEmptyString
mov ecx, dword [eax]
lea edx, [esp + 0x20]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x130], 1
call fcn.00402b6e
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call esi
test eax, eax
jne 0x401dfd
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.RuntimeLib
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x104
call ebp
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401dfd
lea edx, [esp + 0x20]
push edx
call fcn.00401810
add esp, 4
test eax, eax
je 0x401dfd
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x124]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x128
ret