joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100221b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, ecx
test byte [edi + 0x10], 0x80
jne 0x1002226f
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], 0
push eax
push ebx
push dword [esp + 0x48]
mov dword [esp + 0x40], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10022255
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
mov ecx, 0x10051c08
call fcn.10038990
mov eax, dword [esp + 0xc]
test al, 1
jne 0x1002222f
cmp dword [esp + 0x10], 0xfffffc15
jne 0x1002222f
or dword [edi + 0x10], 0x80
jmp 0x10022243
test al, 8
je 0x10022243
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.1001bf90
mov eax, dword [esp + 0xc]
test eax, 0xfffffffe
je 0x10022269
lea ecx, [esp + 0xc]
call fcn.1001c060
jmp 0x10022269
cmp dword [esp + 0x44], ebx
je 0x10022269
push 1
push 0xfffff8f0
mov ecx, esi
call fcn.1001c1e0
test byte [edi + 0x10], 0x80
je 0x100222dd
push ebp
lea ebp, [edi + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push dword [esp + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1002229c
push esi
mov ecx, 0x10051c08
call fcn.10038990
jmp 0x100222d5
push 0
lea eax, [esp + 0x4c]
push eax
push ebx
push dword [esp + 0x4c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100222c1
push esi
mov ecx, 0x10051c08
call fcn.10038990
jmp 0x100222d5
cmp dword [esp + 0x48], ebx
je 0x100222d5
push 1
push 0xfffff8f0
mov ecx, esi
call fcn.1001c1e0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
test byte [esi], 8
je 0x100222ec
push 0
push esi
mov ecx, edi
call fcn.100220a0
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0x10
Function at 0x10028e20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, ecx
lea eax, [edx + 7]
mov dword [esp + 8], ebp
shr eax, 3
push esi
mov ecx, dword [ebp]
push edi
mov edi, dword [esp + 0x28]
lea ebx, [eax*8 + 1]
add ebx, eax
mov dword [esp + 0x14], ebx
lea eax, [ecx + ebx]
cmp eax, dword [ebp + 0xc]
ja 0x10028e5a
mov esi, dword [ebp + 4]
add esi, ecx
jmp 0x10028e69
push edi
push ebx
mov ecx, ebp
call fcn.100298d0
mov edx, dword [esp + 0x24]
mov esi, eax
test byte [edi], 8
jne 0x10028fa9
cmp dword [esp + 0x1c], 0
jne 0x10028e81
mov byte [esi], 0x7f
inc esi
xor bl, bl
jmp 0x10028e88
mov byte [esi], 0x80
inc esi
or bl, 0xff
mov ecx, dword [esp + 0x20]
movsx eax, bl
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
cmp edx, 8
jbe 0x10028f0a
lea edi, [edx - 9]
shr edi, 3
inc edi
lea esp, [esp]
movzx eax, byte [ecx]
sub edx, 8
xor al, bl
mov byte [esi], al
movzx eax, byte [ecx + 1]
xor al, bl
mov byte [esi + 1], al
movzx eax, byte [ecx + 2]
xor al, bl
mov byte [esi + 2], al
movzx eax, byte [ecx + 3]
xor al, bl
mov byte [esi + 3], al
movzx eax, byte [ecx + 4]
xor al, bl
mov byte [esi + 4], al
movzx eax, byte [ecx + 5]
xor al, bl
mov byte [esi + 5], al
movzx eax, byte [ecx + 6]
xor al, bl
mov byte [esi + 6], al
movzx eax, byte [ecx + 7]
add ecx, 8
xor al, bl
mov byte [esi + 7], al
mov byte [esi + 8], 9
add esi, 9
dec edi
jne 0x10028eb0
mov dword [esp + 0x24], edx
test edx, edx
je 0x10028fa2
xor ebp, ebp
test edx, edx
je 0x10028f7c
cmp edx, 0x20
jb 0x10028f67
lea eax, [ecx - 1]
lea edi, [esi - 1]
add eax, edx
add edi, edx
cmp esi, eax
ja 0x10028f2f
cmp edi, ecx
jae 0x10028f67
mov eax, edx
mov edi, edx
and eax, 0x1f
sub edi, eax
jmp 0x10028f40
movdqu xmm0, xmmword [ecx]
add ebp, 0x20
pxor xmm0, xmm1
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ecx + 0x10]
add ecx, 0x20
pxor xmm0, xmm1
movdqu xmmword [esi + 0x10], xmm0
add esi, 0x20
cmp ebp, edi
jb 0x10028f40
cmp ebp, edx
jae 0x10028f7c
mov edi, edx
sub ecx, esi
sub edi, ebp
mov al, byte [ecx + esi]
xor al, bl
mov byte [esi], al
inc esi
dec edi
jne 0x10028f71
mov eax, 8
sub eax, edx
push eax
movzx eax, bl
push eax
push esi
call fcn.100444c0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov ebp, dword [esp + 0x10]
mov al, cl
xor al, bl
sub esi, ecx
mov byte [esi + 8], al
mov eax, dword [esp + 0x14]
add dword [ebp], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10
Function at 0x100292e0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
xor ebx, ebx
push esi
mov esi, ecx
push edi
lea eax, [ebp + 8]
xor edi, edi
cmp eax, dword [esi]
jae 0x10029311
mov eax, dword [esi + 4]
movzx eax, byte [eax + ebp]
sub eax, ebx
je 0x10029311
sub eax, 0x80
je 0x10029402
sub eax, 0x7f
jne 0x1002931f
mov ecx, dword [esp + 0x24]
push 0x3ec
call fcn.1001c240
mov eax, dword [esp + 0x24]
test byte [eax], 4
jne 0x1002941c
lea ecx, [ebp + 1]
mov ebp, 8
add ecx, dword [esi + 4]
neg ebx
mov esi, dword [esp + 0x1c]
sbb bl, bl
movsx eax, bl
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
movzx eax, bl
pshufd xmm1, xmm0, 0
mov dword [esp + 0x10], eax
lea ebx, [ebx]
movzx edx, byte [ecx + 8]
xor edx, eax
cmp edx, 8
cmova edx, ebp
lea ebp, [edx + edi]
mov dword [esp + 0x18], ebp
cmp ebp, dword [esp + 0x20]
ja 0x1002940c
xor edi, edi
test edx, edx
je 0x100293df
cmp edx, 0x20
jb 0x100293ce
lea eax, [ecx - 1]
lea ebp, [esi - 1]
add eax, edx
add ebp, edx
cmp esi, eax
ja 0x1002939a
cmp ebp, ecx
jae 0x100293ca
mov eax, edx
mov ebp, edx
and eax, 0x1f
sub ebp, eax
movdqu xmm0, xmmword [ecx]
add edi, 0x20
pxor xmm0, xmm1
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ecx + 0x10]
add ecx, 0x20
pxor xmm0, xmm1
movdqu xmmword [esi + 0x10], xmm0
add esi, 0x20
cmp edi, ebp
jb 0x100293a3
mov ebp, dword [esp + 0x18]
cmp edi, edx
jae 0x100293df
sub edx, edi
mov al, byte [ecx]
inc ecx
xor al, bl
mov byte [esi], al
inc esi
dec edx
jne 0x100293d4
mov dl, byte [ecx]
mov edi, ebp
mov eax, dword [esp + 0x10]
xor dl, bl
inc ecx
mov ebp, 8
cmp dl, 8
ja 0x10029360
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ebx, 1
jmp 0x1002931f
mov ecx, dword [esp + 0x24]
push 1
push 0xfffffbf2
call fcn.1001c1e0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10

Function at 0x10029a20
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
mov ecx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, 1
lea eax, [ecx + 9]
cmp eax, dword [ebp]
jae 0x10029a54
mov eax, dword [ebp + 4]
movzx eax, byte [eax + ecx]
sub eax, ebx
je 0x10029a54
sub eax, 0x80
je 0x10029a8c
sub eax, 0x7f
jne 0x10029a64
push 0x3ec
mov ecx, edi
call fcn.1001c240
mov ecx, dword [esp + 0x14]
test byte [edi], 4
jne 0x10029a83
mov eax, dword [ebp + 4]
inc eax
add ecx, eax
neg ebx
sbb bl, bl
mov dl, byte [ecx + 8]
lea ecx, [ecx + 9]
xor dl, bl
add esi, 9
cmp dl, 8
ja 0x10029a73
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10
mov ebx, esi
jmp 0x10029a64
Function at 0x10030ff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x24], 0
mov dword [esi + 0x20], 1
jne 0x100310d1
cmp dword [esi + 0xc], 0
mov edi, dword [esp + 0xc]
jle 0x10031015
push edi
call fcn.10031630
push ebx
lea ecx, [esi + 4]
call fcn.10031b80
mov eax, dword [esi + 0x38]
or ebx, 0xffffffff
mov word [eax + 4], bx
mov eax, dword [esi + 0x3c]
mov word [eax + 4], bx
mov eax, dword [esi + 0x40]
mov word [eax + 4], bx
mov eax, dword [esi + 0x44]
mov word [eax + 4], bx
mov eax, dword [esi + 0x48]
mov word [eax + 4], bx
mov eax, dword [esi + 0x4c]
mov word [eax + 4], bx
cmp dword [esi + 0x34], 1
jbe 0x100310c8
mov eax, dword [esi + 0x4c]
cmp dword [eax + 0x78], 0
jne 0x10031080
lea ebx, [ebx]
xor eax, eax
mov ecx, esi
cmp dword [esi + 0x34], 1
push edi
sete al
push eax
call fcn.100311e0
test byte [edi], 8
jne 0x100310c8
mov eax, dword [esi + 0x4c]
cmp dword [eax + 0x78], 0
je 0x10031060
dec dword [esi + 0x34]
mov eax, dword [esi + 0x50]
push edi
mov word [eax + 4], bx
mov ecx, dword [esi + 0x4c]
call fcn.100326b0
test byte [edi], 8
jne 0x100310c8
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x40]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], ecx
cmp dword [esi + 0x34], 1
ja 0x10031051
mov eax, dword [esi + 0x24]
pop ebx
pop edi
pop esi
ret 4
lea ecx, [esi + 4]
call fcn.100320a0
cmp dword [esi + 0x1c], 1
jne 0x100310e7
lea ecx, [esi + 4]
call fcn.10031ea0
mov eax, dword [esi + 0x24]
pop edi
pop esi
ret 4
Function at 0x10038db0
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x10038dd9
push dword [esp + 0x10]
mov ecx, esi
call fcn.10038990
pop esi
ret 0xc

Function at 0x10038e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
mov ecx, reloc.mswstr10.dll_Ordinal_2
push 0x20019
mov ebp, dword [edi]
test eax, eax
push 0
push dword [esp + 0x1c]
cmovne ecx, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10038e73
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push esi
push edi
push ebx
push eax
push 0
push dword [esp + 0x2c]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [edi]
cmp eax, ebp
jae 0x10038e65
cmp dword [esp + 0x18], 1
jne 0x10038e65
test esi, esi
jne 0x10038e65
mov byte [eax + ebx], 0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret 0x14

Function at 0x10038e80
Capabilities:
Resume thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x18], 0
jne 0x10038f40
mov eax, dword [esi + 0x14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10044652
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
jne 0x10038ecc
push 1
push 0xfffffc0d
mov ecx, edi
call fcn.1001c1e0
pop edi
pop esi
pop ebp
pop ebx
ret 8
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jbe 0x10038f40
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
push 4
call fcn.10044652
add esp, 4
test eax, eax
je 0x10038f00
push edi
push esi
push 0x10039180
mov ecx, eax
call fcn.10042780
mov ecx, eax
jmp 0x10038f02
xor ecx, ecx
mov eax, dword [esi + 0x18]
mov dword [eax + ebx*4], ecx
mov eax, dword [esi + 0x18]
cmp dword [eax + ebx*4], 0
jne 0x10038f1f
push 1
push 0xfffffc0d
mov ecx, edi
call fcn.1001c1e0
test byte [edi], 8
jne 0x10038f6d
lea eax, [esi + 0x6c]
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esi + 0x18]
mov eax, dword [eax + ebx*4]
push dword [eax]
call ebp
inc ebx
cmp ebx, dword [esi + 0x14]
jb 0x10038ee0
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
test eax, eax
je 0x10038faa
mov ecx, dword [esi + 0x58]
push eax
call fcn.1000de70
test eax, eax
jne 0x10038faa
push 1
push 0xfffffc0e
mov ecx, edi
call fcn.1001c1e0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esi + 0x18]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x10038f87
mov ecx, edi
call fcn.10042850
push edi
call fcn.1004476c
add esp, 4
mov eax, dword [esi + 0x18]
mov dword [eax + ebx*4], 0
test ebx, ebx
jne 0x10038fb4
push dword [esi + 0x18]
call fcn.1004476c
add esp, 4
mov dword [esi + 0x18], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, dword [esi + 0x1c]
push edi
push ebx
call fcn.10042880
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x1003c1d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x304
mov eax, dword [0x100504f0]
xor eax, esp
mov dword [esp + 0x300], eax
mov eax, dword [esp + 0x30c]
push ebx
mov ebx, dword [esp + 0x314]
push ebp
mov ebp, dword [esp + 0x310]
push esi
push edi
mov edi, dword [esp + 0x328]
mov esi, ecx
mov ecx, dword [esp + 0x324]
push 0
push edi
push 0
push 1
push eax
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x1cc]
push ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x28], 1
call fcn.10012e90
push 0
push edi
push 0
push 1
push esi
push ebp
lea ecx, [esp + 0x78]
call fcn.10012e90
test byte [edi], 8
jne 0x1003c3cf
push edi
push dword [ebx]
lea ecx, [esp + 0x1c0]
call fcn.10015b60
test byte [edi], 8
jne 0x1003c3cf
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x60]
push edi
push dword [eax]
call fcn.10015b60
test byte [edi], 8
jne 0x1003c3cf
mov ecx, dword [esp + 0x84]
lea eax, [esp + 0x40]
lea edx, [esp + 0x10]
mov dword [esp + 0x34], eax
push edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x20
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 8]
test byte [esp + 0x10], 8
jne 0x1003c3a9
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
lea ebx, [ebx]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
push ecx
lea ecx, [esp + 0x34]
push ecx
push eax
push dword [edi + 8]
lea ecx, [esp + 0x70]
call fcn.10013320
test byte [esp + 0x10], 8
mov bl, al
jne 0x1003c3a5
mov ecx, dword [esp + 0x1dc]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
push eax
mov edx, dword [ecx]
call dword [edx + 0x14]
test byte [esp + 0x10], 8
jne 0x1003c3a5
mov ecx, dword [esp + 0x1dc]
lea edx, [esp + 0x10]
push edx
push 0
mov eax, dword [ecx]
call dword [eax + 0x1c]
test byte [esp + 0x10], 1
jne 0x1003c37e
cmp dword [esp + 0x14], 0xfffff9bf
jne 0x1003c37e
cmp bl, 1
je 0x1003c375
push 1
push 0
push ebp
mov ecx, esi
call fcn.1003e890
push eax
push 0xffffe01b
push 0xfffff9b3
lea ecx, [esp + 0x24]
call fcn.1001c170
jmp 0x1003c37e
lea ecx, [esp + 0x10]
call fcn.1001c120
test byte [esp + 0x10], 8
jne 0x1003c3a5
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x10]
push edx
push 4
push 1
mov eax, dword [ecx]
call dword [eax + 8]
test byte [esp + 0x10], 8
je 0x1003c2d0
mov edi, dword [esp + 0x28]
test byte [esp + 0x10], 1
jne 0x1003c3ba
cmp dword [esp + 0x14], 0xfffff9bd
je 0x1003c3c6
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.1001bf90
lea ecx, [esp + 0x30]
call fcn.100288f0
lea ecx, [esp + 0x60]
call fcn.100130d0
lea ecx, [esp + 0x1b8]
call fcn.100130d0
test dword [esp + 0x10], 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
je 0x1003c3fa
lea ecx, [esp]
call fcn.1001c060
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.10044550
add esp, 0x304
ret 0x14
Function at 0x10042780
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 4
push dword [esp + 0x18]
push dword [esp + 0x18]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x100427b3
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, esi
pop esi
pop ecx
ret 0xc
push edi
mov edi, dword [esp + 0x18]
mov ecx, 0x10051c08
push edi
call fcn.10038990
test byte [edi], 1
jne 0x100427e8
cmp dword [edi + 4], 0xffffea84
jne 0x100427e8
push 1
push 0
push 0
push 0xffffdf30
push 0xffffea84
mov ecx, edi
call fcn.1001c170
pop edi
mov eax, esi
pop esi
pop ecx
ret 0xc

Function at 0x100436f0
Capabilities:
Delete file

Disassembly:
sub esp, 0x218
mov eax, dword [0x100504f0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10051c84], 0
mov eax, dword [esp + 0x21c]
je 0x10043732
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10044550
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.100434f0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x10043780
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10043780
cmp dword [esp + 4], 0xffffffff
je 0x10043780
push eax
call fcn.100457dd
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10044550
add esp, 0x218
ret 4
Function at 0x10043b80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x644
mov eax, dword [0x100504f0]
xor eax, esp
mov dword [esp + 0x640], eax
cmp dword [0x10051c84], 0
mov eax, dword [esp + 0x648]
push esi
mov esi, dword [esp + 0x650]
push edi
mov edi, dword [esp + 0x65c]
je 0x10043bc9
push edi
push dword [esp + 0x65c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x10043cdf
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x224]
mov dword [esp + 0x224], 0
mov dword [esp + 0x228], 0
call fcn.100434f0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.100434f0
push 0x104
push edi
lea ecx, [esp + 0x438]
call fcn.10043370
push dword [esp + 0x434]
push dword [esp + 0x65c]
push dword [esp + 0x14]
push dword [esp + 0x22c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x430]
mov esi, eax
call fcn.10043480
mov eax, dword [esp + 0x434]
lea ecx, [esp + 0x438]
cmp eax, ecx
je 0x10043c77
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10043c77
cmp dword [esp + 0x430], 0xffffffff
je 0x10043c77
push eax
call fcn.100457dd
add esp, 4
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov dword [esp + 0x434], 0
cmp ecx, eax
je 0x10043ca7
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x10043ca7
cmp dword [esp + 8], 0xffffffff
je 0x10043ca7
push ecx
call fcn.100457dd
add esp, 4
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0x224]
mov dword [esp + 0xc], 0
cmp ecx, eax
je 0x10043cdd
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x10043cdd
cmp dword [esp + 0x21c], 0xffffffff
je 0x10043cdd
push ecx
call fcn.100457dd
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x648]
pop edi
pop esi
xor ecx, esp
call fcn.10044550
add esp, 0x644
ret 0x10

Function at 0x10043d00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x100504f0]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x10051c84], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x10043d4a
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.10044550
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.10043370
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
call fcn.10043480
mov esi, eax
test esi, esi
jle 0x10043d7c
dec esi
lea ecx, [esp + 4]
call fcn.10043480
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x10043daa
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10043daa
cmp dword [esp + 4], 0xffffffff
je 0x10043daa
push eax
call fcn.100457dd
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10044550
add esp, 0x21c
ret 8
Function at 0x1004b418
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100504f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10048009
mov dword [ebp - 0x14], eax
cmp dword [0x10052a3c], esi
jne 0x1004b50b
push 0x800
push esi
push 0x1000a618
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1004b498
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1004b5eb
push esi
push esi
push 0x1000a618
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1004b5eb
push 0x1000a630
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004b5eb
push eax
call ebx
push 0x1000a63c
push edi
mov dword [0x10052a3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000a64c
push edi
mov dword [0x10052a40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000a660
push edi
mov dword [0x10052a44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10052a4c], eax
test eax, eax
je 0x1004b508
push 0x1000a67c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10052a48], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1004b530
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1004b523
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1004b545
push 4
pop eax
jmp 0x1004b5ed
cmp dword [ebp - 0x14], esi
je 0x1004b545
push dword [0x10052a3c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1004b52a
mov eax, dword [0x10052a48]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1004b5a3
cmp dword [0x10052a4c], edi
je 0x1004b5a3
push eax
call ebx
push dword [0x10052a4c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1004b5a3
test eax, eax
je 0x1004b5a3
call ecx
test eax, eax
je 0x1004b598
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1004b598
test byte [ebp - 8], 1
jne 0x1004b5a3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1004b5d3
mov eax, dword [0x10052a40]
cmp eax, edi
je 0x1004b5d0
push eax
call ebx
test eax, eax
je 0x1004b5d0
call eax
mov esi, eax
test esi, esi
je 0x1004b5d0
mov eax, dword [0x10052a44]
cmp eax, edi
je 0x1004b5d0
push eax
call ebx
test eax, eax
je 0x1004b5d0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10052a3c]
call ebx
test eax, eax
je 0x1004b5eb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1004b5ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044550
mov esp, ebp
pop ebp
ret