joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403da0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
push esi
push edi
mov esi, ecx
push 0x8000
mov dword [esi], vtable.CADllApi.0
mov byte [esi + 4], 0
call ebx
push str.setupapi.dll
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
mov edi, eax
call ebx
mov dword [esi + 8], edi
mov dword [esi], vtable.rdrwinapi::CWinSetupApiWrapper.0
test edi, edi
je 0x403eff
push str.SetupDiGetClassDevsW
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x403eff
mov eax, dword [esi + 8]
push str.SetupDiGetDriverInstallParamsW
push eax
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x403eff
mov ecx, dword [esi + 8]
push str.SetupDiBuildDriverInfoList
push ecx
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x403eff
mov edx, dword [esi + 8]
push str.SetupDiCreateDeviceInfoW
push edx
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x403eff
mov eax, dword [esi + 8]
push str.SetupDiCreateDeviceInfoList
push eax
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x403eff
mov ecx, dword [esi + 8]
push str.SetupDiDestroyDeviceInfoList
push ecx
call edi
mov dword [esi + 0x20], eax
test eax, eax
je 0x403eff
mov edx, dword [esi + 8]
push str.SetupDiEnumDeviceInterfaces
push edx
call edi
mov dword [esi + 0x24], eax
test eax, eax
je 0x403eff
mov eax, dword [esi + 8]
push str.SetupDiEnumDeviceInfo
push eax
call edi
mov dword [esi + 0x28], eax
test eax, eax
je 0x403eff
mov ecx, dword [esi + 8]
push str.SetupDiEnumDriverInfoW
push ecx
call edi
mov dword [esi + 0x2c], eax
test eax, eax
je 0x403eff
mov edx, dword [esi + 8]
push str.SetupDiGetDeviceInterfaceDetailW
push edx
call edi
mov dword [esi + 0x30], eax
test eax, eax
je 0x403eff
mov eax, dword [esi + 8]
push str.SetupDiGetINFClassW
push eax
call edi
mov dword [esi + 0x34], eax
test eax, eax
je 0x403eff
mov ecx, dword [esi + 8]
push str.SetupDiSetDeviceRegistryPropertyW
push ecx
call edi
mov dword [esi + 0x38], eax
test eax, eax
je 0x403eff
mov edx, dword [esi + 8]
push str.SetupDiCallClassInstaller
push edx
call edi
mov dword [esi + 0x3c], eax
test eax, eax
je 0x403eff
mov eax, dword [esi + 8]
push str.SetupDiGetDeviceInstanceIdW
push eax
call edi
mov dword [esi + 0x40], eax
test eax, eax
je 0x403eff
mov byte [esi + 4], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x40a890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jne 0x40a89d
xor eax, eax
pop ebp
ret
xor ecx, ecx
mov eax, ebp
shl eax, 8
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049c196
add esp, 4
test eax, eax
je 0x40a899
mov ecx, dword [esp + 8]
push esi
push edi
xor esi, esi
movzx edx, si
mov edi, edx
and edi, 1
neg edi
and edi, ecx
shr dx, 1
xor di, dx
movzx edx, di
mov edi, edx
and edi, 1
neg edi
and edi, ecx
shr dx, 1
xor di, dx
movzx edx, di
mov edi, edx
and edi, 1
neg edi
and edi, ecx
shr dx, 1
xor di, dx
movzx edx, di
mov edi, edx
and edi, 1
neg edi
and edi, ecx
shr dx, 1
xor di, dx
movzx edx, di
mov edi, edx
and edi, 1
neg edi
and edi, ecx
shr dx, 1
xor di, dx
movzx edx, di
mov edi, edx
and edi, 1
neg edi
and edi, ecx
shr dx, 1
xor di, dx
movzx edx, di
mov edi, edx
and edi, 1
neg edi
and edi, ecx
shr dx, 1
xor di, dx
movzx edx, di
mov edi, edx
and edi, 1
neg edi
and edi, ecx
shr dx, 1
xor di, dx
mov word [eax + esi*2], di
inc esi
cmp esi, 0x100
jb 0x40a8c7
cmp ebp, 1
jbe 0x40a9a9
push ebx
mov edi, eax
mov ebx, 0x100
cmp ebp, 1
jbe 0x40a9a0
mov edx, edi
lea esi, [ebp - 1]
nop
movzx ecx, word [edx]
movzx ebp, cl
shr cx, 8
xor cx, word [eax + ebp*2]
add edx, 0x200
sub esi, 1
mov word [edx], cx
jne 0x40a980
mov ebp, dword [esp + 0x18]
add edi, 2
sub ebx, 1
jne 0x40a975
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x40a9b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jne 0x40a9bd
xor eax, eax
pop ebp
ret
xor ecx, ecx
mov eax, ebp
shl eax, 8
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049c196
add esp, 4
test eax, eax
je 0x40a9b9
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
mov ecx, edi
and ecx, 1
neg ecx
and ecx, esi
mov edx, edi
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
neg edx
and edx, esi
shr ecx, 1
xor edx, ecx
mov ecx, edx
and ecx, 1
shr edx, 1
neg ecx
and ecx, esi
xor ecx, edx
mov edx, ecx
and edx, 1
neg edx
and edx, esi
shr ecx, 1
xor edx, ecx
mov ecx, edx
and ecx, 1
shr edx, 1
neg ecx
and ecx, esi
xor ecx, edx
mov edx, ecx
and edx, 1
neg edx
and edx, esi
shr ecx, 1
xor edx, ecx
mov ecx, edx
and ecx, 1
shr edx, 1
neg ecx
and ecx, esi
xor ecx, edx
mov edx, ecx
and edx, 1
neg edx
and edx, esi
shr ecx, 1
xor edx, ecx
mov dword [eax + edi*4], edx
inc edi
cmp edi, 0x100
jb 0x40a9e7
cmp ebp, 1
jbe 0x40aaaa
push ebx
mov edi, eax
mov ebx, 0x100
lea ebx, [ebx]
cmp ebp, 1
jbe 0x40aaa1
mov edx, edi
lea esi, [ebp - 1]
lea ebx, [ebx]
mov ecx, dword [edx]
mov ebp, ecx
and ebp, 0xff
shr ecx, 8
xor ecx, dword [eax + ebp*4]
add edx, 0x400
sub esi, 1
mov dword [edx], ecx
jne 0x40aa80
mov ebp, dword [esp + 0x18]
add edi, 4
sub ebx, 1
jne 0x40aa70
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x40aab0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
test eax, eax
jne 0x40aac1
xor eax, eax
add esp, 0x10
ret
xor ecx, ecx
shl eax, 8
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049c196
add esp, 4
mov dword [esp + 4], eax
test eax, eax
je 0x40aabb
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], 0
lea esp, [esp]
mov eax, dword [esp + 0x10]
and eax, 1
neg eax
cdq
mov ebp, eax
mov eax, dword [esp + 0x10]
xor esi, esi
shrd eax, esi, 1
and ebp, ebx
xor ebp, eax
mov eax, ebp
and eax, 1
neg eax
shr esi, 1
mov ecx, edx
cdq
and eax, ebx
and ecx, edi
xor ecx, esi
shrd ebp, ecx, 1
xor eax, ebp
mov dword [esp + 0x18], eax
and eax, 1
neg eax
shr ecx, 1
mov esi, edx
cdq
mov ebp, eax
mov eax, dword [esp + 0x18]
and esi, edi
xor esi, ecx
shrd eax, esi, 1
and ebp, ebx
xor ebp, eax
mov eax, ebp
and eax, 1
neg eax
shr esi, 1
mov ecx, edx
cdq
and eax, ebx
and ecx, edi
xor ecx, esi
shrd ebp, ecx, 1
xor eax, ebp
mov dword [esp + 0x18], eax
and eax, 1
neg eax
mov esi, edx
cdq
mov ebp, eax
mov eax, dword [esp + 0x18]
shr ecx, 1
and esi, edi
xor esi, ecx
shrd eax, esi, 1
and ebp, ebx
xor ebp, eax
mov eax, ebp
and eax, 1
mov ecx, edx
shr esi, 1
neg eax
and ecx, edi
xor ecx, esi
cdq
shrd ebp, ecx, 1
and eax, ebx
xor eax, ebp
mov dword [esp + 0x18], eax
and eax, 1
neg eax
mov esi, edx
shr ecx, 1
cdq
and esi, edi
xor esi, ecx
mov ebp, eax
mov ecx, edx
and ebp, ebx
and ecx, edi
mov eax, dword [esp + 0x18]
shrd eax, esi, 1
xor ebp, eax
mov eax, ebp
and eax, 1
shr esi, 1
xor ecx, esi
neg eax
cdq
shrd ebp, ecx, 1
mov esi, eax
mov eax, dword [esp + 0x10]
shr ecx, 1
and edx, edi
and esi, ebx
xor edx, ecx
mov ecx, dword [esp + 0x14]
xor esi, ebp
mov dword [ecx + eax*8], esi
mov dword [ecx + eax*8 + 4], edx
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x100
jb 0x40ab00
mov esi, dword [esp + 0x2c]
mov eax, ecx
cmp esi, 1
jbe 0x40ac60
mov edi, eax
mov dword [esp + 0x14], 0x100
cmp esi, 1
jbe 0x40ac56
mov ecx, edi
dec esi
mov edi, edi
mov ebx, dword [ecx]
mov ebp, dword [ecx + 4]
mov edx, dword [ecx]
shrd ebx, ebp, 8
and edx, 0xff
xor ebx, dword [eax + edx*8]
shr ebp, 8
xor ebp, dword [eax + edx*8 + 4]
mov dword [ecx + 0x800], ebx
mov dword [ecx + 0x804], ebp
add ecx, 0x800
sub esi, 1
jne 0x40ac20
mov esi, dword [esp + 0x2c]
add edi, 8
sub dword [esp + 0x14], 1
jne 0x40ac16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40afb0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
cmp dword [esp + 4], 0
push ebp
je 0x40b028
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x40b028
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8000
call edi
push str.advapi32.dll
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
mov esi, eax
call edi
test esi, esi
jne 0x40afed
pop edi
pop esi
pop ebx
xor al, al
pop ebp
ret
push str.SystemFunction036
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b018
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call eax
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x40b050
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, ecx
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], ebp
test edi, edi
je 0x40b1e5
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x40b1e5
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x40b1e5
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, edx
cmp ebx, 0x28
jbe 0x40b1ab
neg edx
and edx, 7
mov ebp, edx
sub ebx, ebp
mov dword [esp + 0x44], ebx
test ebp, ebp
je 0x40b0c1
movzx edx, byte [esi]
xor edx, eax
shrd eax, ecx, 8
and edx, 0xff
xor eax, dword [edi + edx*8]
shr ecx, 8
xor ecx, dword [edi + edx*8 + 4]
dec ebp
inc esi
test ebp, ebp
jne 0x40b0a2
cmp ebx, 0x20
jb 0x40b1a7
shr ebx, 5
mov dword [esp + 0x40], ebx
xor eax, dword [esi]
xor ecx, dword [esi + 4]
mov ebx, dword [esi + 8]
mov ebp, dword [esi + 0xc]
add esi, 8
mov edx, dword [esi + 8]
add esi, 8
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 8]
add esi, 8
mov dword [esp + 0x34], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x38], edx
lea edx, [edi + 0xc000]
push edx
push ecx
push eax
add esi, 8
call fcn.0040aec0
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x8000]
push eax
mov ecx, edx
push ebp
push ebx
mov dword [esp + 0x2c], ecx
call fcn.0040aec0
mov ecx, dword [esp + 0x28]
xor ecx, eax
mov eax, dword [esp + 0x2c]
xor eax, edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x28], eax
lea eax, [edi + 0x4000]
push eax
mov eax, dword [esp + 0x4c]
push eax
push edx
mov dword [esp + 0x38], ecx
call fcn.0040aec0
mov ecx, dword [esp + 0x38]
xor ecx, eax
mov eax, dword [esp + 0x34]
xor eax, edx
mov edx, dword [esp + 0x5c]
push edi
push edx
mov edx, dword [esp + 0x60]
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
call fcn.0040aec0
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x74]
xor ecx, eax
mov eax, dword [esp + 0x40]
xor eax, edx
mov dword [esp + 0x44], eax
sub ebx, 0x20
add esp, 0x30
sub dword [esp + 0x40], 1
mov eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], ebx
jne 0x40b0d1
mov ebp, dword [esp + 0x18]
test ebx, ebx
je 0x40b1cf
nop
movzx edx, byte [esi]
xor edx, eax
shrd eax, ecx, 8
and edx, 0xff
xor eax, dword [edi + edx*8]
shr ecx, 8
xor ecx, dword [edi + edx*8 + 4]
dec ebx
inc esi
test ebx, ebx
jne 0x40b1b0
pop esi
pop edi
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
mov edx, ecx
pop ebp
not edx
not eax
pop ebx
add esp, 0x2c
ret 8
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
pop edi
pop ebp
not edx
not eax
pop ebx
add esp, 0x2c
ret 8
Function at 0x411790
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, 1
test byte [0x4deb40], al
jne 0x4117b6
or dword [0x4deb40], eax
push str.SeDebugPrivilege
call fcn.004116e0
add esp, 4
mov byte [0x4deb3c], al
ret
mov al, byte [0x4deb3c]
ret

