joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b823
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1008b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x3c], ecx
inc eax
xor esi, esi
push eax
push esi
push esi
push 6
push eax
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
mov dword [ebp - 0x5c], esi
xor eax, eax
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp ebx, 0xffffffff
je 0x1002b999
mov edi, dword [sym.imp.WS2_32.dll_htons]
push 2
pop eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x14], 0x25a207b9
mov dword [ebp - 0x10], 0x4660ddf3
mov dword [ebp - 0xc], 0xe576e98e
mov dword [ebp - 8], 0x3e06748c
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], eax
call edi
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x34]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1002b999
push 2
pop eax
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x3c]
push 0x32cb
mov dword [ebp - 0x20], eax
call edi
push esi
push esi
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x40]
push eax
push 4
lea eax, [ebp - 0x38]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0xc8000006
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x1002b984
cmp dword [ebp - 0x38], esi
je 0x1002b984
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [ebp - 0x38]
test eax, eax
jne 0x1002b929
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x1002b999
push esi
push 0x7d0
xor edi, edi
lea eax, [ebp - 0x4c]
inc edi
push edi
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
je 0x1002b94b
push ebx
call dword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x1002b999
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], esi
push eax
push edi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], esi
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x1002b999
push esi
push esi
push 0x7010
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1002b999
mov esi, edi
jmp 0x1002b999
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
push 1
test eax, eax
pop edi
cmove esi, edi
cmp dword [ebp - 0x4c], 0
je 0x1002b9a8
push dword [ebp - 0x4c]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
test esi, esi
jne 0x1002b9bb
cmp ebx, 0xffffffff
je 0x1002b9bb
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or ebx, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002eb22
mov esp, ebp
pop ebp
ret
Function at 0x1002d4c2
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x1008b008]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push edi
mov edi, edx
cmp dword [edi + 0x10], 0
je 0x1002d5a1
test ecx, ecx
je 0x1002d521
cmp dword [edi + 0x14], 0x10
jb 0x1002d4f2
mov ecx, dword [edi]
jmp 0x1002d4f4
mov ecx, edi
xor edx, edx
call fcn.1002b0ff
test eax, eax
je 0x1002d5a1
lea eax, [esp + 0xc]
push edi
push eax
call fcn.1002da9d
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1002d518
mov eax, dword [eax]
push ecx
push eax
push str.activeServer
jmp 0x1002d593
push str.servAddr
push 0x1007ef88
mov ebx, reloc.WS2_32.dll_bind
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
push str.servHost
push 0x1007ef88
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
cmp dword [edi + 0x14], 0x10
jb 0x1002d552
mov ecx, dword [edi]
jmp 0x1002d554
mov ecx, edi
xor edx, edx
call fcn.1002b0ff
test eax, eax
lea eax, [esp + 0xc]
push edi
push eax
je 0x1002d57d
call fcn.1002da9d
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1002d574
mov eax, dword [eax]
push ecx
push eax
push str.servAddr
jmp 0x1002d593
call fcn.1002da9d
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1002d58c
mov eax, dword [eax]
push ecx
push eax
push str.servHost
call fcn.1002b6c2
lea ecx, [esp + 0xc]
call fcn.10002a10
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.1002eb22
mov esp, ebp
pop ebp
ret

Function at 0x1002d64f
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x1006d847
call fcn.10066e10
mov esi, ecx
mov dword [ebp - 0x21c], esi
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.100344b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Logsignored
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.1001c700
mov eax, esi
call fcn.10066dcb
ret

