joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405124
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00405320
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x4051bb
cmp byte [ebp + 8], 0
jne 0x4051bb
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call sub.USER32.DLL_SetWindowPos
cmp byte [ebp + 8], 0
jne 0x4051f9
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.00404fa8
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x405307
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x405258
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404fa8
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x4052f7
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x405280
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call sub.USER32.DLL_SetWindowPos
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x405317
inc esi
test edi, edi
je 0x405317
cmp esi, 0x200
jl 0x405217
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405eec
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.004053c4
test eax, eax
je 0x405f12
test ebx, ebx
je 0x405f12
cmp word [ebx], 0
je 0x405f12
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x405f1a
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x405f2d
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00406144
xor eax, eax
jmp 0x405f48
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x405f3c
cmp eax, 3
jne 0x405f43
mov eax, 2
jmp 0x405f48
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004053c4
test eax, eax
je 0x40611b
test ebx, ebx
je 0x40611b
cmp word [ebx], 0
je 0x40611b
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x406144
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.004053c4
test eax, eax
je 0x406171
test ebx, ebx
je 0x406171
cmp word [ebx], 0
je 0x406171
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x406180
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x406294
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x40e64c
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x4062ae
call fcn.0040625c
mov eax, ebp
jmp 0x4062c6
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x4062ce
test al, 7
jne 0x4062b2
cmp esi, 8
jb 0x406357
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x4062d7
xor edx, edx
jmp 0x406371
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x40635b
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406410
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x406433
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x406444
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x406453
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x406460
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.004053c4
test eax, eax
je 0x40648d
test esi, esi
je 0x40648d
cmp word [esi], 0
je 0x40648d
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x4064a4
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x4064bd
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x4064bd
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x406527
mov dword [ebx + 4], edi
test esi, esi
je 0x4064f2
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.00406c14
jmp 0x4064fb
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40650e
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.00407028
jmp 0x40651d
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.00406bb8
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.004065e4
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4067a0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x4067c7
cmp esi, 0x4e20
jle 0x4067bd
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x406818
mov eax, ebx
call fcn.00406980
test al, al
je 0x4067ff
cmp esi, 0x4e20
jle 0x4067ff
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.004067a0
jmp 0x40681b
cmp dword [ebx + 0xc], 1
jne 0x406813
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x406813
xor eax, eax
jmp 0x40681b
or eax, 0xffffffff
jmp 0x40681b
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x407258
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
mov eax, esp
call fcn.004071bc
mov ebx, eax
mov eax, dword [0x41b6ec]
call fcn.00406e90
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push 0x41b704
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
mov eax, dword [0x40f5ec]
mov eax, dword [eax + 0x10]
test al, 0x5f
je 0x4072b0
and eax, 0x7f
push eax
push 0x41b704
call sub.KERNEL32.DLL_SetFileAttributesA
cmp esi, 0xffffffff
jne 0x4072cf
push 0x41b704
mov eax, 0x6d
call fcn.00402b08
push eax
call fcn.004030c0
add esp, 8
jmp 0x407307
test ebx, ebx
je 0x407301
test bl, 1
je 0x4072dc
mov eax, esp
jmp 0x4072de
xor eax, eax
test bl, 2
je 0x4072e9
lea edx, [esp + 8]
jmp 0x4072eb
xor edx, edx
test bl, 4
je 0x4072f6
lea ecx, [esp + 0x10]
jmp 0x4072f8
xor ecx, ecx
push eax
push edx
push ecx
push esi
call sub.KERNEL32.DLL_SetFileTime
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x4098fc
Capabilities:
Set file attributes

Disassembly:
mov edx, 0x40c7de
mov eax, 0x41b704
call fcn.00406e34
mov dword [0x41b6ec], eax
test eax, eax
jne 0x409965
push 0
push 0x41b704
call sub.KERNEL32.DLL_SetFileAttributesA
mov edx, 0x40c7de
mov eax, 0x41b704
call fcn.00406e34
mov dword [0x41b6ec], eax
test eax, eax
jne 0x409965
mov eax, 0x40d580
mov edx, 9
call fcn.00406b44
push 0x41b704
mov eax, 0x6e
call fcn.00402b08
push eax
call fcn.004030c0
add esp, 8
mov eax, 1
ret
xor eax, eax
ret

