joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bf00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov eax, ecx
mov edx, ecx
add eax, esi
cmp edi, esi
jbe 0x40bf20
cmp edi, eax
jb 0x40c0c4
cmp ecx, 0x100
jb 0x40bf47
cmp dword [0x411e50], 0
je 0x40bf47
push edi
push esi
and edi, 0xf
and esi, 0xf
cmp edi, esi
pop esi
pop edi
jne 0x40bf47
pop esi
pop edi
pop ebp
jmp 0x40b6a3
test edi, 3
jne 0x40bf64
shr ecx, 2
and edx, 3
cmp ecx, 8
jb switch.0x0040bf84
rep movsd dword es:[edi], dword [esi]
jmp dword [edx*4 + 0x40c074]
mov eax, edi
mov edx, 3
sub ecx, 4
jb 0x40bf7c
and eax, 3
add ecx, eax
jmp dword [eax*4 + 0x40bf88]
jmp dword [ecx*4 + case.0x40bf5c.0]
jmp dword [ecx*4 + 0x40c008]
mov eax, dword [esi + ecx*4 - 0x1c]
mov dword [edi + ecx*4 - 0x1c], eax
mov eax, dword [esi + ecx*4 - 0x18]
mov dword [edi + ecx*4 - 0x18], eax
mov eax, dword [esi + ecx*4 - 0x14]
mov dword [edi + ecx*4 - 0x14], eax
mov eax, dword [esi + ecx*4 - 0x10]
mov dword [edi + ecx*4 - 0x10], eax
mov eax, dword [esi + ecx*4 - 0xc]
mov dword [edi + ecx*4 - 0xc], eax
mov eax, dword [esi + ecx*4 - 8]
mov dword [edi + ecx*4 - 8], eax
mov eax, dword [esi + ecx*4 - 4]
mov dword [edi + ecx*4 - 4], eax
lea eax, [ecx*4]
add esi, eax
add edi, eax
jmp dword [edx*4 + 0x40c074]
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
mov al, byte [esi]
mov byte [edi], al
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
mov al, byte [esi]
mov byte [edi], al
mov al, byte [esi + 1]
mov byte [edi + 1], al
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
mov al, byte [esi]
mov byte [edi], al
mov al, byte [esi + 1]
mov byte [edi + 1], al
mov al, byte [esi + 2]
mov byte [edi + 2], al
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
lea esi, [ecx + esi - 4]
lea edi, [ecx + edi - 4]
test edi, 3
jne 0x40c0f8
shr ecx, 2
and edx, 3
cmp ecx, 8
jb case.default.0x40c0e3
std
rep movsd dword es:[edi], dword [esi]
cld
jmp dword [edx*4 + 0x40c210]
neg ecx
jmp dword [ecx*4 + 0x40c1c0]
mov eax, edi
mov edx, 3
cmp ecx, 4
jb switch.0x0040c110
and eax, 3
sub ecx, eax
jmp dword [eax*4 + 0x40c114]
jmp dword [ecx*4 + 0x40c210]
jmp dword [edx*4 + 0x40c210]
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
mov al, byte [esi + 3]
mov byte [edi + 3], al
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
mov al, byte [esi + 3]
mov byte [edi + 3], al
mov al, byte [esi + 2]
mov byte [edi + 2], al
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
mov al, byte [esi + 3]
mov byte [edi + 3], al
mov al, byte [esi + 2]
mov byte [edi + 2], al
mov al, byte [esi + 1]
mov byte [edi + 1], al
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
Function at 0x45c0ea
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x517d90
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x55013c], 1
jge 0x517dff
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x517dd5
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x517dd5
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x517db2
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x517deb
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x517df2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x517eef
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x517ec0
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x517eb5
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x517ea9
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x517eb0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x517eef
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x517eea
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x517ed3
mov eax, dword [ebx + 8]
jmp 0x517eef
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x517ee1
xor eax, eax
jmp 0x517eef
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x517e1f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x45dac6
Capabilities:
Query environment variable

