joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x43920b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x4392e9
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4719c0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4719c0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4719c0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4719c0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4719c0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4719c0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4719c0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4719c0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x439225
pop edi
test edx, edx
je 0x43930b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4719c0]
inc ecx
sub edx, 1
jne 0x4392f0
not eax
pop esi
ret

Function at 0x439310
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4719c0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4719c0]
mov dword [edx + 8], ecx
ret

Function at 0x4398d0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x439912
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x439906
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x439923
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.0044b910
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x43ab60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x43aba0
push esi
call ebp
cmp eax, 0xffffffff
jne 0x43aba0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x43ac86
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x43abbf
cmp ax, 0x5c
jne 0x43abc1
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x43abb3
push edi
cmp ecx, ebx
je 0x43ac04
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.0044b910
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.0043ab60
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x43ac2f
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x43ac20
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x43ac20
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ac33
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x43ac50
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x43ac50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x43ac86
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ac80
add esp, 0x414
ret
Function at 0x43c450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x43c46a
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x43c45f
cmp dword [edi + 0x7c], ebx
je 0x43c47d
push edi
call fcn.0043a3c0
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.0043a1e0
add esp, 0x10
test eax, eax
je 0x43c4a4
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.0044d6c2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x43c4e5
push 0x4000
call fcn.0044d6c2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x43c4f1
push esi
call fcn.0044b47e
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x43c53d
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.004395c0
add esp, 4
test eax, eax
jne 0x43c53d
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x43c567
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x43c570
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx ecx, byte [esi + 0x6c]
neg ecx
sbb ecx, ecx
push ebp
mov ebp, dword [esp + 0x20]
and ecx, 0xc
lea ebx, [esi + 0x70]
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebp, ebp
je 0x43c5b7
mov edi, edi
movzx eax, byte [ebp]
test al, al
je 0x43c5b7
push eax
push ebx
call fcn.00439310
add esp, 8
add ebp, 1
jne 0x43c5a0
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x43c840
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x43c972
cmp dword [ebx + 4], 0xffffffff
jne 0x43c972
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea esi, [ebx + 0x244]
push esi
push 0x104
call edi
lea ebp, [ebx + 0x44c]
push ebp
push 0x104
call edi
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c880
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x43c8bb
cmp ax, 0x2f
je 0x43c8bb
add esi, 0xfffffffe
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x43c8a6
mov eax, dword [0x461a8c]
mov edi, esi
mov dword [edi], eax
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c8c0
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x44a]
cmp ax, 0x5c
je 0x43c904
cmp ax, 0x2f
je 0x43c904
add ebp, 0xfffffffe
mov edi, ebp
jmp 0x43c8f0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x43c8f0
mov ecx, dword [0x461a8c]
mov dword [edi], ecx
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmp edi, 1
jne 0x43c92f
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x43c92f
pop edi
pop esi
pop ebp
mov eax, 0x2000000
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push edi
push eax
push esi
call fcn.00439670
add esp, 0x10
test eax, eax
jne 0x43c952
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push eax
call fcn.0043c280
add esp, 4
mov dword [ebx], eax
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop ebp
add eax, 0x200
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x43e1d0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3014
call fcn.0044bf30
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x3010], eax
cmp byte [0x47c50c], 0
jne 0x43e1fe
cmp byte [0x47c50d], 0
je 0x43e2a4
mov eax, dword [esp + 0x3018]
push eax
lea ecx, [esp + 0x1014]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x301c]
push edx
lea eax, [esp + 0x1014]
push eax
lea ecx, [esp + 0x2018]
push ecx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0xc]
movzx edx, word [esp + 0xa]
push eax
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 8]
push edx
movzx edx, word [esp + 0x12]
push eax
movzx eax, word [esp + 0x12]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push str._02i__02i__02i__02i:_02i:_02i:_03i
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x2034]
push edx
lea eax, [esp + 0x38]
push 0x1000
push eax
call fcn.0044ed1d
add esp, 0x30
cmp byte [0x47c50c], 0
je 0x43e2a4
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x3010]
xor ecx, esp
call fcn.0044ac80
add esp, 0x3014
ret

Function at 0x43e2c0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4014
call fcn.0044bf30
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x4010], eax
cmp byte [0x47c50c], 0
jne 0x43e2ee
cmp byte [0x47c50d], 0
je 0x43e376
mov ecx, dword [esp + 0x4018]
lea eax, [esp + 0x401c]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x400
push edx
call fcn.0044c7df
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0xe]
movzx eax, word [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
movzx ecx, word [esp + 0xe]
push edx
movzx edx, word [esp + 0x10]
push eax
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x16]
push eax
push ecx
push edx
lea eax, [esp + 0x2030]
push str._02i__02i__02i__02i:_02i:_02i:_03i__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
cmp byte [0x47c50c], 0
je 0x43e376
lea ecx, [esp + 0x2010]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x4010]
xor ecx, esp
call fcn.0044ac80
add esp, 0x4014
ret

Function at 0x43e390
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x43e3c6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x43e4d0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1014
call fcn.0044bf30
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x1010], eax
cmp byte [0x47c50e], 0
je 0x43e603
mov ecx, dword [esp + 0x1018]
lea eax, [esp + 0x101c]
push eax
push ecx
lea edx, [esp + 0x818]
push 0x400
push edx
call fcn.0044c7df
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0xe]
movzx eax, word [esp + 0xc]
lea ecx, [esp + 0x810]
push ecx
movzx ecx, word [esp + 0xe]
push edx
movzx edx, word [esp + 0x10]
push eax
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x16]
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push str._02i__02i__02i__02i:_02i:_02i:_03i__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x47c50e], 0
je 0x43e603
cmp byte [0x47c510], 0
je 0x43e59f
push 0x47c510
call fcn.0043e390
add esp, 4
cmp eax, dword [0x47b034]
jle 0x43e5d5
movzx edx, word [esp + 0xa]
movzx eax, word [esp + 8]
movzx ecx, word [esp + 6]
push edx
movzx edx, word [esp + 6]
push eax
movzx eax, word [esp + 8]
push ecx
push edx
push eax
push 0x47c408
push str._sLOG._02i._02i._02i._02i._02i.txt
push 0x47c510
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
push esi
push 0x472164
push 0x47c510
call fcn.0044efc1
mov esi, eax
add esp, 8
test esi, esi
je 0x43e602
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.0044ee51
push esi
call fcn.0044cc38
add esp, 0xc
pop esi
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.0044ac80
add esp, 0x1014
ret
Function at 0x4419f0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebx
push esi
push edi
push 2
push 0
mov edi, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
cmp esi, 0x80010106
je 0x441a0d
test esi, esi
jl 0x441a50
push edi
push 0x472690
push 1
push 0
push 0x472680
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x441a50
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
lea ebx, [edi + 4]
push ebx
push eax
call edx
mov esi, eax
test esi, esi
jl 0x441a50
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [edi + 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
jge 0x441a59
mov ecx, edi
call fcn.004418f0
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x442290
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 0
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x438]
push SysReAllocString
xor bl, bl
push eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x27], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44238e
push ebp
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x442380
push esi
lea ebx, [ebp + 4]
push ebx
call fcn.0044ad7f
mov esi, eax
add esp, 4
test esi, esi
je 0x44237f
push ebx
push 0
push esi
call fcn.0044ac90
add esp, 0xc
push 0
lea edx, [esp + 0x20]
push edx
push ebp
push esi
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x3ff
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.0044ac90
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
call fcn.00441f80
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0044f010
add esp, 8
test eax, eax
je 0x442376
mov byte [esp + 0x13], 1
push esi
call fcn.0044ad0a
add esp, 4
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
pop ebp
jmp 0x442390
mov al, bl
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.0044ac80
add esp, 0x414
ret 8
Function at 0x4423b0
Capabilities:
Create directory

Disassembly:
sub esp, 0x41c
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x424]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x420]
lea edx, [esp + 8]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4423e0
push ebx
push ebp
push esi
push edi
push 2
mov byte [esp + 0x17], cl
lea ecx, [esp + 0x1c]
push 0x4726ec
push ecx
xor bl, bl
call fcn.0044f096
add esp, 0xc
test eax, eax
jne 0x442413
mov bl, 1
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.0044b416
mov esi, eax
add esp, 8
test esi, esi
je 0x4424f6
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x442440
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x442450
sub eax, edx
sar eax, 1
cmp eax, 2
jbe case.0x44248c.161
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call ebp
test eax, eax
jne case.0x44248c.161
call edi
lea ecx, [eax - 5]
cmp ecx, 0xb2
ja case.0x44248c.6
movzx ecx, byte [ecx + 0x442538]
jmp dword [ecx*4 + 0x442528]
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.0044b416
add esp, 8
test eax, eax
jne 0x442524
jmp case.0x44248c.161
test bl, bl
je 0x442524
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp word [esi], 0
je 0x4424c2
mov byte [esp + 0x13], 1
push 0x5c
push esi
call fcn.0044b416
mov esi, eax
add esp, 8
test esi, esi
jne 0x442440
cmp byte [esp + 0x13], al
je 0x4424f6
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call ebp
test eax, eax
jne 0x4424f6
call edi
cmp eax, 0xb7
jne 0x442524
mov eax, 1
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ac80
add esp, 0x41c
ret 8
push eax
push str.KXAPI::CreateDirectory___failed__ld_n
call fcn.0043e1d0
add esp, 8
xor eax, eax
jmp 0x4424fb
Function at 0x442ba0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push str.KXAPI::DeleteFile_____s__n
mov ebx, ecx
call fcn.0043e2c0
add esp, 8
push 0x80
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x442c4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x442bf3
push str.KXAPI::DeleteFile___ERROR_FILE_NOT_FOUND_n
call fcn.0043e1d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
cmp eax, 3
jne 0x442c0d
push str.KXAPI::DeleteFile___Can_not_find_the_file_path._n
call fcn.0043e1d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
cmp byte [ebx + 5], 0
je 0x442c2d
push str.WIN9X___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.0043e1d0
add esp, 4
mov edi, 2
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
push str.WINNT___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.0043e1d0
add esp, 4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, 2
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x442c60
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
push str.KXAPI::DeleteFileAfterReboot_____s__n
mov edi, ecx
call fcn.0043e2c0
add esp, 8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [edi + 5], 0
je 0x442c9f
push str.WIN9X___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.0043e1d0
add esp, 4
pop edi
mov eax, 2
pop esi
ret 4
push str.WINNT___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.0043e1d0
add esp, 4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov eax, 2
pop esi
ret 4

Function at 0x442cd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
mov esi, dword [esp + 0x428]
push edi
mov edi, dword [esp + 0x424]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
xor ebx, ebx
mov word [esp + 0x18], ax
call fcn.0044ac90
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22a]
push eax
mov word [esp + 0x22c], dx
call fcn.0044ac90
add esp, 0x18
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x442d52
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [esp + 0x428]
lea eax, [esp + 0x214]
push eax
push ecx
push edi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x442d96
lea eax, [esp + 0x214]
mov edx, esi
mov ecx, eax
sub edx, ecx
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x442d80
mov eax, 1
jmp 0x442d98
mov eax, ebx
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ac80
add esp, 0x414
ret 0xc
Function at 0x443140
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x6c
push 0x6c
lea eax, [esp + 4]
push 0
push eax
call fcn.0044ac90
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
add esp, 0xc
lea eax, [esp]
push eax
push 0x442dc0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x60]
add esp, 0x6c
ret 8
Function at 0x443f00
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
mov dword [esp + 0x30], 0
call esi
mov ecx, dword [esp + 0x20]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push ecx
mov ebp, eax
call esi
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebp, 0xffffffff
je 0x44405e
cmp ebx, 0xffffffff
je 0x44405e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push ebp
call edi
push 0
push ebx
mov esi, eax
call edi
mov edi, eax
cmp esi, edi
jne 0x444044
push esi
call fcn.0044ad7f
push edi
mov ebx, eax
call fcn.0044ad7f
xor ecx, ecx
add esp, 8
mov dword [esp + 0x20], eax
cmp ebx, ecx
je 0x444033
cmp eax, ecx
je 0x444026
push ecx
lea edx, [esp + 0x14]
push edx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
call esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push edx
call esi
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jne 0x444026
mov ecx, dword [esp + 0x20]
mov esi, ebx
cmp eax, 4
jb 0x443ffa
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x444026
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x443fe6
test eax, eax
je 0x44401e
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x444026
cmp eax, 1
jbe 0x44401e
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x444026
cmp eax, 2
jbe 0x44401e
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x444026
mov dword [esp + 0x18], 1
push ebx
call fcn.0044ad0a
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x444040
push eax
call fcn.0044ad0a
add esp, 4
mov ebx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8