joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4939a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c2d70]
jne 0x4939b0
repz ret
jmp fcn.0049852f

Function at 0x4968c0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c2d70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00490d92
and dword [ebp - 0x14], 0
cmp dword [0x4c5bfc], 0
mov dword [ebp - 0x18], eax
jne 0x496973
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x496a1b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x49ffe0
push ebx
call edi
test eax, eax
je 0x496a1b
mov esi, dword [fcn.0048d020]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c5bfc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c5c00], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c5c04], eax
call edi
push eax
call esi
mov dword [0x4c5c0c], eax
test eax, eax
je 0x496973
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c5c08], eax
mov eax, dword [0x4c5c08]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0048d024]
cmp eax, ecx
je 0x4969cc
cmp dword [0x4c5c0c], ecx
je 0x4969cc
push eax
call esi
push dword [0x4c5c0c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4969cc
test ebx, ebx
je 0x4969cc
call edi
test eax, eax
je 0x4969c3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4969c3
test byte [ebp - 8], 1
jne 0x4969cc
or dword [ebp + 0x10], 0x200000
jmp 0x4969ff
mov eax, dword [0x4c5c00]
cmp eax, dword [ebp - 0x18]
je 0x4969ff
push eax
call esi
test eax, eax
je 0x4969ff
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4969ff
mov eax, dword [0x4c5c04]
cmp eax, dword [ebp - 0x18]
je 0x4969ff
push eax
call esi
test eax, eax
je 0x4969ff
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c5bfc]
call esi
test eax, eax
je 0x496a1b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x496a1d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004939a6
leave
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x9ec058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009ec1a8
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 0x9ec07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ec06a
add dl, dl
jne 0x9ec089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ec0dc
xor eax, eax
add dl, dl
jne 0x9ec096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ec17d
add dl, dl
jne 0x9ec0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ec0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ec0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ec0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9ec0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9ec075
mov eax, 1
add dl, dl
jne 0x9ec0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ec0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ec0e1
sub eax, ebx
mov ebx, 1
jne 0x9ec128
mov ecx, 1
add dl, dl
jne 0x9ec10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ec119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ec105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ec075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9ec13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ec14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ec136
cmp eax, 0x7d00
jae 0x9ec16d
cmp eax, 0x500
jb 0x9ec168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ec075
cmp eax, 0x7f
ja 0x9ec170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ec075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9ec19e
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 0x9ec075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402520
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x548090], 0
push ebx
push esi
push edi
jne 0x40258f
push 0x10
call fcn.004c8893
add esp, 4
mov esi, eax
mov dword [ebp - 8], esi
mov dword [0x548090], esi
push 0
push 0
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esi + 4], 0
jne 0x40258f
push 0
mov dword [esi + 8], fcn.00421aa0
mov dword [esi + 0xc], 0x421af0
call fcn.00421aa0
add esp, 4
mov dword [esi + 4], eax
mov dword [ebp - 4], 0x548098
nop word [eax + eax]
mov esi, dword [0x548098]
mov ebx, esi
mov edi, dword [0x54809c]
add ebx, 1
mov ecx, edi
mov dword [ebp - 8], edi
adc ecx, 0
mov eax, esi
mov edx, edi
mov edi, dword [ebp - 4]
lock cmpxchg8b qword [edi]
mov edi, dword [ebp - 8]
cmp eax, esi
jne 0x4025a0
cmp edx, edi
jne 0x4025a0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4041f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50391b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x541074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
mov dword [ebp - 0x238], 0
call fcn.004e2480
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
cmp word [ebp - 0x21c], ax
jne 0x40427b
xor ecx, ecx
jmp 0x404293
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404284
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00402f90
push 2
push 0
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.004046b0
mov ecx, dword [ebp - 0x220]
cmp ecx, 8
jb 0x4042db
inc ecx
push ecx
push dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.00403ab0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c8882
mov esp, ebp
pop ebp
ret 4