Disassembly:
jmp 0x4f1b23
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4f1b37
xor edi, edi
jmp 0x4f1b7b
push ebx
push esi
call fcn.004f1a19
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.0045e124
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4f1b68
push ebx
push esi
push edi
call fcn.0045dc15
add esp, 0xc
push 2
push 0
call fcn.0045e6dd
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x401110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401129
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401164
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401160
lea ebx, [ebx]
cmp esi, eax
jae 0x401164
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401150
cmp esi, eax
jb 0x40116a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401270
Capabilities:
Timestomp file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x40137e
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x40137e
cmp byte [eax], bl
je 0x40137e
cmp byte [ecx], bl
je 0x40137e
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4012d7
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x401348
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x1c], ebx
jne 0x401317
cmp dword [esp + 0x18], ebx
jne 0x401317
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x14], ebx
jne 0x40132b
cmp dword [esp + 0x10], ebx
jne 0x40132b
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x100
push eax
call ebp
mov esi, eax
cmp esi, ebx
jne 0x401352
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0x18
ret
xor al, al
pop ebx
add esp, 0x18
ret
Function at 0x4030e0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x42da80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x43ad9c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.0040abd2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403120
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x38], 0
call fcn.0040abd2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403152
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0xffffffffffffffff
push 0
mov ecx, 0x43c110
mov byte [esp + 0x40], 1
call fcn.0040926f
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x403181
xor eax, eax
jmp 0x40318f
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403186
sub eax, esi
push eax
push edx
mov ecx, 0x43c138
call fcn.00402290
mov ecx, 0x43c138
call fcn.004023a0
mov eax, dword [0x43c108]
test eax, eax
jne 0x403227
push str.NtQueryInformationProcess
push str.NTDLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43c108], eax
test eax, eax
jne 0x403227
mov byte [esp + 0x38], al
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403212
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
push 0
push 0x18
lea ecx, [esp + 0x20]
push ecx
push 0
push 0xffffffffffffffff
call eax
test eax, eax
jne 0x403244
mov edx, dword [esp + 0x2c]
mov dword [0x43c10c], edx
push 0
push 0x402e50
call dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [edi - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403272
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403296
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
Function at 0x403770
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x42db28
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43ad9c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0xc]
call fcn.00403370
push 4
push str..old
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004025f0
mov eax, dword [esp + 8]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x406c8e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x43ad9c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x406d2c
push 0x430a94
push 4
push eax
call fcn.00419a8f
push eax
call fcn.00401000
add esp, 0x10
push ebx
push edi
call fcn.0041970e
mov edi, dword [eax]
call fcn.0041970e
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00419b15
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0041970e
cmp dword [eax], ebx
je 0x406d43
call fcn.0041970e
push dword [eax]
call fcn.00406695
pop ecx
jmp 0x406d4a
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x406cd4
jmp 0x406dd1
call fcn.0041970e
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x406dcd
cmp dword [ebp - 0x11c], esi
jae 0x406dcd
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00418090
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x406dbc
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406dbc
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x406dbc
push ebx
push ebx
push esi
jmp 0x406dc5
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x406dcf
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00418077
leave
ret
Function at 0x40aaf9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40ab1d
cmp dword [edi + 0x54], 0
jne 0x40ab1d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040a0c1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040aaba
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x412d37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x412d7e
call fcn.0040a0c1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x412d7e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412d9a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004128b1
mov esi, eax
test edi, edi
je 0x412d98
test ebx, ebx
je 0x412d98
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x418077
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43ad9c]
jne 0x418081
repz ret
jmp fcn.004238ac
Function at 0x42a031
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041eb8f
and dword [ebp - 4], 0
cmp dword [0x43ea70], 0
mov ebx, eax
jne 0x42a0e2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42a193
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4340a0
push edi
call esi
test eax, eax
je 0x42a193
push eax
call fcn.0041eb1d
mov dword [esp], 0x434090
push edi
mov dword [0x43ea70], eax
call esi
push eax
call fcn.0041eb1d
mov dword [esp], 0x43407c
push edi
mov dword [0x43ea74], eax
call esi
push eax
call fcn.0041eb1d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ea78], eax
call esi
push eax
call fcn.0041eb1d
pop ecx
mov dword [0x43ea80], eax
test eax, eax
je 0x42a0e2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041eb1d
pop ecx
mov dword [0x43ea7c], eax
mov eax, dword [0x43ea7c]
cmp eax, ebx
je 0x42a13a
cmp dword [0x43ea80], ebx
je 0x42a13a
push eax
call fcn.0041eb98
push dword [0x43ea80]
mov esi, eax
call fcn.0041eb98
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42a13a
test edi, edi
je 0x42a13a
call esi
test eax, eax
je 0x42a131
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42a131
test byte [ebp - 0xc], 1
jne 0x42a13a
or dword [ebp + 0x10], 0x200000
jmp 0x42a173
mov eax, dword [0x43ea74]
cmp eax, ebx
je 0x42a173
push eax
call fcn.0041eb98
pop ecx
test eax, eax
je 0x42a173
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42a173
mov eax, dword [0x43ea78]
cmp eax, ebx
je 0x42a173
push eax
call fcn.0041eb98
pop ecx
test eax, eax
je 0x42a173
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ea70]
call fcn.0041eb98
pop ecx
test eax, eax
je 0x42a193
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a195
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100048d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1004a258]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0x4178]
or eax, dword [ebx + 0x417c]
lea esi, [ebx + 0x4178]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
jne 0x10004949
cmp dword [ebx + 0x41b0], 8
lea eax, [ebx + 0x419c]
jb 0x10004910
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x10004943
push 0
lea eax, [ebp - 0x1c]
push eax
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x12], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
or ecx, dword [ebp - 0x24]
and eax, 0x7fffffff
mov dword [ebp - 0x28], ecx
sub ecx, dword [esi]
push 0
mov dword [ebp - 0x1c], eax
sbb eax, dword [esi + 4]
push 0x989680
push eax
push ecx
call fcn.1000efa0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
shl dword [ebp - 0x18], 4
sub dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
shl ecx, 2
test edx, edx
jl 0x10004a26
jg 0x100049bf
cmp eax, ecx
jbe 0x10004a26
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
cmp dword [ebx + 0x41b0], 8
lea eax, [ebx + 0x419c]
jb 0x100049db
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x10004a0e
push 0
lea eax, [ebp - 0x1c]
push eax
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000eb51
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1000eb51
mov esp, ebp
pop ebp
ret 4
Function at 0x10004b30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1004a258]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10004b60
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000eb51
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x2000000
push 3
push 0
push 0
push 0x60000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10004b93
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000eb51
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 4
push 1
push edi
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x221
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
xorps xmm0, xmm0
lea eax, [ebp - 0x3c]
push eax
movq qword [ebp - 0x38], xmm0
movq qword [ebp - 0x28], xmm0
push 1
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], 0x10000000
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10004c5f
push 0
push eax
push 0
push 0
push 4
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x1c]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.1000eb51
mov esp, ebp
pop ebp
ret