Function at 0x1002dd32
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
shl eax, 4
lea esi, [ecx + 0x3c]
push 4
add esi, eax
pop ebx
xor edx, edx
mov edi, esi
mov al, byte [edi]
lea edi, [edi + 4]
xor byte [ecx + edx], al
inc edx
cmp edx, 4
jl 0x1002dd4a
inc esi
add ecx, 4
sub ebx, 1
jne 0x1002dd46
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1002de88
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1008b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x20], 4
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 8]
lea edi, [ecx + 4]
mov al, byte [esi - 8]
mov bl, byte [esi - 4]
mov dl, byte [esi]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x24], al
mov al, byte [esi - 0xc]
push eax
mov dword [ebp - 0x1c], eax
call fcn.1002e076
push dword [ebp - 0x24]
mov cl, al
call fcn.1002e076
xor cl, al
mov byte [ebp - 0x28], bl
mov eax, dword [ebp - 0x18]
xor cl, bl
xor cl, dl
xor cl, al
push eax
mov byte [edi - 4], cl
call fcn.1002e076
push dword [ebp - 0x28]
mov cl, al
call fcn.1002e076
xor cl, al
mov byte [ebp - 0x2c], dl
xor cl, byte [ebp - 0x1c]
xor cl, dl
xor cl, bl
push ebx
mov byte [edi], cl
call fcn.1002e076
push dword [ebp - 0x2c]
mov cl, al
call fcn.1002e076
xor cl, al
mov eax, dword [ebp - 0x1c]
xor cl, byte [ebp - 0x18]
xor cl, al
mov byte [ebp - 0x30], al
xor cl, dl
push edx
mov byte [edi + 4], cl
call fcn.1002e076
push dword [ebp - 0x30]
mov cl, al
call fcn.1002e076
xor cl, al
xor cl, byte [ebp - 0x18]
xor cl, bl
xor cl, byte [ebp - 0x1c]
mov byte [edi + 8], cl
inc edi
inc esi
sub dword [ebp - 0x20], 1
jne 0x1002deb1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002eb22
mov esp, ebp
pop ebp
ret
Function at 0x1002df60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1008b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x28], 4
lea edi, [ebp - 0x14]
lea edx, [ebp - 8]
mov dword [ebp - 0x24], edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ecx + 4]
mov dword [ebp - 0x20], esi
mov al, byte [edx - 8]
mov cl, byte [edx - 0xc]
mov dword [ebp - 0x1c], eax
mov al, byte [edx - 4]
mov dword [ebp - 0x18], eax
mov al, byte [edx]
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
call fcn.1002e08c
push ecx
mov bl, al
call fcn.1002e0fa
push dword [ebp - 0x18]
xor bl, al
call fcn.1002e0d5
push dword [ebp - 0x1c]
xor bl, al
call fcn.1002e0b0
xor bl, al
mov byte [esi - 4], bl
mov esi, dword [ebp - 0x2c]
push esi
call fcn.1002e0d5
mov edi, dword [ebp - 0x30]
mov bl, al
push edi
call fcn.1002e08c
push dword [ebp - 0x18]
xor bl, al
call fcn.1002e0b0
push dword [ebp - 0x1c]
xor bl, al
call fcn.1002e0fa
xor bl, al
mov eax, dword [ebp - 0x20]
push esi
mov byte [eax], bl
call fcn.1002e0b0
push edi
mov bl, al
call fcn.1002e0d5
push dword [ebp - 0x18]
xor bl, al
call fcn.1002e0fa
push dword [ebp - 0x1c]
xor bl, al
call fcn.1002e08c
xor bl, al
mov eax, dword [ebp - 0x20]
push esi
mov byte [eax + 4], bl
call fcn.1002e0fa
push edi
mov bl, al
call fcn.1002e0b0
push dword [ebp - 0x18]
xor bl, al
call fcn.1002e08c
push dword [ebp - 0x1c]
xor bl, al
call fcn.1002e0d5
mov esi, dword [ebp - 0x20]
xor bl, al
mov edx, dword [ebp - 0x24]
mov byte [esi + 8], bl
inc esi
inc edx
mov dword [ebp - 0x20], esi
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x24], edx
jne 0x1002df8f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002eb22
mov esp, ebp
pop ebp
ret
Function at 0x1002e674
Capabilities:
Encode data using xor

