joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d9dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x44da28
mov eax, esi
call fcn.0043bd70
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44da28
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x44da28
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x44db67
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x44da68
cmp eax, 0x108
ja 0x44da68
mov eax, esi
call fcn.0043bd70
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44db5e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x44db67
jmp 0x44db5e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x44db47
cmp eax, 0x20a
ja 0x44db47
test byte [esi + 0x50], 0x80
jne 0x44da9a
sub eax, 0x203
je 0x44da97
sub eax, 3
je 0x44da97
sub eax, 3
jne 0x44da9a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x44daae
dec eax
je 0x44dac3
dec eax
je 0x44dae0
dec eax
je 0x44dac3
jmp 0x44dae7
mov ecx, ebx
mov eax, dword [0x47c170]
mov eax, dword [eax]
mov edx, esi
call fcn.004456dc
jmp 0x44db5e
cmp byte [esi + 0x5d], 1
jne 0x44dad9
mov eax, esi
mov si, 0xffed
call fcn.00421e2c
jmp 0x44db67
or word [esi + 0x54], 1
jmp 0x44db5e
and word [esi + 0x54], 0xfffe
jmp 0x44db5e
mov eax, dword [0x47cee0]
cmp byte [eax + 0x20], 0
je 0x44db5e
mov eax, dword [0x47cee0]
cmp dword [eax + 0x1c], 0
je 0x44db5e
mov eax, dword [ebx]
mov edx, dword [0x47cee0]
cmp eax, dword [edx + 0x1c]
jne 0x44db5e
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0043bcb4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00421e2c
jmp 0x44db67
cmp eax, 0xb00b
jne 0x44db5e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0044c308
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450fdc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x450ff8
cmp dword [esi + 4], 0
je 0x451025
test byte [ebx + 0x55], 1
jne 0x451017
mov eax, ebx
call fcn.0044fc34
test eax, eax
jne 0x451017
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x451135
mov edx, esi
mov eax, ebx
call fcn.00450afc
jmp 0x451135
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45112e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00452dac
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0044d910
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00450fdc
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00452dac
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451135
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4575d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47c15c]
cmp byte [eax + 0xc], 0
je 0x45773d
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457736
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47cf34], 0
jne 0x457624
push 0x457744
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x45774c
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47cf34], eax
cmp dword [0x47836c], 0
jne 0x45771f
push 0x45775c
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x47836c], eax
cmp dword [0x47836c], 0
je 0x45771f
push 0x457768
mov eax, dword [0x47836c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47cf38], eax
push 0x457778
mov eax, dword [0x47836c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47cf3c], eax
push 0x45778c
mov eax, dword [0x47836c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47cf40], eax
push 0x4577a4
mov eax, dword [0x47836c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47cf44], eax
push 0x4577bc
mov eax, dword [0x47836c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47cf48], eax
push 0x4577d0
mov eax, dword [0x47836c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47cf4c], eax
push 0x4577e8
mov eax, dword [0x47836c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47cf50], eax
push 0x457800
mov eax, dword [0x47836c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47cf54], eax
push 0x45781c
mov eax, dword [0x47836c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47cf58], eax
push 0x457828
mov eax, dword [0x47836c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47cf5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45773d
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x459d64
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x459d80
call fcn.0045b20c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x459d9c
test bl, 1
je 0x459d9c
call fcn.0045da18
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x459f80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0045ada8
test byte [ebp + 0xd], 0xc0
jne 0x459fa4
mov eax, dword [0x47913c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x459fb1
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x459fde
je 0x459ff0
sub ecx, 0x100
je 0x459ffe
sub ecx, 0x100
je 0x45a005
sub ecx, 0x100
je 0x459ff7
jmp 0x45a00c
sub ecx, 0x600
je 0x45a005
sub ecx, 0x100
je 0x459ff0
jmp 0x45a00c
mov edi, 1
jmp 0x45a011
mov edi, 2
jmp 0x45a011
mov edi, 4
jmp 0x45a011
mov edi, 5
jmp 0x45a011
mov edi, 3
test byte [ebp + 0xd], 1
je 0x45a038
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x478bb4]
test al, 0x80
je 0x45a031
mov ebx, 0x80
jmp 0x45a04a
mov ebx, 1
jmp 0x45a04a
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x45a04a
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x45a05c
je 0x45a065
dec eax
je 0x45a06e
jmp 0x45a077
mov dword [ebp - 4], SysReAllocStringLen
jmp 0x45a086
mov dword [ebp - 4], 0x40000000
jmp 0x45a086
mov dword [ebp - 4], 0xc0000000
jmp 0x45a086
push 1
call fcn.0045b1a0
pop ecx
mov ebx, eax
jmp 0x45a176
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x45a0a2
sub eax, 0x10
je 0x45a0a9
sub eax, 0x10
je 0x45a0b2
sub eax, 0x10
je 0x45a0bb
jmp 0x45a0bb
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x45a0c2
mov dword [ebp - 8], 1
jmp 0x45a0c2
mov dword [ebp - 8], 2
jmp 0x45a0c2
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x45a12f
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x45a124
test byte [ebp + 0xd], 1
je 0x45a11f
mov ebx, 0x50
jmp 0x45a124
mov ebx, 2
push ebx
call fcn.0045b1a0
pop ecx
mov ebx, eax
jmp 0x45a176
mov edi, esi
push edi
call fcn.00459ee4
pop ecx
test eax, eax
je 0x45a143
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x45a14f
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0045aec8
add esp, 8
mov ebx, eax
inc eax
jne 0x45a176
push 4
call fcn.0045b1a0
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0045addc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d9b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x45da12
call fcn.0045d960
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00458be8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00458be8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x45da90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x479f64], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x45db6a
cmp dword [0x479f60], 0
jne 0x45db6a
cmp dword [0x47a144], 0
je 0x45db24
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0045d860
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45db0a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0045d860
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45db0a
lea ebx, [ebp - 0x84]
jmp 0x45db0b
inc ebx
call fcn.0045da4c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x45dba5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x479f68
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00458be8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x479f6b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x45dba5
cmp dword [0x479f60], 0
je 0x45db84
cmp dword [0x479f60], 0xffffffff
je 0x45dba5
push esi
call dword [0x479f60]
pop ecx
mov eax, dword [0x479f64]
test eax, eax
je 0x45dba5
cmp dword [0x479f64], 0xffffffff
je 0x45dba5
cmp byte [eax], 0
je 0x45dba5
push esi
push eax
call fcn.0045d9b0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e33c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x47d7c4], 0
jne 0x45e3bd
cmp dword [0x47d7e4], 0
jne 0x45e36c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x47d7e4], eax
test eax, eax
jne 0x45e36c
push str.GetEnvironmentStrings_failed
call fcn.0045dbbc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x47d7e4]
jmp 0x45e380
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00458be8
pop ecx
mov edi, eax
test eax, eax
jne 0x45e378
lea edi, [ebp + 1]
push edi
call fcn.004584cc
pop ecx
mov ebx, eax
mov dword [0x47d7c8], ebx
test ebx, ebx
jne 0x45e3aa
xor eax, eax
jmp 0x45e480
push edi
mov edx, dword [0x47d7e4]
push edx
push ebx
call fcn.00458a98
add esp, 0xc
jmp 0x45e3dd
xor esi, esi
mov ebx, dword [0x47d7c4]
jmp 0x45e3d7
push eax
call fcn.00458be8
pop ecx
test eax, eax
jne 0x45e3d3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45e3c7
lea ebx, [esi + 4]
push 4
mov dword [0x47d7cc], ebx
inc ebx
push ebx
call fcn.00457fa4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x45e400
xor eax, eax
jmp 0x45e480
cmp dword [0x47d7c4], 0
jne 0x45e431
xor esi, esi
mov ebx, dword [0x47d7c8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x45e422
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00458be8
pop ecx
mov edi, eax
test eax, eax
jne 0x45e418
jmp 0x45e462
xor esi, esi
mov ebx, dword [0x47d7c4]
mov eax, dword [esp]
mov edi, eax
jmp 0x45e45c
push eax
call fcn.00458be8
pop ecx
test eax, eax
je 0x45e451
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x45e455
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45e440
mov eax, dword [0x47d7c4]
test eax, eax
je 0x45e472
push eax
call fcn.004584dc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x47d7c4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x464660
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x46468e
mov eax, ebx
call fcn.00465118
cmp dword [ebx + 0x3c], 0
je 0x464687
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4646ff
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4646f1
cmp dword [ebx + 8], 0
je 0x4646b0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4646c2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4646f1
cmp dword [ebx + 8], 0
je 0x4646a3
cmp eax, 3
je 0x4646d5
dec eax
jne 0x4646a3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4646a3
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4646a3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x46471d
cmp dword [ebx + 0x10], 0xcc
je 0x46471d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00464728
pop ebx
ret
Function at 0x401240
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
xor eax, eax
mov ecx, 0x114
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push 0x103
push edx
shl ecx, 4
push esi
mov dword [esi + 0x434], ecx
mov word [esi + 0x206], 0
call dword [sym.imp.MSVCR71.dll_wcsncpy]
add esp, 0xc
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x401310
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov edx, dword [esi + 0x424]
mov eax, dword [esi + 0x434]
xor ecx, ecx
cmp edx, ecx
ja 0x401363
jb 0x401333
mov ecx, dword [esi + 0x420]
cmp ecx, eax
ja 0x401363
mov edx, dword [esi + 0x428]
push 0
push edx
mov eax, edx
mov edx, dword [esi + 0x42c]
mov cl, 0x20
call fcn.00404c90
push eax
mov eax, dword [esi + 0x418]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x420]
jmp 0x401390
mov edx, dword [esi + 0x428]
push eax
push edx
mov eax, edx
mov edx, dword [esi + 0x42c]
mov cl, 0x20
call fcn.00404c90
push eax
mov eax, dword [esi + 0x418]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x434]
test eax, eax
mov dword [esi + 0x41c], eax
mov dword [esi + 0x430], ecx
je 0x4013dd
mov edx, dword [esi + 0x420]
mov eax, ecx
xor ecx, ecx
sub edx, eax
mov dword [esi + 0x420], edx
sbb dword [esi + 0x424], ecx
mov edx, dword [esi + 0x428]
add edx, eax
adc dword [esi + 0x42c], ecx
mov dword [esi + 0x448], 1
mov dword [esi + 0x428], edx
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x401480
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
push 0x8000080
push 3
push edi
push 1
mov esi, ecx
push 0x80000000
push esi
call dword [sym.imp.SQLUNIRL.dll__CreateFile_28]
cmp eax, 0xffffffff
mov dword [esi + 0x208], eax
jne 0x4014ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esi + 0x20c], eax
push pe_nt_image_headers32
lea eax, [esi + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edx, dword [esi + 0x20c]
movzx ecx, ax
push ecx
push edx
push edi
push 0x1000
call dword [sym.imp.SQLUNIRL.dll__FormatMessage_28]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 8]
push 1
push edi
push edi
push edx
mov ebx, eax
call fcn.00404cc0
xor ecx, ecx
add eax, ebx
adc edx, ecx
mov dword [esi + 0x420], eax
mov eax, edx
cmp eax, edi
mov dword [esi + 0x424], edx
mov dword [esi + 0x438], edi
mov dword [esi + 0x43c], edi
mov dword [esi + 0x440], edi
mov dword [esi + 0x444], edi
mov dword [esi + 0x448], edi
mov ebx, 2
ja 0x40154c
cmp dword [esi + 0x420], edi
jbe 0x401583
mov edx, dword [esi + 0x208]
push edi
push edi
push edi
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x418], eax
je 0x401583
mov ecx, esi
call fcn.00401310
test eax, eax
jne 0x401583
mov ecx, esi
call fcn.004012a0
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x208]
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
lea ecx, [ebp - 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401573
cmp dword [ebp - 0xc], ebx
jne 0x4015e8
mov ax, word [ebp - 4]
cmp al, 0xff
jne 0x4015e8
cmp ah, 0xfe
jne 0x4015e8
mov ecx, dword [esi + 0x440]
mov eax, dword [esi + 0x444]
add ecx, ebx
adc eax, edi
mov dword [esi + 0x444], eax
pop ebx
mov eax, 1
pop edi
mov dword [esi + 0x414], 1
mov dword [esi + 0x440], ecx
mov dword [esi + 0x410], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x208]
push edi
push edi
push edi
push eax
mov dword [esi + 0x414], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop ebx
mov eax, 1
pop edi
mov dword [esi + 0x410], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401620
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
jne 0x401646
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x448], ecx
push esi
push edi
je 0x4017de
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
mov edi, dword [ebx + 0x440]
mov ecx, dword [ebx + 0x430]
cdq
add eax, edi
adc edx, dword [ebx + 0x444]
xor edi, edi
cmp edx, edi
jb 0x401697
ja 0x40167a
cmp eax, ecx
jbe 0x401697
sub ecx, dword [ebx + 0x440]
mov dword [esi], ecx
mov eax, dword [ebx + 0x420]
or eax, dword [ebx + 0x424]
je 0x401697
mov dword [ebp - 8], 1
mov ecx, dword [esi]
xor edi, edi
cmp ecx, edi
je 0x4016e9
mov edx, dword [ebx + 0x440]
mov esi, dword [ebx + 0x41c]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
mov edx, dword [ebx + 0x440]
add edx, ecx
mov ecx, dword [ebx + 0x444]
adc ecx, 0
mov dword [ebx + 0x440], edx
mov dword [ebx + 0x444], ecx
mov edx, dword [eax]
mov dword [ebp - 4], edx
mov esi, eax
xor edi, edi
cmp dword [ebp - 8], 1
jne 0x4017d0
mov eax, dword [ebx + 0x41c]
push eax
mov dword [ebx + 0x438], edi
mov dword [ebx + 0x43c], edi
mov dword [ebx + 0x440], edi
mov dword [ebx + 0x444], edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebx + 0x424], edi
mov dword [ebx + 0x41c], edi
ja 0x40172e
cmp dword [ebx + 0x420], edi
jbe 0x40173d
mov ecx, ebx
call fcn.00401310
test eax, eax
je 0x4017f9
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x430]
sub edx, eax
cmp edx, ecx
jbe 0x401767
add eax, ecx
mov dword [esi], eax
mov eax, dword [ebx + 0x420]
or eax, dword [ebx + 0x424]
je 0x40176c
mov edx, 1
jmp 0x40176e
mov ecx, dword [ebp + 0xc]
mov dword [esi], ecx
xor edx, edx
mov ecx, dword [esi]
mov eax, dword [ebp - 4]
sub ecx, eax
je 0x4017c7
mov esi, dword [ebx + 0x440]
add esi, dword [ebx + 0x41c]
mov edi, dword [ebp + 8]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
mov edi, dword [ebp - 4]
mov esi, dword [ebx + 0x440]
sub ecx, edi
add esi, ecx
mov ecx, dword [ebx + 0x444]
adc ecx, 0
mov dword [ebx + 0x440], esi
mov esi, dword [ebp + 0x10]
mov dword [ebx + 0x444], ecx
mov eax, dword [eax]
mov dword [ebp - 4], eax
xor edi, edi
cmp edx, 1
je 0x4016f3
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push eax
mov eax, dword [ebx + 0x208]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4017d0
mov ecx, ebx
call fcn.004012a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402010
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], 0
je 0x40207c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40207c
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push edx
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40207c
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
push edi
lea eax, [ebp + 0xc]
push eax
push esi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x40207c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402350
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
lea eax, [ebp + 0x18]
push eax
push 0x20019
xor esi, esi
push esi
push ecx
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4023f8
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4023e1
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x4023da
cmp eax, 2
jne 0x4023e1
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00404c40
mov esi, esp
test esi, esi
je 0x4023e1
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4023e1
cmp eax, edi
jae 0x4023e1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret