joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10b3a77
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10b3acb
call fcn.01091f1e
push eax
push 0x19a01c0
mov dword [ebp - 4], eax
call fcn.0108c503
jmp 0x10b3b62
mov eax, dword [ebp - 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push ebx
call esi
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10b3af7
mov eax, 0x8007000e
push eax
push 0x1a301c0
mov dword [ebp - 4], eax
call fcn.0108c503
jmp 0x10b3b53
push dword [ebp - 0xc]
push ebx
call esi
mov esi, eax
cmp esi, ebx
jne 0x10b3b10
mov eax, 0x8007000e
push eax
push 0x1ac01c0
jmp 0x10b3b37
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10b3b41
call fcn.01091f1e
push eax
push 0x1b901c0
mov dword [ebp - 4], eax
call fcn.0108c503
jmp 0x10b3b48
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor esi, esi
cmp esi, ebx
je 0x10b3b53
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
cmp dword [ebp - 0x10], ebx
je 0x10b3b62
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc

Function at 0x10b86f0
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x1000
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x10b87b2
push edi
lea ecx, [ebp - 4]
push ecx
push 0xa
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10b879e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push 1
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10b879d
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10b8770
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10b879d
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push eax
push 1
push dword [ebp - 4]
call esi
test eax, eax
je 0x10b879d
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10b879d
push dword [ebp - 4]
call edi
mov dword [ebp - 4], ebx
pop esi
push dword [ebp - 0xc]
call edi
pop edi
cmp dword [ebp - 8], ebx
je 0x10b87b2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8
Function at 0x10b90a6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x10b90bb
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x10b90da
test ecx, ecx
jne 0x10b90e8
test edx, edx
jne 0x10b90e8
mov dword [ebp - 8], edi
jmp 0x10b9152
cmp eax, 0xffffffff
jne 0x10b90e8
mov dword [ebp - 8], 0xfffffffe
jmp 0x10b9152
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x10b9152
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x10b9119
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x10b9138
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x10b91f5
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
mov dword [ebp - 4], eax
cmp eax, ecx
jbe 0x10b9177
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x10b9181
xor eax, eax
jmp 0x10b91b6
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x10b91a0
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.010ba1e6
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x10b91e1
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x10b91f5
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x10b90b8
pop edi
pop ebx
leave
ret
Function at 0x10bf13e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10d0640]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x10d3eb8], edi
jne 0x10bf25a
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x10bf1a5
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x10d3eb8], edi
pop esi
je 0x10bf22d
dec eax
jne 0x10bf25a
cmp dword [ebp - 0x11c], 5
jne 0x10bf21a
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x10bf20e
dec eax
je 0x10bf1fb
dec eax
je 0x10bf1e1
mov dword [0x10d3eb8], 0x14
jmp 0x10bf25a
cmp word [ebp - 0xc], 1
jb 0x10bf1f2
mov dword [0x10d3eb8], 0x10
or dword [0x10d3eb8], 4
jmp 0x10bf25a
cmp word [ebp - 0xc], 2
jb 0x10bf1f2
mov dword [0x10d3eb8], 8
jmp 0x10bf1f2
mov dword [0x10d3eb8], 4
jmp 0x10bf25a
cmp dword [ebp - 0x11c], 4
ja 0x10bf26c
mov dword [0x10d3eb8], 2
cmp dword [ebp - 0x11c], 4
jne 0x10bf25a
cmp dword [ebp - 0x118], edi
je 0x10bf250
cmp dword [ebp - 0x118], 0xa
je 0x10bf250
cmp dword [ebp - 0x118], 0x5a
jne 0x10bf25a
mov dword [0x10d3eb8], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10d3eb8]
xor ecx, ebp
pop edi
call fcn.01077d0b
leave
ret
mov dword [0x10d3eb8], 0x20
jmp 0x10bf25a

Function at 0x10bf27d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10d0640]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10bf2d1
push 3
lea eax, [ebp - 0x44]
push 0x1027358
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01077d0b
leave
ret
Function at 0x10bf2e6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10d0640]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x10d3ebc]
jne 0x10bf381
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x1027288
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10bf380
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1027340
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x10bf380
push 3
push dword [esi*8 + 0x10270d8]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x10bf372
inc esi
cmp esi, 0x1c
jb 0x10bf351
jmp 0x10bf380
mov ax, word [esi*8 + 0x10270dc]
mov word [0x10d3ebc], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x10d3ebc]
xor ecx, ebp
call fcn.01077d0b
leave
ret
Function at 0x4016d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x401e10
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov word [ebp - 0x3a], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x30]
jae 0x40185f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x44]
add ecx, eax
mov dword [ebp - 0x10], 0xffffffff
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x68], ecx
call fcn.00402570
sub esp, 4
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], 0x235
call fcn.00401430
mov dword [ebp - 0x64], eax
jmp 0x4017aa
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp + 0xc]
jne 0x401824
mov eax, esp
mov dword [eax + 4], str.QwruxAA
mov dword [eax], 0x49b430
call fcn.00402020
mov dword [ebp - 0x6c], eax
jmp 0x4017d2
mov ecx, dword [ebp - 0x6c]
mov eax, esp
mov dword [eax], 0x402520
call fcn.00402500
sub esp, 4
jmp 0x4017ea
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x40]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x3a], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x3a]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x60], 2
jmp 0x401834
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x5c]
call fcn.00402630
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x401851
jmp 0x40184c
jmp 0x40185f
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
jmp 0x401753
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4018a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x49b070], eax
pop esi
pop edi
pop ebp
ret
Function at 0x416a8e
Capabilities:
Parse pe header

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

Function at 0x42683d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d398
push 0x43d390
push str.FlsAlloc
push 0x1e
call fcn.004266aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426871
push dword [ebp + 8]
mov ecx, esi
call dword [0x43816c]
call esi
jmp 0x426877
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4268bb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d3a8
push 0x43d3a0
push str.FlsGetValue
push 0x20
call fcn.004266aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4268f2
push dword [ebp + 8]
mov ecx, esi
call dword [0x43816c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x429b42
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004297e4

Function at 0x429b4d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00429973

Function at 0x429bb4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x49bdf0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x429bf4
cmp byte [ebx], 0xa
jne 0x429bf4
or byte [eax + edi + 0x28], 4
jmp 0x429bf9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x429cf7
mov al, byte [edx]
cmp al, 0x1a
je 0x429cd9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x429c28
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x429c4d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x429c57
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x429c0a
jmp 0x429cf7
push 0
lea eax, [ebp - 0xc]
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 0x429cd4
cmp dword [ebp - 0xc], 0
je 0x429cd4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x49bdf0]
test byte [eax + edi + 0x28], 0x48
je 0x429cae
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x429c99
mov byte [esi], dl
jmp 0x429caa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x49bdf0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x429cf7
cmp byte [ebp - 1], 0xa
jne 0x429cbd
cmp esi, ebx
jne 0x429cbd
mov byte [esi], 0xa
jmp 0x429cf6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042a734
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x429cf7
mov byte [esi], 0xd
jmp 0x429cf6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x49bdf0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x429cf3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x429cf7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x429d00
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x49bdf0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x429d43
cmp word [esi], dx
jne 0x429d43
or byte [edi + eax + 0x28], 4
jmp 0x429d48
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x429e9b
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x429e7b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x429d8a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x429dc0
cmp eax, edx
jae 0x429dcc
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x429d62
jmp 0x429e9b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x429e77
cmp dword [ebp - 0x14], 0
je 0x429e77
mov eax, dword [ebx*4 + 0x49bdf0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x429e4f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x429e18
mov word [esi], cx
jmp 0x429e4b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x49bdf0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x49bdf0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x49bdf0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x429e9b
pop ebx
cmp word [ebp - 4], bx
jne 0x429e60
cmp esi, dword [ebp + 0xc]
jne 0x429e60
mov word [esi], bx
jmp 0x429e98
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042a734
add esp, 0x10
cmp word [ebp - 4], bx
je 0x429e9b
push 0xd
jmp 0x429e94
mov ecx, dword [ebx*4 + 0x49bdf0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x429e92
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x429e9b
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42ab81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00436c00
mov eax, dword [0x49a180]
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.00427dd2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42abc3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42ad1f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00436c30
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 + 0x49bdf0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042a716
mov ecx, dword [esi*4 + 0x49bdf0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x42ad18
cmp eax, dword [edi + ecx + 0x24]
jne 0x42ad18
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ad18
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042a716
add esp, 0x14
test edx, edx
jl 0x42ad18
jg 0x42ac8e
test eax, eax
jb 0x42ad18
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42ad18
jl 0x42aca8
cmp dword [ebp - 0x1008], eax
ja 0x42ad18
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42acc6
test ebx, ebx
je 0x42acff
cmp ecx, edi
jae 0x42acff
mov al, byte [ecx]
cmp al, 0xd
jne 0x42ace0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42acec
cmp byte [ecx + 1], 0xa
jne 0x42acec
inc ecx
jmp 0x42acec
movzx eax, al
movsx eax, byte [eax + 0x49a5b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42acc6
cmp edx, ebx
jne 0x42acc6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42ad1d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00416ce9
leave
ret
Function at 0x42c399
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 0x42c436
push ebx
push esi
call fcn.0042c362
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.0042c2ab
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42c3e3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42c435
push edi
push eax
call fcn.00426e70
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42c403
call fcn.004263cf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42c434
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042c2ab
add esp, 0x20
test eax, eax
jne 0x42c422
push edi
call fcn.004263cf
jmp 0x42c42a
push ebx
call fcn.004263cf
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