Disassembly:
push 0x2c
mov eax, 0x1006be28
call fcn.10066e10
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 8]
mov ebx, dword [edi + 0x10]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x38], eax
test bl, 0xf
je 0x1002e6ac
push 0x1007dcfc
call fcn.10002ad0
jmp 0x1002e7c2
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
call fcn.100055f0
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.100041e0
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x1002e6d9
mov edi, dword [edi]
mov ecx, dword [ebp - 0x14]
lea ebx, [ebp - 0x28]
cmp ecx, 0x10
cmovae ebx, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x1002e740
mov esi, dword [ebp - 0x30]
shr eax, 4
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x1002e701
mov eax, dword [esi]
jmp 0x1002e703
mov eax, esi
push 0
push ecx
push eax
mov edx, ebx
mov ecx, edi
call fcn.1002e2e8
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, ebx
sub esi, ebx
push 0x10
pop edx
mov al, byte [esi + ecx]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x1002e71d
mov esi, dword [ebp - 0x30]
add ebx, 0x10
mov dword [ebp + 0xc], edi
add edi, 0x10
sub dword [ebp - 0x2c], 1
jne 0x1002e6f4
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jae 0x1002e756
push 0x1007dcfc
mov ecx, esi
call fcn.10002ad0
jmp 0x1002e7ba
lea edi, [edx - 1]
cmp edx, edi
ja 0x1002e767
push str.invalid_string_position
call fcn.1003004e
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov bl, byte [eax + edi]
cmp bl, 0x10
ja 0x1002e748
xor bh, bh
test bl, bl
je 0x1002e7a9
mov edi, dword [ebp - 0x14]
movzx eax, bh
mov ecx, edx
sub ecx, eax
dec ecx
cmp edx, ecx
jbe 0x1002e75d
cmp edi, 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movsx ecx, byte [eax + ecx]
movzx eax, bl
cmp ecx, eax
jne 0x1002e748
inc bh
cmp bh, bl
jb 0x1002e782
movzx eax, bl
lea ecx, [ebp - 0x28]
sub edx, eax
push edx
push 0
push esi
call fcn.1001c760
lea ecx, [ebp - 0x28]
call fcn.10002a10
mov eax, esi
call fcn.10066dcb
ret
Function at 0x1002e9a0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push 0x2c
mov eax, 0x1006be28
call fcn.10066e10
mov eax, edx
mov dword [ebp - 0x30], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
mov edi, eax
xor esi, esi
mov dword [ebp - 0x38], esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1002e9c0
sub edi, ecx
mov dword [ebp - 0x18], esi
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
call fcn.100055f0
mov dword [ebp - 4], esi
test edi, edi
je 0x1002eabb
mov edx, dword [ebp - 0x30]
movsx eax, byte [esi + edx]
inc esi
mov cl, byte [eax + 0x1007cdd8]
cmp esi, edi
jae 0x1002e9fe
cmp cl, 0xff
je 0x1002e9ea
cmp cl, 0xff
je 0x1002eabb
movsx eax, byte [esi + edx]
inc esi
mov al, byte [eax + 0x1007cdd8]
mov byte [ebp - 0x29], al
cmp esi, edi
jae 0x1002ea1d
cmp al, 0xff
je 0x1002ea07
cmp al, 0xff
je 0x1002eabb
sar al, 4
and al, 3
shl cl, 2
or al, cl
lea ecx, [ebp - 0x28]
movzx eax, al
push eax
push 1
call fcn.10005710
mov ecx, dword [ebp - 0x30]
mov al, byte [esi + ecx]
inc esi
cmp al, 0x3d
je 0x1002eabb
movsx eax, al
mov al, byte [eax + 0x1007cdd8]
mov byte [ebp - 0x2a], al
cmp esi, edi
jae 0x1002ea5c
cmp al, 0xff
je 0x1002ea40
cmp al, 0xff
je 0x1002eabb
mov cl, byte [ebp - 0x29]
sar al, 2
and al, 0xf
shl cl, 4
or al, cl
lea ecx, [ebp - 0x28]
movzx eax, al
push eax
push 1
call fcn.10005710
mov eax, dword [ebp - 0x30]
mov al, byte [esi + eax]
inc esi
cmp al, 0x3d
je 0x1002eabb
movsx eax, al
mov cl, byte [eax + 0x1007cdd8]
cmp esi, edi
jae 0x1002ea98
cmp cl, 0xff
je 0x1002ea7b
cmp cl, 0xff
je 0x1002eabb
mov al, byte [ebp - 0x2a]
shl al, 6
or al, cl
lea ecx, [ebp - 0x28]
movzx eax, al
push eax
push 1
call fcn.10005710
cmp esi, edi
jb 0x1002e9e7
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.10002a50
lea ecx, [ebp - 0x28]
call fcn.10002a10
mov eax, ebx
call fcn.10066dcb
ret

Function at 0x10046703
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10046582

Function at 0x10052af2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10004cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x10004d02
lea esp, [esp]
test cl, 3
je 0x10004d02
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x169ba460]
add ecx, 1
sub esi, 1
jne 0x10004ce0
cmp esi, 0x20
push ebx
push edi
jb 0x10004eec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x169ba860]
xor edx, dword [ebx*4 + 0x169bac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x169ba460]
add ecx, 4
xor edx, dword [eax*4 + 0x169bb060]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x169ba860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x169bac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x169ba460]
add ecx, 4
xor eax, dword [edx*4 + 0x169bb060]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x169ba860]
xor edx, dword [ebx*4 + 0x169bac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x169ba460]
xor edx, dword [eax*4 + 0x169bb060]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x169ba860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x169bac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x169ba460]
xor eax, dword [edx*4 + 0x169bb060]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x169ba860]
xor edx, dword [ebx*4 + 0x169bac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x169ba460]
xor edx, dword [eax*4 + 0x169bb060]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x169ba860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x169bac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x169ba460]
and edx, 0xff
xor eax, dword [edx*4 + 0x169bb060]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x169ba860]
xor edx, dword [ebx*4 + 0x169bac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x169ba460]
add ecx, 4
xor edx, dword [eax*4 + 0x169bb060]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x169ba860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x169bac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x169ba460]
and edx, 0xff
xor eax, dword [edx*4 + 0x169bb060]
sub edi, 1
jne 0x10004d12
cmp esi, 4
jb 0x10004f39
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x169ba860]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x169bac60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x169ba460]
and eax, 0xff
xor edi, dword [eax*4 + 0x169bb060]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x10004ef6
test esi, esi
pop edi
pop ebx
je 0x10004f5d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x169ba460]
add ecx, 1
sub esi, 1
jne 0x10004f40
not eax
pop esi
ret
Function at 0x4010c2
Capabilities:
Terminate process