Function at 0x41316e
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4131a9
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x413190
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4131a1
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4131ab
inc edi
add eax, 0x28
cmp edi, esi
jb 0x413186
xor eax, eax
pop edi
pop esi
ret

Function at 0x415140
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp dword [ebp - 0x380], 0xffffffff
je 0x415178
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x41517d
jmp 0x414ad0
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]

Function at 0x41d7e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4acef1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x30]
mov ebx, 1
mov dword [esp + 0x1c], ebx
test ecx, ecx
jne 0x41d836
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
call edx
test eax, eax
je 0x41d903
mov eax, dword [eax + 8]
cmp eax, 2
jne 0x41d8a7
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
mov dword [ecx], 0
mov eax, dword [esp + 0x34]
push eax
call fcn.00404b10
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0044f170
add esp, 0x10
mov esi, dword [esp + 0x24]
mov dword [esi], 0
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x20], 2
call fcn.00404b10
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x1c], bl
call fcn.00453d80
jmp 0x41d911
cmp eax, 3
jne 0x41d903
mov ecx, dword [esp + 0x34]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
mov dword [ecx], 0
mov edx, dword [esp + 0x38]
push edx
call fcn.00404b10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0044e630
add esp, 0x14
mov esi, dword [esp + 0x24]
push eax
mov ecx, esi
mov byte [esp + 0x20], 3
call fcn.0044dec0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x1c], bl
call fcn.00453d80
jmp 0x41d911
mov esi, dword [esp + 0x24]
mov dword [esi], 0
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 0
call fcn.00453d80
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x41fa10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b1199
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
push esi
push ecx
mov dword [esp + 0x30], esp
mov ebp, esp
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
mov dword [ecx], 0
mov edx, dword [esp + 0x3c]
push edx
mov dword [esp + 0x2c], 1
call fcn.00404b10
mov eax, dword [esp + 0x44]
push eax
push esi
push 0
push ebp
call fcn.0041f8d0
lea ecx, [esp + 0x48]
add esp, 0x18
push ecx
call fcn.0044dee0
add esp, 0xc
mov esi, dword [esp + 0x20]
mov dword [esi], 0
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x1c], 2
call fcn.00404b10
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 1
mov byte [esp + 0x18], 1
test eax, eax
je 0x41fae8
mov edx, eax
add eax, 4
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41fae0
test edx, edx
je 0x41fae0
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax]
push 1
call edx
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x18], 0
test edx, edx
je 0x41fb1c
lea eax, [edx + 4]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41fb1c
test edx, edx
je 0x41fb1c
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax]
push 1
call edx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x422e30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad799
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
push esi
push ecx
mov dword [esp + 0x30], esp
mov ebp, esp
push eax
push ecx
mov ecx, esp
mov dword [ecx], 0
mov edx, dword [esp + 0x48]
mov dword [esp + 0x4c], esp
push edx
mov dword [esp + 0x2c], 2
call fcn.00404b10
mov eax, dword [esp + 0x44]
push eax
push ecx
mov ecx, esp
mov dword [ecx], 0
mov edx, dword [esp + 0x48]
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x34], 3
call fcn.00404b10
mov eax, dword [esp + 0x44]
push eax
push esi
push 0
push ebp
mov byte [esp + 0x40], 2
call fcn.00422cb0
lea ecx, [esp + 0x50]
add esp, 0x20
push ecx
call fcn.0044dee0
add esp, 0xc
mov esi, dword [esp + 0x20]
mov dword [esi], 0
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x1c], 4
call fcn.00404b10
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 1
mov byte [esp + 0x18], 2
test eax, eax
je 0x422f2e
mov edx, eax
add eax, 4
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x422f26
test edx, edx
je 0x422f26
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax]
push 1
call edx
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x30]
mov byte [esp + 0x18], 1
test eax, eax
je 0x422f6c
mov edx, eax
add eax, 4
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x422f64
test edx, edx
je 0x422f64
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax]
push 1
call edx
mov dword [esp + 0x30], 0
mov edx, dword [esp + 0x38]
mov byte [esp + 0x18], 0
test edx, edx
je 0x422fa0
lea eax, [edx + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x422fa0
test edx, edx
je 0x422fa0
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax]
push 1
call edx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x423180
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
push esi
push edi
mov dword [esp + 0x20], ebx
test ecx, ecx
je 0x4233ae
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4233ae
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x4233ae
movzx eax, word [ebx + 4]
mov edx, edi
cmp esi, 0x12
jbe 0x42337f
neg edi
and edi, 1
sub esi, edi
push ebp
mov dword [esp + 0x40], esi
test edi, edi
je 0x4231ec
lea ecx, [ecx]
movzx ebp, byte [edx]
xor ebp, eax
shr ax, 8
and ebp, 0xff
xor ax, word [ecx + ebp*2]
dec edi
inc edx
movzx eax, ax
test edi, edi
jne 0x4231d0
cmp esi, 0x10
jb 0x42337e
shr esi, 4
mov dword [esp + 0x18], esi
lea esp, [esp]
mov bx, word [edx]
xor bx, ax
movzx eax, word [edx + 2]
add edx, 2
add edx, 2
mov word [esp + 0x2a], ax
movzx eax, word [edx]
add edx, 2
mov bp, word [edx + 2]
movzx ebp, bp
mov dword [esp + 0x10], ebp
mov word [esp + 0x2c], ax
movzx eax, word [edx]
add edx, 2
movzx ebx, bx
mov word [esp + 0x2e], ax
movzx ebp, word [esp + 0x2e]
mov dword [esp + 0x1c], ebp
movzx ebp, word [esp + 0x2c]
mov dword [esp + 0x20], ebp
movzx ebp, word [esp + 0x2a]
mov dword [esp + 0x14], ebp
mov ebp, ebx
shr ebx, 8
and ebp, 0xff
mov bp, word [ecx + ebp*2 + 0x1e00]
xor bp, word [ecx + ebx*2 + 0x1c00]
mov ebx, dword [esp + 0x14]
and ebx, 0xff
xor bp, word [ecx + ebx*2 + 0x1a00]
mov ebx, dword [esp + 0x14]
shr ebx, 8
xor bp, word [ecx + ebx*2 + 0x1800]
mov ebx, dword [esp + 0x20]
mov di, word [edx + 2]
and ebx, 0xff
xor bp, word [ecx + ebx*2 + 0x1600]
mov ebx, dword [esp + 0x20]
shr ebx, 8
xor bp, word [ecx + ebx*2 + 0x1400]
mov ebx, dword [esp + 0x1c]
and ebx, 0xff
xor bp, word [ecx + ebx*2 + 0x1200]
mov ebx, dword [esp + 0x1c]
shr ebx, 8
xor bp, word [ecx + ebx*2 + 0x1000]
mov ebx, dword [esp + 0x10]
and ebx, 0xff
xor bp, word [ecx + ebx*2 + 0xe00]
mov ebx, dword [esp + 0x10]
add edx, 2
mov si, word [edx + 2]
movzx edi, di
shr ebx, 8
xor bp, word [ecx + ebx*2 + 0xc00]
add edx, 2
mov ax, word [edx + 2]
mov ebx, edi
movzx esi, si
and ebx, 0xff
xor bp, word [ecx + ebx*2 + 0xa00]
shr edi, 8
xor bp, word [ecx + edi*2 + 0x800]
mov edi, esi
add edx, 2
shr esi, 8
and edi, 0xff
xor bp, word [ecx + edi*2 + 0x600]
movzx eax, ax
xor bp, word [ecx + esi*2 + 0x400]
mov esi, eax
and esi, 0xff
xor bp, word [ecx + esi*2 + 0x200]
mov esi, dword [esp + 0x40]
shr eax, 8
xor bp, word [ecx + eax*2]
sub esi, 0x10
add edx, 2
sub dword [esp + 0x18], 1
movzx eax, bp
mov dword [esp + 0x40], esi
jne 0x423200
mov ebx, dword [esp + 0x24]
pop ebp
test esi, esi
je 0x42339f
movzx edi, byte [edx]
xor edi, eax
shr ax, 8
and edi, 0xff
xor ax, word [ecx + edi*2]
dec esi
inc edx
movzx eax, ax
test esi, esi
jne 0x423383
pop edi
mov word [ebx + 4], ax
pop esi
not eax
pop ebx
add esp, 0x28
ret 8
movzx eax, word [ebx + 4]
pop edi
pop esi
not eax
pop ebx
add esp, 0x28
ret 8
Function at 0x425e60
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 4], eax
cmp eax, 0xffffffff
jne 0x425e9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [esi + 4], eax
cmp eax, edx
je 0x425eab
cmp eax, 1
jne 0x425e94
mov dword [esi + 4], edx
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [esp + 8]
mov dword [esi + 4], 0
pop esi
add esp, 8
ret
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
pop esi
add esp, 8
ret

Function at 0x425ec0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
mov esi, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call ebx
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
push 0
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425f08
xor eax, eax
jmp 0x425f12
push 0x1b
call fcn.00425d70
add esp, 4
mov dword [esi + 4], eax
cmp dword [esp + 0x10], edi
je 0x425f26
test eax, eax
jne 0x425f26
mov dword [esi + 4], 0x1e
push ebp
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x425f40
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
mov esi, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call ebx
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
push 0
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425f88
xor eax, eax
jmp 0x425f92
push 0x1b
call fcn.00425d70
add esp, 4
mov dword [esi + 4], eax
cmp dword [esp + 0x10], edi
je 0x425fa6
test eax, eax
jne 0x425fa6
mov dword [esi + 4], 0x1d
push ebp
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8