joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422b20
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x33], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3d], 0
mov byte [esp + 0x3e], 0
mov byte [esp + 0x3f], 0
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x422c11
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 2
push edi
call ebp
test eax, eax
jne 0x422baf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x422c10
mov eax, dword [esp + 0xc]
push esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edx
mov esi, eax
push esi
push 2
push edi
call ebp
test eax, eax
je 0x422c04
xor edi, edi
cmp dword [esi], edi
jbe 0x422c04
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebp, [esi + 4]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call ebx
test eax, eax
jne 0x422bfe
add edi, 1
add ebp, 8
cmp edi, dword [esi]
jb 0x422be3
jmp 0x422c03
mov byte [esp + 0x13], 1
pop ebx
test esi, esi
je 0x422c0f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop ebp
mov eax, dword [esp + 0xc]
test eax, eax
pop edi
je 0x422c21
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 3]
xor ecx, esp
call fcn.00440e94
add esp, 0x18
ret

Function at 0x422c40
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
mov ebx, dword [esp + 0xa8]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 1
push 0
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsA
test eax, eax
jne 0x422cf0
push 0x90
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00441070
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x422cd2
cmp dword [esp + 0x10], 6
jne 0x422cd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00440e94
add esp, 0xa0
ret
mov dword [ebx], 0
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00440e94
add esp, 0xa0
ret
mov edx, dword [esp + 8]
push esi
xor eax, eax
test edx, edx
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x490
jbe 0x422d23
lea ecx, [edi + 8]
cmp dword [ecx], 0
je 0x422d19
add eax, 1
add ecx, 0xc
cmp eax, edx
jb 0x422d08
jmp 0x422d23
lea ecx, [eax + eax*2]
mov edx, dword [edi + ecx*4]
mov dword [ebx], edx
xor esi, esi
push edi
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [esp + 0xa8]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00440e94
add esp, 0xa0
ret
Function at 0x4232d0
Capabilities:
Access the windows event log
Get session user name
Get user security identifier

Disassembly:
sub esp, 0x220
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x240]
push ebx
push ebp
mov ebp, dword [esp + 0x244]
push esi
mov esi, dword [esp + 0x23c]
push edi
mov ebx, ecx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
mov edi, 0x101
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x130]
push edx
mov dword [esp + 0x20], edi
lea eax, [esp + 0x1c]
push eax
mov edi, esi
xor esi, esi
push esi
lea ecx, [esp + 0x38]
push ecx
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x42338e
mov edx, dword [esp + 0x10]
push edx
call fcn.0042ff51
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x38]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x42338e
mov edi, esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x248]
mov ecx, dword [esp + 0x244]
push edx
mov edx, dword [esp + 0x240]
push ebp
push eax
mov eax, dword [esp + 0x244]
push ecx
mov ecx, dword [esp + 0x244]
push edi
push edx
mov edx, dword [ebx]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test esi, esi
mov edi, eax
je 0x4233d5
push esi
call fcn.004410ea
add esp, 4
mov ecx, dword [esp + 0x22c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00440e94
add esp, 0x220
ret 0x20

Function at 0x423780
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x462ac8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x47aaac]
mov edx, dword [eax + 0xc]
mov ecx, 0x47aaac
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
push 0x468278
push ecx
mov dword [esp + 0x24], 0
call fcn.00416580
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
add esp, 0xc
push 0
lea edx, [esp + 0x2c]
push edx
push 0
push 1
push 0
push eax
push 0
push ecx
mov ecx, esi
mov dword [esp + 0x48], edi
call fcn.004232d0
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423828
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc
Function at 0x4240a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4638d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4241df
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0042ff51
mov edx, dword [esp + 0x14]
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push ebp
mov dword [esp + 0x20], edx
lea edx, [esp + 0x24]
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4241d6
cmp dword [esp + 0x1c], 7
jne 0x4241d6
mov edi, dword [esp + 0x38]
mov ecx, edi
mov esi, ebp
call fcn.00418150
cmp byte [ebp], 0
je 0x4241b5
lea ebx, [ebx]
push esi
lea ecx, [esp + 0x18]
call fcn.00417f60
lea eax, [esp + 0x14]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.00415d30
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424196
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea edx, [eax + 1]
jmp 0x4241a0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4241a0
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x424150
push ebp
call fcn.004410ea
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
push ebp
call fcn.004410ea
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x424a80
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x140
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x13c], eax
cmp dword [0x47a9b8], 0
jne 0x424d1b
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
lea eax, [esp + 0xb4]
push eax
mov dword [0x47a9b8], 1
mov dword [esp + 0xb8], 0x94
call esi
mov edx, dword [esp + 0xc4]
cmp edx, 2
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0xbc]
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x47a8a4], ecx
mov dword [0x47a8a8], eax
mov edi, 0x9c
jne 0x424bde
cmp ecx, 6
jne 0x424b8b
cmp eax, 2
jne 0x424b32
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], edi
call esi
mov dl, byte [esp + 0xb2]
sub dl, 1
neg dl
sbb edx, edx
add edx, 0x10
mov dword [0x47a9b4], edx
jmp 0x424c32
cmp eax, 1
jne 0x424b5e
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], edi
call esi
mov cl, byte [esp + 0xb2]
sub cl, 1
neg cl
sbb ecx, ecx
add ecx, 0xe
mov dword [0x47a9b4], ecx
jmp 0x424c32
test eax, eax
jne 0x424c28
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], edi
call esi
xor eax, eax
cmp byte [esp + 0xb2], 1
setne al
add eax, 0xb
mov dword [0x47a9b4], eax
jmp 0x424c32
cmp ecx, 5
jne 0x424bcd
cmp eax, 2
jne 0x424bac
push 0x59
call ebp
neg eax
sbb eax, eax
neg eax
add eax, 9
mov dword [0x47a9b4], eax
jmp 0x424c32
cmp eax, 1
jne 0x424bbd
mov dword [0x47a9b4], 8
jmp 0x424c32
test eax, eax
jne 0x424c28
mov dword [0x47a9b4], 7
jmp 0x424c32
cmp ecx, 4
jne 0x424c28
mov dword [0x47a9b4], 6
jmp 0x424c32
cmp edx, 1
jne 0x424c1a
cmp ecx, 4
jne 0x424c28
test eax, eax
jne 0x424bf8
mov dword [0x47a9b4], 2
jmp 0x424c32
cmp eax, 0xa
jne 0x424c09
mov dword [0x47a9b4], 3
jmp 0x424c32
cmp eax, 0x5a
jne 0x424c28
mov dword [0x47a9b4], 4
jmp 0x424c32
test edx, edx
mov dword [0x47a9b4], 1
je 0x424c32
mov dword [0x47a9b4], 0
push 0x1000
call ebp
neg eax
sbb eax, eax
neg eax
cmp dword [0x47a8a4], 5
mov dword [0x47a8a0], eax
jl 0x424d18
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], edi
call esi
test eax, eax
je 0x424d18
mov cx, word [esp + 0xac]
mov eax, dword [0x47a9b4]
sub eax, 7
movzx edx, cx
mov dword [0x47a8ac], edx
je 0x424cb9
sub eax, 1
jne 0x424d18
cmp cx, 1
jae 0x424d18
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlminint
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424d18
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x424d12
cmp cx, 3
jb 0x424d18
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesAtapiParameters
push closesocket
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424d0d
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push str.EnableBigLba
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00440e94
add esp, 0x140
ret
Function at 0x425b30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x463bc5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00416d00
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
mov dword [esp + 0x20], 0
call fcn.00416d00
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
mov byte [esp + 0x24], 1
call fcn.00416d00
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
mov byte [esp + 0x28], 2
call fcn.00416d00
add eax, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
mov byte [esp + 0x2c], 3
call fcn.00416d00
add eax, 0x10
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
sub eax, 0x10
push eax
mov byte [esp + 0x30], 4
call fcn.00416d00
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
sub eax, 0x10
push eax
mov byte [esp + 0x34], 5
call fcn.00416d00
add eax, 0x10
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
sub eax, 0x10
push eax
mov byte [esp + 0x38], 6
call fcn.00416d00
add eax, 0x10
mov dword [esi + 0x1c], eax
mov edi, dword [edi + 0x20]
sub edi, 0x10
push edi
mov byte [esp + 0x3c], 7
call fcn.00416d00
add esp, 0x24
add eax, 0x10
mov dword [esi + 0x20], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x428160
Capabilities:
Check os version
Create process on windows

