joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426620
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
push esi
mov esi, dword [esp + 0x218]
mov eax, dword [esi + 0x14dc]
test eax, eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0x110], 0
jl 0x426670
mov edx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x114], eax
mov dword [esp + 0x110], edx
jmp 0x4266c9
mov eax, dword [esi + 0x14d8]
test eax, eax
jl 0x42669c
lea edx, [esp + 4]
push edx
push 0
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
push edx
jmp 0x4266dd
mov eax, dword [esi + 0x14e8]
mov ecx, dword [esi + 0x14ec]
cmp eax, ecx
mov edx, 1
mov dword [esp + 0x114], eax
mov dword [esp + 0x110], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
jg 0x4266c9
mov eax, ecx
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x118]
lea ecx, [esp + 0x14]
push edx
push ecx
inc eax
push eax
call sub.WS2_32.dll_select
test eax, eax
jle 0x4266f2
xor eax, eax
pop esi
add esp, 0x210
ret
jge 0x42674e
mov eax, dword [esi + 0x14d8]
test eax, eax
jge 0x426708
mov eax, dword [esi + 0x14dc]
test eax, eax
jl 0x42674e
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x42674e
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 0xa79c], eax
push 0x14
push str.select_failed_in_soap_poll__
mov eax, esi
call fcn.00425e70
push eax
push esi
call fcn.004250f0
add esp, 0x10
mov dword [esi + 0xa794], 0x14
mov eax, 0x14
pop esi
add esp, 0x210
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xa79c], eax
or eax, 0xffffffff
pop esi
add esp, 0x210
ret
Function at 0x42d115
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x442510], esi
push edi
jne 0x42d135
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x44250c], esi
mov byte [0x442508], al
jne 0x42d19b
mov ecx, dword [0x443c8c]
test ecx, ecx
je 0x42d17c
mov eax, dword [0x443c88]
sub eax, 4
cmp eax, ecx
jmp 0x42d175
mov eax, dword [eax]
test eax, eax
je 0x42d167
call eax
mov eax, dword [0x443c88]
sub eax, 4
cmp eax, dword [0x443c8c]
mov dword [0x443c88], eax
jae 0x42d15f
mov eax, 0x44104c
mov esi, 0x441054
cmp eax, esi
mov edi, eax
jae 0x42d19b
mov eax, dword [edi]
test eax, eax
je 0x42d194
call eax
add edi, 4
cmp edi, esi
jb 0x42d18c
mov eax, 0x441058
mov esi, 0x441060
cmp eax, esi
mov edi, eax
jae 0x42d1ba
mov eax, dword [edi]
test eax, eax
je 0x42d1b3
call eax
add edi, 4
cmp edi, esi
jb 0x42d1ab
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x42d1d4
push dword [ebp + 8]
mov dword [0x442510], 1
call fcn.0042d07b
pop ebp
ret
Function at 0x42dc82
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x43cd28
call fcn.0043089c
mov edi, 0x94
mov eax, edi
call fcn.0042c7d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4424d0], ecx
mov eax, dword [esi + 4]
mov dword [0x4424dc], eax
mov edx, dword [esi + 8]
mov dword [0x4424e0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4424d4], esi
cmp ecx, 2
je 0x42dce2
or esi, 0x8000
mov dword [0x4424d4], esi
shl eax, 8
add eax, edx
mov dword [0x4424d8], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x42dd1b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42dd1b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42dd33
cmp eax, 0x20b
je 0x42dd20
mov dword [ebp - 0x1c], edi
jmp 0x42dd47
cmp dword [ecx + 0x84], 0xe
jbe 0x42dd1b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x42dd41
cmp dword [ecx + 0x74], 0xe
jbe 0x42dd1b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.0042fad2
pop ecx
test eax, eax
jne 0x42dd73
cmp dword [0x442548], 2
je 0x42dd60
call fcn.00433758
push 0x1c
call fcn.004335e1
push 0xff
call fcn.0042d07b
pop ecx
pop ecx
call fcn.00431c06
mov dword [ebp - 4], edi
call fcn.004320f7
test eax, eax
jge 0x42dd8c
push 0x1b
call fcn.0042dc5d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x442c68], eax
call fcn.00433bd7
mov dword [0x442540], eax
call fcn.00433b35
test eax, eax
jge 0x42ddb2
push 8
call fcn.0042dc5d
pop ecx
call fcn.00433902
test eax, eax
jge 0x42ddc3
push 9
call fcn.0042dc5d
pop ecx
push 1
call fcn.0042d0ab
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x42ddd9
push eax
call fcn.0042dc5d
pop ecx
mov eax, dword [0x4424f0]
mov dword [0x4424f4], eax
push eax
push dword [0x4424e8]
push dword [0x4424e4]
call fcn.0040a310
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x42de08
push esi
call fcn.0042d1d6
call fcn.0042d1f8
jmp 0x42de3a
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.004308d7
ret
Function at 0x4334fe
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0042c7d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x433599
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4424d0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x433599
cmp eax, 1
je 0x4335ba
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x433599
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x433566
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x433595
xor eax, eax
inc eax
jmp 0x4335d9
cmp edi, eax
jae 0x43359d
xor eax, eax
jmp 0x4335d9
cmp eax, esi
jae 0x4335a4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4424d0]
jmp 0x4335bd
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4335e1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4413a0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x441d38]
je 0x433616
inc eax
cmp eax, 0x13
jb 0x433607
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x441d38]
jne 0x43373c
mov eax, dword [0x442548]
cmp eax, 1
je 0x433714
cmp eax, edx
jne 0x433646
cmp dword [0x441724], 1
je 0x433714
cmp ecx, 0xfc
je 0x43373c
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43367c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0042f9c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042de70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4336b0
mov eax, edi
push eax
call fcn.0042de70
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43d4e4
push edi
call fcn.0042d680
add esp, 0x10
push edi
call fcn.0042de70
push dword [esi + 0x441d3c]
mov ebx, eax
call fcn.0042de70
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042c7d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0042f9c0
push edi
push ebx
call fcn.0042f9d0
push 0x43d4e0
push ebx
call fcn.0042f9d0
push dword [esi + 0x441d3c]
push ebx
call fcn.0042f9d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00435732
add esp, 0x2c
jmp 0x43373c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x441d3c]
push dword [esi]
call fcn.0042de70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0042c7bb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x435732
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44283c], ebx
push esi
push edi
jne 0x4357b2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4357ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x44283c], eax
je 0x4357ed
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x442840], eax
call esi
cmp dword [0x4424d0], 2
mov dword [0x442844], eax
jne 0x4357b2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x44284c], eax
je 0x4357b2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x442848], eax
mov eax, dword [0x442848]
test eax, eax
je 0x4357f7
call eax
test eax, eax
je 0x4357de
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x44284c]
test eax, eax
je 0x4357de
test byte [ebp - 8], 1
jne 0x4357f7
cmp dword [0x4424dc], 4
jb 0x4357f1
or byte [ebp + 0x12], 0x20
jmp 0x435816
xor eax, eax
jmp 0x435826
or byte [ebp + 0x12], 4
jmp 0x435816
mov eax, dword [0x442840]
test eax, eax
je 0x435816
call eax
mov ebx, eax
test ebx, ebx
je 0x435816
mov eax, dword [0x442844]
test eax, eax
je 0x435816
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44283c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43582b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x435859
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x435860
cmp ebx, dword [eax + 4]
jae 0x435860
xor eax, eax
jmp 0x435a50
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x435871
xor eax, eax
inc eax
jmp 0x435a4f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x435887
cmp ecx, edx
jae 0x4359cc
cmp dword [eax + 4], 0
je 0x435890
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x435878
cmp dword [ebp + 8], 0
je 0x4358b2
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4359cc
cmp eax, esi
jae 0x4359cc
mov eax, dword [0x442850]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4358d7
cmp dword [esi*4 + 0x442858], edi
je 0x4359d0
inc esi
cmp esi, eax
jl 0x4358c5
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x435a4c
cmp dword [ebp - 8], 0x1000000
jne 0x435a4c
test byte [ebp - 0xc], 0xcc
je 0x435955
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x435a4c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x435a4c
cmp word [eax + 0x18], 0x10b
jne 0x435a4c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x435a4c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x435955
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x435955
test byte [ecx + 0x27], 0x80
jne 0x4359cc
push 1
push 0x442898
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x435869
mov ecx, dword [0x442850]
test ecx, ecx
mov edx, ecx
jle 0x435989
lea eax, [ecx*4 + 0x442854]
cmp dword [eax], edi
je 0x435989
dec edx
sub eax, 4
test edx, edx
jg 0x43597d
test edx, edx
jne 0x4359ba
push 0xf
pop ebx
cmp ecx, ebx
jg 0x435996
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4359ae
lea eax, [edx*4 + 0x442858]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43599c
cmp ecx, 0x10
jge 0x4359ba
inc ecx
mov dword [0x442850], ecx
push 0
push 0x442898
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x435869
xor eax, eax
jmp 0x435a4f
test esi, esi
jle 0x435869
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x442898
call ebx
test eax, eax
jne 0x435869
cmp dword [esi*4 + 0x442858], edi
je 0x435a26
mov eax, dword [0x442850]
lea esi, [eax - 1]
test esi, esi
jl 0x435a14
cmp dword [esi*4 + 0x442858], edi
je 0x435a10
dec esi
jns 0x435a04
test esi, esi
jge 0x435a24
cmp eax, 0x10
jge 0x435a1f
inc eax
mov dword [0x442850], eax
lea esi, [eax - 1]
jmp 0x435a26
je 0x435a3e
xor ecx, ecx
test esi, esi
jl 0x435a3e
lea eax, [ecx*4 + 0x442858]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x435a2c
push 0
push 0x442898
call ebx
jmp 0x435869
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x435ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4428e4]
mov eax, dword [0x4413a0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x435ca6
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x442900]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x435ca6
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x435b4a
xor eax, eax
jmp 0x435cba
test al, 0x20
je 0x435b5b
push 2
push edi
push edi
push ecx
call fcn.00437097
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x435c30
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x435c77
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x435bbd
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x435bae
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x435b90
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x435bfd
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x435c09
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x435b84
jmp 0x435c0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x435ca1
cmp dword [ebp + 0x3a4], edi
je 0x435c77
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x435c69
mov dword [0x4424c8], eax
jmp 0x435cad
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x435c5b
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x435c0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x435c0b
push dword [ebp + 0x3a4]
call fcn.00436550
pop ecx
jmp 0x435cb7
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x435c8f
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x435b43
mov dword [0x4424c4], 0x1c
mov dword [0x4424c8], edi
jmp 0x435cb7
sub eax, dword [ebp - 0x7c]
jmp 0x435cba
and dword [0x4424c8], 0
mov dword [0x4424c4], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0042c7bb
add ebp, 0x39c
leave
ret
Function at 0x436d27
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x43ee28
call fcn.0043089c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4428cc], edi
jne 0x436d6b
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436d56
mov dword [0x4428cc], ebx
jmp 0x436d6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x436d6b
mov dword [0x4428cc], 2
mov eax, dword [0x4428cc]
cmp eax, ebx
jne 0x436d8b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x436e4e
cmp eax, 2
je 0x436d94
cmp eax, edi
jne 0x436dbc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x436da7
mov eax, dword [0x4425b4]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x436dc3
xor eax, eax
jmp 0x436e4e
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0042c7d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x436df6
cmp esi, edi
jne 0x436e0c
push dword [ebp - 0x20]
call fcn.0042d665
pop ecx
mov esi, eax
cmp esi, edi
je 0x436dbc
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x436e3f
cmp dword [ebp + 0x14], edi
jne 0x436e29
push edi
push edi
jmp 0x436e2f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x436e4b
push esi
call fcn.0042c204
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004308d7
ret
Function at 0x436e57
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x43ee38
call fcn.0043089c
xor esi, esi
cmp dword [0x4428d0], esi
jne 0x436e9b
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436e86
mov dword [0x4428d0], edi
jmp 0x436e9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x436e9b
mov dword [0x4428d0], 2
mov eax, dword [0x4428d0]
cmp eax, 2
je 0x436f7c
cmp eax, esi
je 0x436f7c
cmp eax, 1
jne 0x436ee0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x436ec9
mov eax, dword [0x4425b4]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x436ee7
xor eax, eax
jmp 0x436f8e
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0042c7d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x436f1d
cmp edi, esi
jne 0x436f38
lea eax, [ebx + ebx]
push eax
call fcn.0042d665
pop ecx
mov edi, eax
cmp edi, esi
je 0x436ee0
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436f6b
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x436f55
push esi
push esi
jmp 0x436f5b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x436f77
push edi
call fcn.0042c204
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x436f8e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004308d7
ret
Function at 0x43757c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4428e4]
push edi
jae 0x437751
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x442900]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x437751
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x437627
test dl, 2
jne 0x437627
test dl, 0x48
je 0x4375f1
cmp byte [eax + 5], 0xa
je 0x4375f1
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43763a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x437622
mov dword [0x4424c8], ecx
jmp 0x437758
cmp eax, 0x6d
jne 0x43762e
xor eax, eax
jmp 0x437765
push eax
call fcn.00436550
pop ecx
jmp 0x437762
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x43774c
test eax, eax
je 0x437661
cmp byte [ebx], 0xa
jne 0x437661
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x43766a
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x437746
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x437736
cmp al, 0xd
je 0x43769c
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x437728
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4376b6
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4376b1
add dword [ebp - 8], 2
jmp 0x43770a
mov dword [ebp - 8], eax
jmp 0x437724
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4376de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x437724
cmp dword [ebp - 0x10], 0
je 0x437724
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4376ff
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x43770a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x437727
cmp ebx, dword [ebp + 0xc]
jne 0x43770f
cmp byte [ebp - 1], 0xa
jne 0x43770f
mov byte [ebx], 0xa
jmp 0x437727
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00435a54
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x437728
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x437680
jmp 0x437746
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x437746
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x437765
and dword [0x4424c8], 0
mov dword [0x4424c4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret