joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e940
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x1003e078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x80
lea eax, [ebp - 0x104]
mov dword [ebp - 0x18c], edx
xorps xmm0, xmm0
mov dword [ebp - 0x190], ecx
push 0
push eax
mov dword [ebp - 0x1b0], 0
movups xmmword [ebp - 0x1ac], xmm0
call fcn.100162c0
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.100162c0
push 0x80
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.100162c0
add esp, 0x24
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push dword [ebp - 0x188]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x84]
push str.Audit_share_message_sem_d.semaphore
push eax
call esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x104]
push str.Audit_share_message_sem_d
push eax
call esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push str.AuditAccessEvent_d
push eax
call esi
add esp, 0x24
lea eax, [ebp - 0x84]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov dword [ebp - 0x198], esi
test esi, esi
je 0x1000eb27
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x104]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x19c], eax
test eax, eax
je 0x1000eb1d
push ebx
push 0xa00000
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x1000eb14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1ac], eax
lea edi, [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1a8], 1
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x194], eax
test eax, eax
jle 0x1000eabc
mov ecx, eax
nop dword [eax]
mov eax, dword [edi]
add edi, 4
add edi, eax
sub ecx, 1
jne 0x1000eab0
mov esi, dword [ebp - 0x18c]
movups xmm0, xmmword [ebp - 0x1b0]
lea eax, [esi*2 + 0x16]
add esi, esi
mov dword [edi], eax
movups xmmword [edi + 4], xmm0
push esi
push dword [ebp - 0x190]
mov dword [edi + 0x14], 0x14
add edi, 0x18
push edi
call fcn.10015d40
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x194]
inc eax
push ebx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0x198]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x19c]
call edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call edi
lea eax, [ebp - 0x184]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x1000eb48
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10012f55
mov esp, ebp
pop ebp
ret
Function at 0x1000edd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push str.IsWow64Process
push str.kernel32
mov edi, edx
mov dword [ebp - 4], 0x80000002
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000ee12
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x201
mov eax, 1
cmovne eax, ecx
push eax
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000ee71
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x5000
push eax
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1000ee6f
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100103a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10010550
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1001046d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1003e064]
jb 0x100103ea
mov eax, dword [ebp - 4]
cmp eax, dword [0x1003e068]
ja 0x100103ea
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100103ba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100162c0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10010410
jmp 0x1001046d
cmp dword [ebp - 0x14], 0x10000
jne 0x10010453
cmp dword [ebp - 0x18], 0x10000
jb 0x10010453
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10010446
mov eax, dword [ebp - 8]
jmp 0x1001046f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10010468
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10010550
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100103ba
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10010480
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10010580
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10010545
mov edx, dword [ebp - 4]
cmp edx, dword [0x1003e064]
jb 0x100104c5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1003e068]
ja 0x100104c5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10010495
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100162c0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100104eb
jmp 0x10010545
cmp dword [ebp - 0x14], 0x10000
jne 0x1001052e
cmp dword [ebp - 0x18], 0x10000
jb 0x1001052e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10010521
mov eax, dword [ebp - 8]
jmp 0x10010547
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10010540
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10010580
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10010495
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100105b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100109a0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1003f158], 0
jne 0x100105ed
cmp dword [0x1003f154], 0
je 0x100105ed
mov eax, dword [0x1003f154]
mov dword [0x1003f158], eax
cmp dword [0x1003f158], 0
je 0x1001066a
mov ecx, dword [0x1003f158]
cmp dword [ecx + 8], 0
je 0x1001066a
mov edx, dword [0x1003f158]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1001066a
mov ecx, dword [0x1003f158]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1001066a
mov eax, dword [0x1003f158]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10010639
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10010640
xor eax, eax
jmp 0x10010789
mov ecx, dword [0x1003f158]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.100162c0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10010789
mov edx, dword [0x1003f154]
mov dword [0x1003f158], edx
jmp 0x10010686
mov eax, dword [0x1003f158]
mov ecx, dword [eax + 4]
mov dword [0x1003f158], ecx
cmp dword [0x1003f158], 0
je 0x100106c6
cmp dword [0x1003f158], 0
je 0x100106c4
mov edx, dword [0x1003f158]
cmp dword [edx + 8], 0
je 0x100106c4
mov eax, dword [0x1003f158]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100106c4
mov edx, dword [0x1003f158]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100106c4
jmp 0x1001061e
jmp 0x10010678
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10010790
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10010787
mov eax, dword [ebp - 0x18]
mov dword [0x1003f158], eax
mov ecx, dword [0x1003f158]
mov dword [ecx], 0x52727464
mov edx, dword [0x1003f158]
mov dword [edx + 8], 0
mov eax, dword [0x1003f158]
mov ecx, dword [0x1003f154]
mov dword [eax + 4], ecx
mov edx, dword [0x1003f158]
mov dword [0x1003f154], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1003f158]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10010757
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10010777
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1001074e
mov eax, dword [0x1003f158]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1001061e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100aec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1002470
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100af18
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x10024ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100af0b
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100af1a
xor eax, eax
pop esi
leave
ret 4
Function at 0x451105
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004512b5
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x451203
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4511a6
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4511e9
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4511bd
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4511d8
test al, 0x40
je 0x4511cf
mov ecx, dword [edi + 0x20]
jmp 0x4511d6
test al, 0x80
je 0x4511e9
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4511e9
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x451175
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4038f9
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 0x40391a
jl 0x403911
test edi, edi
jne 0x40391a
xor eax, eax
xor edx, edx
jmp 0x4039db
cmp dword [ebx + 0x38], 0
je 0x40392f
push eax
push edi
push dword [ebp + 8]
call fcn.004039e1
jmp 0x4039db
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403976
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x403976
cmp eax, edi
jb 0x403950
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405ca0
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 0x40397c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4039d0
mov ecx, ebx
call fcn.00402fe4
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4039bb
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00409f9e
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 0x4039d0
jmp 0x40398e
test edx, edx
je 0x4039d0
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00409f9e
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 0x405485
Capabilities:
Parse pe header

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

Function at 0x410233
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420330
push 0x420328
push str.FlsAlloc
push 0x1f
call fcn.0041009e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410267
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d140]
call esi
jmp 0x41026d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4102b1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420340
push 0x420338
push str.FlsGetValue
push 0x21
call fcn.0041009e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4102e8
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4102f0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420348
push 0x420340
push str.FlsSetValue
push 0x22
call fcn.0041009e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41032a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x411c1f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004055f0
mov eax, dword [0x427014]
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.00410866
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x411c61
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x411dbd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c2d0
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 + 0x428900]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00412c1c
mov ecx, dword [esi*4 + 0x428900]
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 0x411db6
cmp eax, dword [ecx + edi + 0x24]
jne 0x411db6
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 0x411db6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412c1c
add esp, 0x14
test edx, edx
jl 0x411db6
jg 0x411d2c
test eax, eax
jb 0x411db6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x411db6
jl 0x411d46
cmp dword [ebp - 0x1008], eax
ja 0x411db6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x411d64
test ebx, ebx
je 0x411d9d
cmp ecx, edi
jae 0x411d9d
mov al, byte [ecx]
cmp al, 0xd
jne 0x411d7e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x411d8a
cmp byte [ecx + 1], 0xa
jne 0x411d8a
inc ecx
jmp 0x411d8a
movzx eax, al
movsx eax, byte [eax + 0x427288]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x411d64
cmp edx, ebx
jne 0x411d64
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411dbb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040485a
leave
ret
Function at 0x4120b4
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 + 0x428900]
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 0x4120f4
cmp byte [ebx], 0xa
jne 0x4120f4
or byte [edi + eax + 0x28], 4
jmp 0x4120f9
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 0x4121f8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4121db
inc eax
cmp dl, 0xd
je 0x412125
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41214b
cmp eax, ecx
jae 0x412159
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 0x41210d
jmp 0x4121f8
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 0x4121d6
cmp dword [ebp - 0x10], 0
je 0x4121d6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x428900]
test byte [eax + edi + 0x28], 0x48
je 0x4121b0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41219b
mov byte [esi], dl
jmp 0x4121ac
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x428900]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4121f8
cmp byte [ebp - 1], 0xa
jne 0x4121bf
cmp esi, ebx
jne 0x4121bf
mov byte [esi], 0xa
jmp 0x4121f7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00412c3a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4121f8
mov byte [esi], 0xd
jmp 0x4121f7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x428900]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4121f5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4121f8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x412201
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 + 0x428900]
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 0x412247
cmp word [ebx], dx
jne 0x412247
or byte [eax + edi + 0x28], 4
jmp 0x41224c
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 0x4123af
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 0x41238f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41228d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4122c3
cmp eax, edx
jae 0x4122d1
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 0x412268
jmp 0x4123af
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 0x41238a
cmp dword [ebp - 0x18], 0
je 0x41238a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x428900]
test byte [eax + edi + 0x28], 0x48
je 0x412360
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 0x412324
mov word [esi], cx
jmp 0x41235b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x428900]
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 + 0x428900]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x428900]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4123af
pop eax
cmp word [ebp - 4], ax
jne 0x412370
cmp esi, ebx
jne 0x412370
mov word [esi], ax
jmp 0x4123ac
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00412c3a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4123af
push 0xd
pop eax
jmp 0x41236b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x428900]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4123a9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4123af
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 0x416016
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 0x4160b3
push ebx
push esi
call fcn.00415fdf
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.00414d10
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416060
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4160b2
push edi
push eax
call fcn.00412e1b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416080
call fcn.0040eb62
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4160b1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00414d10
add esp, 0x20
test eax, eax
jne 0x41609f
push edi
call fcn.0040eb62
jmp 0x4160a7
push ebx
call fcn.0040eb62
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 0x4186e0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040fab1
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 0x41874f
cmp esi, dword [ebp - 4]
je 0x41874a
cmp dword [ebp + 0xc], 0
je 0x41874a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x418727
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00418232
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x418751
xor eax, eax
inc eax
jmp 0x418751
xor eax, eax
pop edi
pop esi
leave
ret