Disassembly:
sub esp, 0x1fc
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x1f8], eax
mov eax, dword [esp + 0x204]
push esi
mov esi, dword [esp + 0x204]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x10], eax
jne 0x4281a7
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.00440e94
add esp, 0x1fc
ret
push 0x103
lea ecx, [esp + 0x101]
push edi
push ecx
mov byte [esp + 0x108], 0
call fcn.00441070
push 0x104
lea edx, [esp + 0x10c]
push edx
push esi
call fcn.004280c0
push 0x90
lea eax, [esp + 0x88]
push edi
push eax
call fcn.00441070
add esp, 0x24
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x6c], 0x94
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x428210
cmp dword [esp + 0x6c], 6
jne 0x428210
mov esi, 1
push ebx
xor ebx, ebx
cmp esi, edi
mov dword [esp + 0xc], edi
jne 0x428227
lea edx, [esp + 0xc]
push edx
call fcn.00422a60
jmp 0x428231
lea eax, [esp + 0xc]
push eax
call fcn.004229f0
add esp, 4
cmp eax, edi
push ebp
jne 0x42836f
push 0x40
lea ecx, [esp + 0x34]
push edi
push ecx
mov dword [esp + 0x38], 0x44
call fcn.00441070
mov edx, dword [esp + 0x1c]
xor eax, eax
push edx
mov word [esp + 0x6c], 5
mov dword [esp + 0x68], 1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.00422b20
add esp, 0x10
test al, al
jne 0x428291
lea eax, [esp + 0x10]
push eax
call fcn.00422d50
add esp, 4
push str.userenv.dll
mov dword [esp + 0x38], str.Winsta0Default
mov ebx, 0x30
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x4282f2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push ebp
call edi
push str.DestroyEnvironmentBlock
push ebp
mov esi, eax
call edi
test esi, esi
mov edi, eax
je 0x4282f2
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push edx
call esi
test eax, eax
je 0x4282ea
mov ebx, 0x430
jmp 0x4282f2
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x18]
test esi, esi
je 0x42830c
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x428312
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x18]
push 0
push edx
push ebx
push 0
push 0
push 0
lea eax, [esp + 0x124]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ebx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42834c
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x428357
push eax
call esi
test edi, edi
je 0x428362
mov edx, dword [esp + 0x14]
push edx
call edi
test ebp, ebp
je 0x428375
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x428375
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
pop ebp
je 0x428381
push eax
call esi
mov ecx, dword [esp + 0x204]
mov eax, ebx
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00440e94
add esp, 0x1fc
ret
Function at 0x4283e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x463f08
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x70]
xor ebx, ebx
cmp ecx, ebx
je 0x42852e
mov edi, dword [esp + 0x74]
cmp edi, ebx
je 0x42852e
mov eax, dword [esp + 0x78]
cmp eax, 1
mov ebp, eax
mov dword [esp + 0x18], ebx
jb 0x428513
mov esi, dword [0x4780f8]
cmp ebp, esi
jae 0x428440
mov esi, ebp
xor bl, bl
xor al, al
mov edx, esi
sub edx, 1
mov byte [esp + 0x70], al
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bl
je 0x42848b
sub edx, 1
je 0x428472
sub edx, 1
jne 0x4284a0
mov al, byte [edi + 2]
mov dl, al
and dl, 0x3f
shr al, 6
mov byte [esp + 0x17], dl
mov bl, al
mov al, byte [edi + 1]
mov dl, al
and dl, 0xf
add dl, dl
add dl, dl
or bl, dl
shr al, 4
mov byte [esp + 0x16], bl
mov byte [esp + 0x70], al
mov al, byte [edi]
mov bl, byte [esp + 0x16]
mov dl, al
and dl, 3
shl dl, 4
or byte [esp + 0x70], dl
shr al, 2
add edi, esi
sub ebp, esi
sub esi, 1
je 0x4284b4
sub esi, 1
je 0x4284b6
mov dl, byte [esp + 0x17]
jmp 0x4284b8
mov bl, 0x40
mov dl, 0x40
mov esi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx eax, al
movzx eax, byte [eax + esi]
mov byte [ecx], al
mov esi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx eax, byte [esp + 0x70]
movzx eax, byte [eax + esi]
mov byte [ecx + 1], al
mov esi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add ecx, 1
movzx eax, bl
movzx eax, byte [eax + esi]
add ecx, 1
mov byte [ecx], al
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edx, dl
mov dl, byte [edx + eax]
add ecx, 1
mov byte [ecx], dl
mov eax, dword [0x4780fc]
add dword [esp + 0x18], eax
add ecx, 1
cmp ebp, 1
jae 0x428434
mov byte [ecx], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov edx, dword [str.Invalid_parameter]
mov eax, edx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x428550
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00405920
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], ebx
call fcn.00410910
push 0x474b24
lea edx, [esp + 0x3c]
push edx
call fcn.00441455
int3
Function at 0x42a0b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0x3c]
push 0x467b58
push eax
mov dword [esp + 0x1c], edi
call fcn.00442931
mov esi, eax
xor eax, eax
add esp, 8
cmp esi, eax
jne 0x42a11d
cmp edi, eax
je 0x42a108
call fcn.00446108
mov eax, dword [eax]
push eax
call fcn.00446066
add esp, 4
push eax
mov ecx, edi
call fcn.00418010
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00440e94
add esp, 0x20
ret
cmp ebp, eax
je 0x42a12a
mov ecx, dword [ebp]
mov dword [esp + 0x10], ecx
jmp 0x42a12e
mov dword [esp + 0x10], eax
mov ecx, ebx
mov byte [esp + 0x18], al
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
mov byte [esp + 0x2b], al
call fcn.00416b50
push 2
push 0
push esi
call fcn.00444011
push esi
call fcn.00443f1c
push 0
push 0
push esi
mov edi, eax
call fcn.00444011
add esp, 0x1c
test edi, edi
je 0x42a1aa
mov eax, dword [ebx]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or edx, eax
jge 0x42a193
push edi
mov ecx, ebx
call fcn.00416be0
mov ecx, dword [ebx]
push esi
push 1
push edi
push ecx
call fcn.00443d69
add esp, 0x10
push edi
mov ecx, ebx
call fcn.004196e0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42a1c6
push edi
lea edx, [esp + 0x1c]
push edx
push str._s_d_bytes
push eax
call fcn.00416580
add esp, 0x10
push esi
call fcn.0044264a
add esp, 4
test ebp, ebp
je 0x42a1da
mov eax, dword [esp + 0x10]
mov dword [ebp], eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.00440e94
add esp, 0x20
ret
Function at 0x42a1f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
push 0x467ef8
push eax
mov dword [esp + 0x20], edi
mov byte [esp + 0x1b], 1
call fcn.00442931
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x42a260
test ebx, ebx
je 0x42a24b
call fcn.00446108
mov eax, dword [eax]
push eax
call fcn.00446066
add esp, 4
push eax
mov ecx, ebx
call fcn.00418010
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00440e94
add esp, 0x24
ret
test edi, edi
je 0x42a26c
mov ecx, dword [edi]
mov dword [esp + 0x14], ecx
jmp 0x42a274
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], al
mov eax, dword [esi]
mov byte [esp + 0x1c], 0
mov edi, dword [eax - 0xc]
test edi, edi
je 0x42a2df
add eax, 0xfffffff0
push eax
call fcn.00416d00
mov esi, eax
mov edi, dword [esi + 4]
push ebp
add esi, 0x10
push 1
push edi
push esi
call fcn.004427e0
add esp, 0x14
cmp eax, 1
lea eax, [esi - 0x10]
sete byte [esp + 0x13]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42a2df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x42a2f7
push edi
lea ecx, [esp + 0x20]
push ecx
push str._s_d_bytes
push ebx
call fcn.00416580
add esp, 0x10
cmp byte [esp + 0x13], 0
jne 0x42a31a
test ebx, ebx
je 0x42a31a
call fcn.00446108
mov edx, dword [eax]
push edx
call fcn.00446066
add esp, 4
push eax
mov ecx, ebx
call fcn.00418010
push ebp
call fcn.0044264a
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x42a331
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00440e94
add esp, 0x24
ret