Function at 0x4061d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x14], ecx
mov eax, edx
xor bl, bl
push edi
mov dword [ebp - 0xc], eax
cmp dword [ecx + 0x10], esi
je 0x406306
cmp dword [eax + 0x10], esi
je 0x406306
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.00402c40
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
je 0x406306
push 0x546e5c
push eax
call fcn.004c8d71
mov edi, eax
add esp, 8
test edi, edi
je 0x406306
mov ecx, dword [ebp - 0xc]
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00402c40
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4062f0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4062f0
mov eax, dword [ebp - 0x10]
push 0x546e5c
push 0x100
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0xc], ecx
call fcn.004c8d71
mov esi, eax
add esp, 8
test esi, esi
je 0x4062f0
mov ecx, dword [ebp - 0x14]
call fcn.00402c40
push eax
push dword [ebp - 0xc]
push str.StringFileInfo_08lx_s
push 0x80
push esi
call fcn.004061b0
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4062ee
mov edx, dword [ebp - 0x1c]
cmp word [edx], 0
jne 0x4062d0
xor ecx, ecx
jmp 0x4062e4
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4062d5
sub ecx, ebx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.00402f90
mov bl, 1
push edi
call fcn.004c8d6c
add esp, 4
test esi, esi
je 0x406306
push esi
call fcn.004c8d6c
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408390
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x541074]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push edi
mov edi, dword [ebp + 0x10]
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40840e
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
push edi
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40840e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x40840e
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c8882
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004c8882
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4092f0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503e56
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x541074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40951e
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x409390
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40951e
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x264]
mov esi, dword [ebp - 0x238]
mov edi, dword [ebp - 0x228]
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], edi
cmp ecx, eax
jae 0x4093fe
mov edx, ecx
mov ecx, dword [ebp - 0x24c]
cmp ecx, edx
ja 0x4093fe
mov esi, edx
sub esi, ecx
sar esi, 3
cmp eax, dword [ebp - 0x244]
jne 0x4093eb
push ecx
lea ecx, [ebp - 0x24c]
call fcn.004096b0
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0x24c]
lea edx, [ecx + esi*8]
test eax, eax
je 0x409427
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
jmp 0x409421
cmp eax, dword [ebp - 0x244]
jne 0x409418
push ecx
lea ecx, [ebp - 0x24c]
call fcn.004096b0
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x409427
mov dword [eax], esi
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x248]
add eax, 8
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409390
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x258]
call fcn.00409560
mov ecx, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
push eax
lea edx, [ebp - 0x24c]
call fcn.00409250
mov edi, dword [ebp - 0x254]
add esp, 4
mov esi, dword [ebp - 0x258]
cmp esi, edi
je 0x4094ea
nop dword [eax]
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
je 0x4094dd
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4094dd
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x4094b0
mov esi, dword [ebp - 0x258]
test esi, esi
je 0x40951e
mov eax, dword [ebp - 0x250]
sub eax, esi
sar eax, 2
push eax
push esi
call fcn.00409870
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x40953a
mov eax, dword [ebp - 0x244]
sub eax, ecx
sar eax, 3
push eax
push ecx
call fcn.004098d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8882
mov esp, ebp
pop ebp
ret
Function at 0x40a780
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x541074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], esi
cmp dword [0x548318], 0
push edi
jne 0x40a8e0
push 0x208
lea eax, [ebp - 0x250]
mov dword [ebp - 0x254], 0
push 0
push eax
mov dword [ebp - 0x258], 0x34
call fcn.004e2480
add esp, 0xc
lea eax, [ebp - 0x250]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40a892
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c8b41
add esp, 4
mov edi, eax
lea eax, [ebp - 0x250]
push edi
push ebx
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40a885
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x254]
push eax
push 0x51bb3c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40a885
mov ecx, dword [ebp - 0x254]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x48]
push 0x51f45c
push eax
call fcn.0040b910
add esp, 0x18
push 2
push edi
call fcn.004c8b33
add esp, 8
jmp 0x40a8ab
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x48]
push 0x51f45c
push eax
call fcn.0040b910
add esp, 0x18
cmp word [ebp - 0x48], 0
jne 0x40a8b6
xor ecx, ecx
jmp 0x40a8cf
lea ecx, [ebp - 0x48]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a8c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x48]
mov ecx, 0x548308
push eax
call fcn.00402f90
mov ecx, esi
push 0xffffffffffffffff
push 0
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
push 0x548308
mov word [esi], ax
call fcn.004034d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c8882
mov esp, ebp
pop ebp
ret
Function at 0x40aa40
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503fe3
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x541074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], 0
mov dword [ebp - 4], 0
cmp dword [0x548348], 0
je 0x40aac2
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
push 0x548338
mov word [esi], ax
call fcn.004034d0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x40ac28
inc ecx
push ecx
jmp 0x40ac1d
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004e2480
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp word [ebp - 0x220], 0
jne 0x40aafb
xor ecx, ecx
jmp 0x40ab13
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab04
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
mov edi, 0x548338
push eax
mov ecx, edi
call fcn.00402f90
cmp dword [ebp + 0x18], 0
je 0x40abbf
push 0x51bb3c
mov edx, edi
lea ecx, [ebp - 0x250]
call fcn.00404d30
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x238]
call fcn.00404eb0
add esp, 8
mov ecx, edi
push eax
call fcn.00402ce0
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x40ab81
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00403ab0
xor eax, eax
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x228], 0
cmp eax, 8
jb 0x40abbf
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.00403ab0
cmp dword [0x54834c], 8
mov eax, edi
cmovae eax, dword [0x548338]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40abf1
cmp dword [0x54834c], 8
push eax
cmovae edi, dword [0x548338]
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x548338
mov word [esi], ax
call fcn.004034d0
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x40ac28
inc eax
push eax
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00403ab0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8882
mov esp, ebp
pop ebp
ret
Function at 0x40ad50
Capabilities:
Convert ip address from string
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x288
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x288
call fcn.004e7902
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
je 0x40ae10
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 4]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x40adac
push edi
call fcn.004e7744
add esp, 4
push dword [ebp - 4]
call fcn.004e7902
mov edi, eax
mov dword [ebp - 8], eax
add esp, 4
test edi, edi
je 0x40ae10
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
jne 0x40ae10
mov esi, edi
test edi, edi
je 0x40ae10
mov edi, dword [ebp - 0xc]
mov eax, dword [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x1b0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40ae07
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b9b0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
mov esi, dword [esi]
test esi, esi
jne 0x40adc0
mov edi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x40ae25
push edi
call fcn.004e7744
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5041b6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x541074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004c8893
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004c6ec0
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5041b6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x541074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004c8893
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004c6ec0
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4137b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4137bb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x413877
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x51be90]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x51be90]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x51be90]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x51be90]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x51be90]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x51be90]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x51be90]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x51be90]
sub edi, 1
jne 0x4137d0
pop edi
test esi, esi
je 0x41389a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x51be90]
sub esi, 1
jne 0x413880
not ecx
mov eax, ecx
pop esi
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x51be90]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x51be90]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

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

Disassembly:
push ebx
push esi
mov bl, dl
mov edx, ecx
push edi
mov edi, dword [edx + 8]
mov esi, edi
mov ecx, dword [edx]
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x51be90]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x51be90]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret