joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4180d0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x54c40b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
push 0x9c
call fcn.00450beb
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x418142
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
call fcn.00417af0
jmp 0x418144
xor eax, eax
push eax
push 0
push 0x417d70
call fcn.005245a5
add esp, 0xc
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x418430
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x54c40b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
push 0x5c
call fcn.00450beb
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x41848b
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
call fcn.00417c50
jmp 0x41848d
xor eax, eax
push eax
push 0
push 0x418180
call fcn.005245a5
add esp, 0xc
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x418810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54e163
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
mov dword [esp + 0x14], edi
xor edx, edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], edi
mov word [esi + 0x20], dx
mov byte [esp + 0x14], 1
push 4
mov dword [esi + 0x5c], edi
call fcn.00450beb
add esp, 4
cmp eax, edi
je 0x418873
mov dword [eax], edi
jmp 0x418875
xor eax, eax
push 0xc
mov dword [esi + 0x60], eax
call fcn.00450beb
add esp, 4
cmp eax, edi
je 0x418890
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax], edi
jmp 0x418892
xor eax, eax
xor edx, edx
mov ecx, esi
mov dword [esi + 0x64], eax
mov dword [esi + 0x58], edi
call fcn.00421a00
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x41caa0
Capabilities:
Set registry value

Disassembly:
cmp dword [eax + 0x18], 8
mov edx, dword [eax + 0x14]
jb 0x41caae
mov eax, dword [eax + 4]
jmp 0x41cab1
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x41cabc
mov ecx, dword [ecx + 4]
jmp 0x41cabf
add ecx, 4
lea edx, [edx + edx + 2]
push edx
push eax
mov eax, dword [esp + 0xc]
push 1
push 0
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41cae7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
ret 4
mov al, 1
ret 4

Function at 0x41caf0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x54aae2
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.00527b90
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0x1010], eax
push edi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0x101c]
mov dword fs:[0], eax
mov dword [esp + 8], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov dword [esp + 0x10], esi
mov edi, ecx
mov word [esi + 4], ax
push 0x1000
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x102c], eax
push ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0x1000
call fcn.00523d50
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x41cb83
mov edi, dword [edi + 4]
jmp 0x41cb86
add edi, 4
lea edx, [esp + 0xc]
push edx
mov edx, dword [ebx + 4]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cbb0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0040c5e0
mov eax, esi
mov ecx, dword [esp + 0x101c]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.00523c2c
add esp, 0x1020
ret
Function at 0x41cc00
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x54b85b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0x224], eax
push ebp
push esi
push edi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24c]
xor edi, edi
xor esi, esi
push 0x200
lea eax, [esp + 0x38]
push edi
push eax
mov dword [esp + 0x20], 0x200
call fcn.00523d50
mov eax, dword [ebp + 4]
add esp, 0xc
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
jne 0x41cce9
xor ecx, ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41cc97
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x20]
call fcn.0040c5e0
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
mov dword [esp + 0x248], edi
call fcn.00408fd0
mov dword [esp + 0x244], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x41ccf0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00450c25
add esp, 4
jmp 0x41ccf0
cmp eax, 0x103
je 0x41ccfd
inc esi
cmp esi, 0x400
jl 0x41cc45
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00523c2c
add esp, 0x238
ret 4
Function at 0x41ce70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0x10c], eax
test byte [0x5b8eb4], 1
mov eax, dword [esp + 0x11c]
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jne 0x41ced8
or dword [0x5b8eb4], 1
push 0x54f7e0
mov dword [0x5b8eb0], 0xf
mov dword [0x5b8eac], 0
mov byte [0x5b8e9c], 0
call fcn.0052517c
add esp, 4
cmp dword [0x5b8eac], 0
jne 0x41cf3a
push 0x104
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.00523d50
add esp, 0xc
push 0
push 0x21
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cf10
sub eax, edx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x5b8e98
call fcn.0040bfb0
push 0x15
push str.BaasClientCookie.txt
mov eax, 0x5b8e98
call fcn.0040e2b0
call fcn.0048c850
push str.Content_Type:application_x_www_form_urlencoded_charsetUTF_8
push 0
mov esi, eax
call fcn.0048f710
mov ebx, eax
push ebx
push 0x2727
push esi
call fcn.0048c8e0
push 1
push 0x2f
push esi
call fcn.0048c8e0
push edi
push 0x2712
push esi
call fcn.0048c8e0
push ebp
push 0x271f
push esi
call fcn.0048c8e0
mov edx, dword [esp + 0x160]
push edx
push 0x3c
push esi
call fcn.0048c8e0
add esp, 0x44
cmp dword [esp + 0x130], 0
je 0x41cfa7
push 1
push 0x2a
push esi
call fcn.0048c8e0
add esp, 0xc
mov edi, dword [esp + 0x10]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cfb0
sub eax, edx
je 0x41cfc3
push edi
push 0x2726
jmp 0x41d03d
mov eax, dword [0x5b8e9c]
mov edi, 0x10
cmp dword [0x5b8eb0], edi
jae 0x41cfda
mov eax, 0x5b8e9c
push 0
push eax
call fcn.0052abf1
add esp, 8
test eax, eax
je 0x41d004
mov eax, dword [0x5b8e9c]
cmp dword [0x5b8eb0], edi
jae 0x41cffb
mov eax, 0x5b8e9c
call fcn.0041e040
test eax, eax
je 0x41d046
mov eax, dword [0x5b8e9c]
cmp dword [0x5b8eb0], edi
jae 0x41d016
mov eax, 0x5b8e9c
push eax
push 0x2762
push esi
call fcn.0048c8e0
mov eax, dword [0x5b8e9c]
add esp, 0xc
cmp dword [0x5b8eb0], edi
jae 0x41d037
mov eax, 0x5b8e9c
push eax
push 0x272f
push esi
call fcn.0048c8e0
add esp, 0xc
push 0
push 0x4e2c
push esi
call fcn.0048c8e0
push 0x41ce40
push 0x4e2b
push esi
call fcn.0048c8e0
mov eax, dword [esp + 0x2c]
push eax
push 0x2711
push esi
call fcn.0048c8e0
push 1
push 0x63
push esi
call fcn.0048c8e0
push esi
call fcn.0048c910
push esi
mov edi, eax
call fcn.0048c9c0
push ebx
call fcn.0048f770
mov ecx, dword [esp + 0x158]
add esp, 0x3c
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00523c2c
add esp, 0x110
ret
Function at 0x41d0b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x11c
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0x118], eax
test byte [0x5b8e94], 1
mov eax, dword [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x128]
push esi
mov esi, dword [esp + 0x128]
push edi
mov edi, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jne 0x41d11e
or dword [0x5b8e94], 1
push 0x54f810
mov dword [0x5b8e90], 0xf
mov dword [0x5b8e8c], 0
mov byte [0x5b8e7c], 0
call fcn.0052517c
add esp, 4
xor eax, eax
push 3
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
call fcn.0048c7d0
push 0x11
push esi
push 0xa
push str.fileKey
push 1
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00490a40
add esp, 0x20
call fcn.0048c850
mov esi, eax
test esi, esi
je 0x41d2ee
push edi
push 0x2712
push esi
call fcn.0048c8e0
mov ecx, dword [esp + 0x18]
push ecx
push 0x2728
push esi
call fcn.0048c8e0
push 0x41ce40
push 0x4e2b
push esi
call fcn.0048c8e0
push ebp
push 0x2711
push esi
call fcn.0048c8e0
mov eax, ebx
add esp, 0x30
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d1a0
sub eax, edx
je 0x41d1b6
push ebx
push 0x2726
jmp 0x41d258
cmp dword [0x5b8e8c], 0
jne 0x41d21a
push 0x104
lea edx, [esp + 0x24]
push 0
push edx
call fcn.00523d50
add esp, 0xc
push 0
push 0x21
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x20]
lea edx, [eax + 1]
jmp 0x41d1f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d1f0
sub eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x5b8e78
call fcn.0040bfb0
push 0x15
push str.BaasClientCookie.txt
mov eax, 0x5b8e78
call fcn.0040e2b0
mov eax, dword [0x5b8e7c]
mov edi, 0x10
cmp dword [0x5b8e90], edi
jae 0x41d231
mov eax, 0x5b8e7c
push eax
push 0x2762
push esi
call fcn.0048c8e0
mov eax, dword [0x5b8e7c]
add esp, 0xc
cmp dword [0x5b8e90], edi
jae 0x41d252
mov eax, 0x5b8e7c
push eax
push 0x272f
push esi
call fcn.0048c8e0
mov edi, dword [esp + 0x1c]
add esp, 0xc
test edi, edi
je 0x41d292
push 0
push 0x2b
push esi
call fcn.0048c8e0
push edi
push 0x4e58
push esi
call fcn.0048c8e0
mov edx, dword [esp + 0x2c]
push edx
push 0x2749
push esi
call fcn.0048c8e0
add esp, 0x24
push esi
call fcn.0048c910
mov edi, eax
add esp, 4
test edi, edi
je 0x41d2c1
push edi
call fcn.0048f7b0
add esp, 4
push eax
push str.curl_easy_perform___failed:__s_n
call fcn.0052a9b3
add eax, 0x40
push eax
call fcn.0052ac6d
add esp, 0xc
push esi
call fcn.0048c9c0
mov eax, dword [esp + 0x10]
push eax
call fcn.00490cb0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00523c2c
add esp, 0x11c
ret
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00523c2c
add esp, 0x11c
ret
Function at 0x41daf0
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x54cc26
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 0x30]
push eax
call fcn.0041e0c0
lea ecx, [esi + 0x4c]
push ecx
mov dword [esp + 0x18], 0
call fcn.0041e1f0
lea edx, [esi + 0x68]
push edx
mov byte [esp + 0x18], 1
call fcn.0041bcd0
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
call edi
lea eax, [esi + 0x18]
push eax
call edi
push esi
push 0
push 0x41d310
call fcn.005245a5
push esi
push 0
push 0x41ddb0
call fcn.005245a5
add esp, 0x18
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x41db80
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x54cbf1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea eax, [esi + 0x30]
push eax
call fcn.0041e0c0
lea ecx, [esi + 0x4c]
xor ebp, ebp
push ecx
mov dword [esp + 0x24], ebp
call fcn.0041e1f0
lea edi, [esi + 0x68]
push edi
mov byte [esp + 0x24], 1
call fcn.0041bcd0
mov byte [esp + 0x20], 2
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
call ebx
lea edx, [esi + 0x18]
push edx
call ebx
push esi
push ebp
push 0x41d310
call fcn.005245a5
add esp, 0xc
push esi
push ebp
push 0x41ddb0
call fcn.005245a5
mov ebx, dword [esp + 0x38]
add esp, 0xc
cmp dword [ebx], ebp
je 0x41dc23
lea esp, [esp]
call fcn.0041e290
mov eax, dword [esp + 0x2c]
inc ebp
cmp dword [eax + ebp*4], 0
lea ebx, [eax + ebp*4]
jne 0x41dc10
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x420330
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.005299aa
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x4204a9
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, esp
jb 0x420383
mov eax, dword [esi + 0x40]
jmp 0x420386
lea eax, [esi + 0x40]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x2c], eax
call fcn.0041eb70
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
test ebx, ebx
je 0x420444
xor edx, edx
dec ebx
cmp byte [esp + 0x13], dl
je 0x4203c8
cmp byte [edi], dl
jmp 0x4203cc
cmp word [edi], 0
sete dl
test edx, edx
je 0x4203f6
test eax, eax
je 0x4203ef
cmp edi, eax
je 0x4203ef
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.00528350
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebp
add edi, ecx
test ebx, ebx
jne 0x4203bb
test eax, eax
je 0x420419
cmp edi, eax
je 0x420419
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.00528350
add esp, 0xc
test ebp, ebp
je 0x420444
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.0041eb70
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0x42049b
test byte [esi + 4], 0x80
je 0x42049b
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x420476
jmp 0x420460
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + esi*2 - 2]
dec esi
rol ax, 8
mov word [ecx + esi*2], ax
test esi, esi
jne 0x420460
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x28]
push eax
call fcn.0041eb70
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.0041fd70
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x4209b0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebp, ebp
jne 0x4209cc
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x420a46
test edx, edx
jne 0x420a05
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00450c1a
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call fcn.00524660
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x420a22
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x420a10
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.0041eb70
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.0052a334
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x420a6b
push edi
call fcn.00450c25
add esp, 4
test bl, bl
je 0x420aae
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, esp
jb 0x420a8b
mov eax, dword [esi + 0x40]
jmp 0x420a8e
lea eax, [esi + 0x40]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.0041eb70
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call fcn.0041fd70
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x421cf0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x54a479
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x18], esi
lea edi, [ebp + 4]
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], esi
mov dword [esp + 0x1c], ebp
mov word [edi], ax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], 1
mov ebx, eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x421d50
sub eax, edx
mov esi, dword [ebp + 0x14]
sar eax, 1
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [ecx + eax + 7]
cmp esi, eax
ja 0x421da1
cmp dword [ebp + 0x18], eax
je 0x421da1
push 1
push eax
mov ecx, ebp
call fcn.0040c7a0
test al, al
je 0x421da1
cmp dword [ebp + 0x18], 8
mov dword [ebp + 0x14], esi
jb 0x421d9b
mov edi, dword [edi]
xor ecx, ecx
mov word [edi + esi*2], cx
movzx eax, word [ebx]
test ax, ax
je 0x421ebb
mov esi, dword [esp + 0x38]
and esi, 0x100
mov dword [esp + 0x14], esi
test esi, esi
je 0x421dd8
lea edx, [eax - 0x22]
cmp dx, 0x1c
ja 0x421ea1
movzx ecx, ax
movsx edi, byte [ecx + 0x58edee]
jmp 0x421def
lea edx, [eax - 0x26]
cmp dx, 0x18
ja 0x421ea1
movzx ecx, ax
movsx edi, byte [ecx + 0x58ee0a]
test edi, edi
je 0x421ea1
test byte [esp + 0x38], 8
je 0x421e77
cmp ax, 0x26
jne 0x421e77
movzx eax, word [ebx + 2]
lea esi, [ebx + 2]
lea edx, [eax - 0x23]
cmp dx, 0x57
ja 0x421e22
movzx ecx, ax
movsx ecx, byte [ecx + 0x58ee2d]
test ecx, ecx
jne 0x421e28
cmp ax, 0x7f
jbe 0x421e77
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x3b
je 0x421e5f
lea edx, [eax - 0x2d]
cmp dx, 0x4d
ja 0x421e4c
movzx ecx, ax
movsx ecx, byte [ecx + 0x58ee83]
test ecx, ecx
jne 0x421e52
cmp ax, 0x7f
jbe 0x421e77
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x3b
jne 0x421e35
mov eax, esi
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
mov ecx, ebp
call fcn.0040c4c0
mov ebx, esi
mov esi, dword [esp + 0x14]
jmp 0x421eab
mov edx, dword [edi*4 + 0x5b2b14]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421e83
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebp
call fcn.0040c4c0
mov esi, dword [esp + 0x14]
jmp 0x421eab
push 1
push ebx
mov ecx, ebp
call fcn.0040c4c0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x421dbb
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x424830
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424866
mov eax, dword [esp + 0x10]
test eax, eax
je 0x424861
mov edx, dword [esp + 0xc]
mov dword [eax], edx
xor eax, eax
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42487a
and eax, 0xffff
or eax, 0x80070000
ret 0x10

Function at 0x4248e0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 8]
sub esp, 8
lea eax, [esp]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x424911
mov eax, dword [esp + 0x10]
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
add esp, 8
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x424925
and eax, 0xffff
or eax, 0x80070000
add esp, 8
ret 8

Function at 0x424fa0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x425038
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x425031
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov ecx, esi
add ecx, ebp
mov eax, edi
adc eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x14]
ja 0x425031
jb 0x424ffb
cmp ecx, dword [esp + 0x10]
ja 0x425031
push 0
push 0
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x425031
push 0x28
call fcn.00450beb
add esp, 4
test eax, eax
je 0x425038
mov edx, dword [esp + 0x2c]
push edx
push ebp
push edi
push esi
mov edx, ebx
call fcn.00424f50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x425050
Capabilities:
Read file on windows

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [esi + 0x24]
mov ebp, dword [esi + 0x20]
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [esi + 0x14]
cmp edx, edi
jb 0x425083
ja 0x42506d
cmp ebp, eax
jb 0x425083
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42507b
mov dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
push ebx
mov ebx, dword [esp + 0x1c]
xor eax, eax
mov ecx, ebx
add ecx, ebp
adc eax, edx
cmp eax, edi
jb 0x4250a0
ja 0x42509b
cmp ecx, dword [esi + 0x10]
jbe 0x4250a0
mov ebx, dword [esi + 0x10]
sub ebx, ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop ebx
test eax, eax
je 0x4250d9
mov eax, dword [esp + 0x10]
add dword [esi + 0x20], eax
mov ecx, dword [esp + 0x1c]
adc dword [esi + 0x24], 0
test ecx, ecx
je 0x4250d1
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4250ed
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebp
ret 0x10