Function at 0x409af4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
cmp dword [0x40efc8], 0
jg 0x409b12
dec dword [0x40efc8]
xor eax, eax
mov dword [0x41b600], eax
or eax, 0xffffffff
pop esi
pop ebx
ret
cmp dword [0x41b600], 0
jg 0x409b67
push dword [0x41b61c]
mov ecx, 0x2000
mov edx, 1
mov eax, dword [0x41b5f8]
call fcn.00406edc
mov dword [0x41b600], eax
test eax, eax
jne 0x409b4c
xor edx, edx
or eax, 0xffffffff
mov dword [0x41b600], edx
pop esi
pop ebx
ret
add dword [0x41b624], 0x2000
mov edx, dword [0x41b5f8]
mov dword [0x41b5fc], edx
call fcn.004099b8
mov ecx, dword [0x40f5ec]
test byte [ecx + 0x14], 1
je 0x409b9e
mov esi, dword [0x41b600]
mov ebx, dword [0x41b5fc]
jmp 0x409b95
call fcn.0040ad58
xor byte [ebx], al
mov al, byte [ebx]
and eax, 0xff
call fcn.0040ad7c
inc ebx
mov edx, esi
add esi, 0xffffffff
test edx, edx
jne 0x409b81
dec dword [0x41b600]
mov ecx, dword [0x41b5fc]
inc dword [0x41b5fc]
xor eax, eax
mov al, byte [ecx]
pop esi
pop ebx
ret

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

Disassembly:
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x409c77
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40ac9e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, eax
mov eax, edx
call fcn.0040ade8
mov eax, esp
mov ecx, 0xc
mov edx, ebx
call fcn.00406f60
xor ebx, ebx
call fcn.0040ad58
xor byte [esp + ebx], al
mov al, byte [esp + ebx]
and eax, 0xff
call fcn.0040ad7c
inc ebx
cmp ebx, 0xc
jl 0x40acbc
mov edx, dword [0x40f5ec]
xor eax, eax
mov al, byte [esp + 0xb]
test byte [edx + 0x14], 2
je 0x40acf5
movzx ecx, word [0x41b64a]
sar ecx, 8
jmp 0x40ad01
mov ecx, dword [0x41b650]
shr ecx, 0x18
movzx ecx, cx
movzx eax, ax
cmp ecx, eax
je 0x40ad0d
or eax, 0xffffffff
jmp 0x40ad50
mov edx, dword [0x41b600]
cmp edx, dword [0x40efc8]
jle 0x40ad23
mov ebx, dword [0x40efc8]
jmp 0x40ad29
mov ebx, dword [0x41b600]
mov esi, dword [0x41b5fc]
jmp 0x40ad45
call fcn.0040ad58
xor byte [esi], al
mov al, byte [esi]
and eax, 0xff
call fcn.0040ad7c
inc esi
mov edx, ebx
add ebx, 0xffffffff
test edx, edx
jne 0x40ad31
xor eax, eax
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x40ad7c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [0x41b810]
push ebx
mov ecx, edx
mov ebx, dword [0x41b5f0]
xor ecx, eax
and ecx, 0xff
shr edx, 8
mov ecx, dword [ebx + ecx*4]
xor ecx, edx
mov dword [0x41b810], ecx
and ecx, 0xff
add dword [0x41b814], ecx
imul edx, dword [0x41b814], 0x8088405
inc edx
mov dword [0x41b814], edx
shr edx, 0x18
mov ecx, dword [0x41b818]
xor edx, ecx
mov ebx, dword [0x41b5f0]
and edx, 0xff
shr ecx, 8
mov edx, dword [ebx + edx*4]
xor edx, ecx
mov dword [0x41b818], edx
pop ebx
ret

Function at 0x40afc4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jne 0x40afd8
xor eax, eax
jmp 0x40b0d0
call fcn.0040afbc
xor ebx, 0xffffffff
cmp edi, 8
jb 0x40b0ad
xor edx, edx
sub edi, 8
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x40afe9
test edi, edi
je 0x40b0cb
xor edx, edx
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
dec edi
mov ebx, ecx
jne 0x40b0b1
mov eax, ebx
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0x42ecbf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x445230]
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.00422a7c
mov dword [ebp - 0x14], eax
cmp dword [0x448e24], esi
jne 0x42edb2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42ed3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42ee92
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x42ee92
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42ee92
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x448e24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x448e28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x448e2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x448e34], eax
test eax, eax
je 0x42edaf
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x448e30], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42edd7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42edca
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42edec
push 4
pop eax
jmp 0x42ee94
cmp dword [ebp - 0x14], esi
je 0x42edec
push dword [0x448e24]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42edd1
mov eax, dword [0x448e30]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42ee4a
cmp dword [0x448e34], edi
je 0x42ee4a
push eax
call ebx
push dword [0x448e34]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42ee4a
test eax, eax
je 0x42ee4a
call ecx
test eax, eax
je 0x42ee3f
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 0x42ee3f
test byte [ebp - 8], 1
jne 0x42ee4a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x42ee7a
mov eax, dword [0x448e28]
cmp eax, edi
je 0x42ee77
push eax
call ebx
test eax, eax
je 0x42ee77
call eax
mov esi, eax
test esi, esi
je 0x42ee77
mov eax, dword [0x448e2c]
cmp eax, edi
je 0x42ee77
push eax
call ebx
test eax, eax
je 0x42ee77
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x448e24]
call ebx
test eax, eax
je 0x42ee92
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x42ee94
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ed55
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x750058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x7501a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x75007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x75006a
add dl, dl
jne 0x750089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7500dc
xor eax, eax
add dl, dl
jne 0x750096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x75017d
add dl, dl
jne 0x7500a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7500b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7500bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7500c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7500d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x750075
mov eax, 1
add dl, dl
jne 0x7500ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7500f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7500e1
sub eax, ebx
mov ebx, 1
jne 0x750128
mov ecx, 1
add dl, dl
jne 0x75010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x750119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x750105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x750075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x75013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x75014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x750136
cmp eax, 0x7d00
jae 0x75016d
cmp eax, 0x500
jb 0x750168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x750075
cmp eax, 0x7f
ja 0x750170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x750075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x75019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x750075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403ae0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
je 0x403c41
mov eax, dword [ebx + 0x24]
push 0x463cc0
push str.libusb_close
push 4
mov edi, dword [eax + 4]
push edi
call fcn.00404600
add esp, 0x10
push dword [edi + 0xb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jne 0x403ba6
lea eax, [edi + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0xf4]
mov edx, dword [edi + 0xf0]
lea eax, [ecx + 1]
mov dword [edi + 0xf4], eax
test ecx, ecx
jne 0x403b53
mov eax, edx
or eax, 0x20
mov dword [edi + 0xf0], eax
test edx, edx
jne 0x403b82
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x403b82
xor ecx, ecx
call fcn.00404900
push eax
push str.SetEvent_failed:__s
push str.usbi_signal_event
push 2
push 0
call fcn.00404600
add esp, 0x14
lea eax, [edi + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0xb4], 1
mov edx, ebx
mov ecx, edi
call fcn.00403900
test esi, esi
jne 0x403c41
lea esi, [edi + 0xd8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [edi + 0xf4], 0xffffffff
jne 0x403bd4
and dword [edi + 0xf0], 0xffffffdf
cmp dword [edi + 0xf0], 0
jne 0x403c08
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x403c08
xor ecx, ecx
call fcn.00404900
push eax
push str.ResetEvent_failed:__s
push str.usbi_clear_event
push 2
push 0
call fcn.00404600
add esp, 0x14
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
lea eax, [edi + 0x9c]
mov dword [edi + 0xb4], 0
push eax
call ebx
lea esi, [edi + 0xbc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
push esi
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4049f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov edi, edx
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
test edx, edx
je 0x404a81
cmp edx, 0x104
jae 0x404a81
mov ecx, edi
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404a30
sub ecx, ebx
lea eax, [edx + 6]
add eax, ecx
cmp eax, 0x104
jb 0x404a4c
push str.program_assertion_failed___library_path_buffer_overflow
jmp 0x404a86
push edi
lea eax, [ebp - 0x110]
add eax, edx
push str._s.dll
push eax
call fcn.00404800
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004129d8
mov esp, ebp
pop ebp
ret
push str.program_assertion_failed___could_not_get_system_directory
push str.load_system_library
push 1
push esi
call fcn.00404600
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004129d8
mov esp, ebp
pop ebp
ret