Disassembly:
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0xc]
call fcn.00401146
add esp, 0xc
mov dword [0x415138], eax
test eax, eax
jne 0x4010ed
call fcn.00402226
test eax, eax
mov dword [0x415138], eax
je 0x401113
jle 0x40110c
cmp dword [0x4150ec], 0
jne 0x40110c
push 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402f63
add esp, 0x10
call fcn.004049d5
jmp 0x401135
call fcn.004049d5
test eax, eax
mov dword [0x415138], eax
je 0x401135
push 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402f63
add esp, 0x10
push dword [0x415138]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401240
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x104
test eax, eax
jne 0x401300
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push dword [0x415148]
mov dword [ebp - 0xc], 1
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.ProgramFilesDir
push dword [ebp - 4]
call ebx
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401417
pop ecx
mov dword [0x4151b4], eax
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push dword [0x415148]
mov dword [ebp - 8], edi
push eax
push 0
push str.CommonFilesDir
push dword [ebp - 4]
call ebx
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401417
pop ecx
mov dword [0x4151b8], eax
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [0x415148]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401417
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
mov dword [0x4151bc], eax
push str.SYSTEM32
push dword [0x415148]
call ebx
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401417
pop ecx
mov dword [0x4151c4], eax
pop ecx
push edi
push dword [0x415148]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401417
pop ecx
mov dword [0x4151c0], eax
pop ecx
push dword [0x415148]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x415148]
cmp byte [ecx + eax - 1], 0x5c
lea eax, [ecx + eax - 1]
jne 0x40139f
and byte [eax], 0
push dword [0x415148]
call fcn.0040149e
test eax, eax
pop ecx
je 0x4013cc
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401417
pop ecx
mov dword [0x4151c8], eax
pop ecx
jmp 0x401412
push dword [0x4151bc]
push dword [0x415148]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.TEMP
push dword [0x415148]
call ebx
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401417
push dword [0x415148]
mov dword [0x4151c8], eax
call fcn.00401516
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40144c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and byte [ebp - 8], 0
push edi
xor eax, eax
lea edi, [ebp - 7]
cmp dword [0x41519c], eax
stosd dword es:[edi], eax
pop edi
je 0x40149a
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push 0x4140b0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
push dword [0x41519c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x4152d8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
leave
ret
xor eax, eax
leave
ret
Function at 0x40149e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4014b0
xor eax, eax
ret
shr eax, 4
and eax, 1
ret

Function at 0x401516
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401597
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
and byte [ebp - 0x104], 0
push 0x40
mov edx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp edx, 0xb7
pop edi
je 0x401597
cmp edx, 5
jne 0x401564
push 7
pop eax
jmp 0x401599
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0040159c
pop ecx
test eax, eax
pop ecx
je 0x401597
lea eax, [ebp - 0x104]
push eax
call fcn.00401516
test eax, eax
pop ecx
jne 0x401597
push eax
push dword [ebp + 8]
call esi
neg eax
sbb eax, eax
inc eax
jmp 0x401599
xor eax, eax
pop esi
leave
ret

Function at 0x401670
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
push 3
pop ebx
xor edi, edi
push 0x100
push edi
push dword [esp + 0x18]
call fcn.00401756
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40172b
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call fcn.00401a0f
mov ebp, eax
pop ecx
cmp ebp, ebx
jne 0x4016b2
push 0xd
pop ebx
jmp 0x401723
push edi
push ebp
push esi
call fcn.004017f8
push 4
push 0x415100
push esi
call fcn.0040180d
mov eax, dword [0x415100]
add esp, 0x18
cmp eax, edi
je 0x4016dc
push eax
call fcn.0040712a
pop ecx
mov edi, eax
push dword [0x415100]
push edi
push esi
call fcn.0040180d
push dword [0x415100]
push edi
call fcn.00401ad7
push dword [0x415100]
push edi
call fcn.00401b0f
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x401718
mov eax, dword [0x415100]
lea eax, [eax + ebp + 4]
mov dword [0x415104], eax
test edi, edi
je 0x401723
push edi
call fcn.004070fb
pop ecx
push esi
call fcn.00401851
pop ecx
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x402053
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40208e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x402075
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x402086
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x402090
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40206b
xor eax, eax
pop edi
pop esi
ret