joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x7f0
mov eax, dword [0x41f060]
xor eax, esp
mov dword [esp + 0x7ec], eax
push 0x53484354
call fcn.004018d0
add esp, 4
test eax, eax
je 0x401cbf
mov eax, 1
mov ecx, dword [esp + 0x7ec]
xor ecx, esp
call fcn.0040a476
add esp, 0x7f0
ret
mov eax, dword [0x426498]
push ebx
push esi
push eax
push 4
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.0040a459
xor ebx, ebx
add esp, 0x10
xor esi, esi
cmp dword [esp + 0xc], ebx
jle 0x401ef0
mov edx, dword [0x426498]
push edx
push 4
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0040a459
mov ecx, dword [0x426498]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x3fc]
push 1
push eax
call fcn.0040a459
mov edx, dword [0x426498]
mov ecx, dword [esp + 0x28]
push edx
push 4
lea eax, [esp + 0x30]
push 1
push eax
mov byte [esp + ecx + 0x414], bl
call fcn.0040a459
mov ecx, dword [0x426498]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0xac]
push 1
push eax
call fcn.0040a459
mov edx, dword [0x426498]
mov ecx, dword [esp + 0x48]
add esp, 0x40
push edx
push 4
lea eax, [esp + 0x10]
push 1
push eax
mov byte [esp + ecx + 0x84], bl
call fcn.0040a459
mov ecx, dword [0x426498]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0xf0]
push 1
push eax
call fcn.0040a459
mov edx, dword [0x426498]
mov ecx, dword [esp + 0x28]
push edx
push 4
lea eax, [esp + 0x30]
push 1
push eax
mov byte [esp + ecx + 0x108], bl
call fcn.0040a459
mov ecx, dword [0x426498]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x318]
push 1
push eax
call fcn.0040a459
mov edx, dword [0x426498]
mov ecx, dword [esp + 0x48]
add esp, 0x40
push edx
push 4
lea eax, [esp + 0x10]
push 1
push eax
mov byte [esp + ecx + 0x2f0], bl
call fcn.0040a459
mov ecx, dword [0x426498]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x28]
push 1
push eax
call fcn.0040a459
mov ecx, dword [esp + 0x28]
add esp, 0x20
mov byte [esp + ecx + 0x10], bl
cmp dword [0x426a64], ebx
je 0x401e39
cmp byte [0x426d84], bl
je 0x401e39
lea edx, [esp + 0x10]
push edx
push 0x426d84
push str._s_s.lnk
lea eax, [esp + 0x1e8]
push eax
jmp 0x401e50
lea ecx, [esp + 0x10]
push ecx
push 0x426c80
push str._s_s.lnk
lea edx, [esp + 0x1e8]
push edx
call fcn.0040a6c6
add esp, 0x10
lea eax, [esp + 0x3e4]
push eax
push 0x426958
lea ecx, [esp + 0x6f8]
push str._s_s
push ecx
call fcn.0040a6c6
lea edx, [esp + 0xe8]
push edx
push 0x426958
lea eax, [esp + 0x604]
push str._s_s
push eax
call fcn.0040a6c6
lea ecx, [esp + 0x300]
push ecx
push 0x426958
lea edx, [esp + 0x510]
push str._s_s
push edx
call fcn.0040a6c6
lea eax, [esp + 0x518]
push eax
lea ecx, [esp + 0x620]
push ecx
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x72c]
push eax
lea ecx, [esp + 0x21c]
push ecx
call fcn.00401700
inc esi
add esp, 0x44
cmp esi, dword [esp + 0xc]
jl 0x401ce6
mov ecx, dword [esp + 0x7f4]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a476
add esp, 0x7f0
ret
Function at 0x402b80
Capabilities:
Get disk size

Disassembly:
sub esp, 0x330
mov eax, dword [0x41f060]
xor eax, esp
mov dword [esp + 0x32c], eax
mov eax, dword [esp + 0x334]
push esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x134]
push edx
lea ecx, [esp + 0x238]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0040af2f
movsx esi, byte [esp + 0x18]
add esp, 0x14
neg esi
push str.GetDiskFreeSpaceExA
sbb esi, esi
lea eax, [esp + 8]
push str.kernel32.dll
and esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402c1d
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
push ecx
push esi
call eax
test eax, eax
je 0x402c68
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop esi
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.0040a476
add esp, 0x330
ret
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x402c68
mov eax, dword [esp + 8]
mul dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push 0
push ecx
push edx
push eax
call fcn.0040af80
pop esi
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.0040a476
add esp, 0x330
ret
mov ecx, dword [esp + 0x330]
pop esi
xor ecx, esp
xor eax, eax
xor edx, edx
call fcn.0040a476
add esp, 0x330
ret
Function at 0x402dc0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x130
mov eax, dword [0x41f060]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x138]
sub eax, 1
push esi
mov esi, dword [esp + 0x138]
push edi
je 0x402fd6
sub eax, 0x110
jne case.0x402e13.15
movzx eax, word [esp + 0x144]
add eax, 0xfffffff4
cmp eax, 0x5e
ja case.0x402e13.15
movzx eax, byte [eax + 0x40305c]
jmp dword [eax*4 + 0x403038]
mov ecx, dword [0x4275cc]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x104
push 0x426958
push 0x66
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x426958
call fcn.00402b80
push edx
push eax
lea edx, [esp + 0x78]
push edx
call fcn.00402c90
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1c]
push str.Space_available:__s
push ecx
call fcn.0040a6c6
mov eax, dword [0x4275cc]
add esp, 0x1c
lea edx, [esp + 8]
push edx
push 0x6c
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
xor eax, eax
jmp 0x40301d
push 0x426780
lea ecx, [esp + 0xd4]
push 0x4193f0
push ecx
call fcn.0040a6c6
lea edx, [esp + 0xdc]
push edx
push 0x426958
call fcn.00402ad0
add esp, 0x14
test eax, eax
jne case.0x402e13.15
mov eax, dword [0x4275cc]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x426958
push 0x66
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
call edi
push 0x426958
call fcn.00402b80
push edx
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.00402c90
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x1c]
push str.Space_available:__s
push eax
call fcn.0040a6c6
mov edx, dword [0x4275cc]
add esp, 0x1c
lea ecx, [esp + 8]
push ecx
push 0x6c
push edx
call esi
push eax
call edi
xor eax, eax
jmp 0x40301d
xor eax, eax
cmp dword [0x426a5c], eax
sete al
mov dword [0x426a5c], eax
xor eax, eax
jmp 0x40301d
xor ecx, ecx
cmp dword [0x426a60], ecx
sete cl
xor eax, eax
mov dword [0x426a60], ecx
jmp 0x40301d
xor edx, edx
cmp dword [0x426a64], edx
sete dl
xor eax, eax
mov dword [0x426a64], edx
jmp 0x40301d
mov eax, dword [0x4275cc]
push 0x104
push 0x426958
push 0x66
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
call fcn.00402340
xor eax, eax
jmp 0x40301d
mov ecx, dword [0x4275cc]
push 0x104
push 0x426958
push 0x66
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
call fcn.004023d0
add esp, 4
xor eax, eax
jmp 0x40301d
call fcn.00402520
test eax, eax
je case.0x402e13.15
mov dword [0x426760], 1
xor eax, eax
jmp 0x40301d
cmp dword [0x426a5c], 0
mov edi, dword [sym.imp.USER32.dll_CheckDlgButton]
je 0x402fe9
push 1
jmp 0x402feb
push 0
push 0x68
push esi
call edi
cmp dword [0x426a60], 0
je 0x402ffd
push 1
jmp 0x402fff
push 0
push 0x69
push esi
call edi
cmp dword [0x426a64], 0
je 0x403011
push 1
jmp 0x403013
push 0
push 0x6a
push esi
call edi
mov eax, 1
mov ecx, dword [esp + 0x134]
pop edi
pop esi
xor ecx, esp
call fcn.0040a476
add esp, 0x130
ret 0x10
Function at 0x404eb0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x9c44
call fcn.0040a490
mov eax, dword [0x41f060]
xor eax, esp
mov dword [esp + 0x9c40], eax
mov ecx, dword [0x426498]
push ebx
mov ebx, dword [esp + 0x9c4c]
push ebp
push esi
mov esi, dword [esp + 0x9c58]
mov eax, dword [esi]
push edi
push 0
push eax
push ecx
call fcn.00409d82
mov ebp, dword [esp + 0x9c6c]
mov eax, ebp
sub eax, dword [esi]
add esp, 0xc
cmp eax, 0x9c40
jge 0x404f11
mov edx, dword [0x426498]
push edx
push eax
push 1
lea eax, [esp + 0x1c]
push eax
jmp 0x404f24
mov ecx, dword [0x426498]
push ecx
push 0x9c40
push 1
lea edx, [esp + 0x1c]
push edx
call fcn.0040a459
mov ecx, dword [ebx]
add esp, 0x10
mov edi, eax
push edi
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00408250
mov ecx, dword [esp + 0x9c50]
mov dword [ebx], eax
add dword [esi], edi
mov esi, dword [esi]
xor eax, eax
cmp esi, ebp
pop edi
pop esi
pop ebp
setge al
pop ebx
xor ecx, esp
call fcn.0040a476
add esp, 0x9c44
ret

Function at 0x404f70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x426498]
sub esp, 0x10
push esi
push 2
push 0xfffffffffffffff8
push eax
call fcn.00409d82
mov ecx, dword [0x426498]
push ecx
call fcn.0040a658
mov edx, dword [0x426498]
push edx
push 4
mov esi, eax
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0040a459
mov ecx, dword [0x426498]
push ecx
push 4
lea edx, [esp + 0x38]
push 1
push edx
call fcn.0040a459
add esp, 0x30
cmp esi, dword [esp + 8]
jne 0x404ff8
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
mov edi, edi
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00404eb0
add esp, 0xc
test eax, eax
je 0x404fd0
mov edx, dword [esp + 4]
cmp edx, dword [esp + 0x10]
jne 0x404ff8
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x40a476
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f060]
jne 0x40a480
repz ret
jmp fcn.0040d766

Function at 0x414a8c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00410e87
and dword [ebp - 4], 0
cmp dword [0x421570], 0
mov ebx, eax
jne 0x414b3d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414bee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41cb14
push edi
call esi
test eax, eax
je 0x414bee
push eax
call fcn.00410e15
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x421570], eax
call esi
push eax
call fcn.00410e15
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x421574], eax
call esi
push eax
call fcn.00410e15
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x421578], eax
call esi
push eax
call fcn.00410e15
pop ecx
mov dword [0x421580], eax
test eax, eax
je 0x414b3d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410e15
pop ecx
mov dword [0x42157c], eax
mov eax, dword [0x42157c]
cmp eax, ebx
je 0x414b95
cmp dword [0x421580], ebx
je 0x414b95
push eax
call fcn.00410e90
push dword [0x421580]
mov esi, eax
call fcn.00410e90
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414b95
test edi, edi
je 0x414b95
call esi
test eax, eax
je 0x414b8c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414b8c
test byte [ebp - 0xc], 1
jne 0x414b95
or dword [ebp + 0x10], 0x200000
jmp 0x414bce
mov eax, dword [0x421574]
cmp eax, ebx
je 0x414bce
push eax
call fcn.00410e90
pop ecx
test eax, eax
je 0x414bce
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414bce
mov eax, dword [0x421578]
cmp eax, ebx
je 0x414bce
push eax
call fcn.00410e90
pop ecx
test eax, eax
je 0x414bce
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x421570]
call fcn.00410e90
pop ecx
test eax, eax
je 0x414bee
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414bf0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402bd0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1cc
push esi
push edi
mov edi, str.239.255.255.255
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 8], 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x402c25
pop edi
xor eax, eax
pop esi
add esp, 0x1cc
ret
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402c43
pop edi
xor eax, eax
pop esi
add esp, 0x1cc
ret
push 0xfad
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0xffff
push esi
mov dword [esp + 0x2c], eax
call edi
cmp eax, 0xffffffff
jne 0x402c8d
pop edi
xor eax, eax
pop esi
add esp, 0x1cc
ret
mov eax, dword [0x7f8604]
push 1
push 0x402
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x402cc8
push 0x1010
push str.Errorm_Msg
push str.Failure_to_set_Async3_for_ServerR
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x1cc
ret
lea ecx, [esp + 0x14]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x402ce6
pop edi
xor eax, eax
pop esi
add esp, 0x1cc
ret
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 8
push eax
push 0xc
push 0
push esi
mov dword [esp + 0x24], 0
call edi
inc eax
pop edi
neg eax
sbb eax, eax
and eax, esi
pop esi
add esp, 0x1cc
ret
Function at 0x403740
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x194
lea eax, [esp + 4]
push esi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403772
push str.Error_in_WSAStartup___in_SocketMC__
call fcn.004053e7
add esp, 4
xor eax, eax
pop esi
add esp, 0x194
ret
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40379c
push str.Error_in_socket___in_SocketMC__
call fcn.004053e7
add esp, 4
xor eax, eax
pop esi
add esp, 0x194
ret
lea ecx, [esp + 7]
push 1
push ecx
push 0xa
push 0
push esi
mov byte [esp + 0x1b], 0x32
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4037cf
push 0x40f3c0
call fcn.004053e7
add esp, 4
xor eax, eax
pop esi
add esp, 0x194
ret
mov eax, esi
pop esi
add esp, 0x194
ret

Function at 0x4088a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fab8
cmp edx, dword [eax]
je 0x4088c3
add eax, 8
inc ecx
cmp eax, 0x40fb48
jl 0x4088b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fab8]
jne 0x4089f1
mov eax, dword [0x7f8780]
cmp eax, 1
je 0x4089cb
test eax, eax
jne 0x4088f4
cmp dword [0x40f488], 1
je 0x4089cb
cmp edx, 0xfc
je 0x4089f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40892b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a7f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407f10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40896e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407f10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d6bc
push edi
call fcn.00404fb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a7f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a800
lea eax, [ebp - 0xa0]
push 0x40d69c
push eax
call fcn.0040a800
push dword [esi + 0x40fabc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a800
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b593
add esp, 0x2c
pop edi
jmp 0x4089f1
lea eax, [ebp + 8]
lea esi, [esi + 0x40fabc]
push 0
push eax
push dword [esi]
call fcn.00407f10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x47b800
Capabilities:
Encode data using xor

Disassembly:
push ebx
and dword [ebx + 0x38], ebx
and cl, byte [0xcc9e4f7e]
invalid
Function at 0x405050
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x467c30]
xor eax, dword [esp + 0x108]
push ebx
push ebp
push esi
mov dword [esp + 0x110], eax
push edi
lea eax, [esp + 0x10]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, dword [esp + 0x11c]
mov ebx, dword [sym.imp.kernel32.dll_lstrlenA]
push esi
call ebx
mov ebp, dword [sym.imp.kernel32.dll_lstrcatA]
push 0x42c508
lea ecx, [esp + 0x14]
push ecx
call ebp
push esi
lea edx, [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
call ebx
inc eax
push eax
call fcn.00418790
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov ecx, dword [esp + 0x114]
xor ecx, dword [esp + 0x118]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
call fcn.004211fa
add esp, 0x108
ret 4

Function at 0x4050f0
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
mov dword [esi + 4], eax
pop esi
ret 0xc

Function at 0x405120
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40512d
mov eax, 0x42c33a
mov edx, dword [esp + 8]
push esi
lea esi, [ecx + 8]
mov ecx, dword [ecx]
push ecx
push 0x100
push esi
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
mov eax, esi
pop esi
ret 0xc
Function at 0x407ff0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x467c30]
xor eax, dword [esp + 0x10c]
push ebp
push esi
push 0
push 0x42caf8
push 0x42caf0
mov dword [esp + 0x11c], eax
mov dword [esp + 0x14], ecx
call fcn.004051a0
mov ecx, eax
call fcn.004050f0
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x4080a6
push ebx
mov ebx, dword [sym.imp.kernel32.dll_lstrcatA]
push edi
jmp 0x408040
push esi
lea eax, [esp + 0x18]
push 0x42cae4
push eax
call fcn.00421d14
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x42caf0
call fcn.004051a0
mov ecx, eax
call fcn.00405120
lea edx, [esp + 0x14]
push edx
push 0x104
mov edi, eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push 0x42c508
lea eax, [esp + 0x18]
push eax
call ebx
push edi
lea ecx, [esp + 0x18]
push ecx
call ebx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
call fcn.00407d90
inc esi
cmp esi, ebp
jl 0x408040
pop edi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, dword [esp + 0x114]
pop esi
pop ebp
add esp, 0x10c
jmp fcn.004211fa

Function at 0x408430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
dec ecx
imul ecx, edx
push ebx
mov ebx, dword [esp + 8]
add ebx, ecx
test eax, eax
push edi
mov dword [esp + 0xc], ebx
jle 0x40846a
mov ecx, edx
imul ecx, eax
lea edi, [ebx + edx]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x40855a
mov edx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x24], eax
jmp 0x408490
mov ebx, dword [esp + 0x14]
mov edi, edi
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov edi, ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], edi
jle 0x4084c2
mov ebx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, ebx
add ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x28]
xor bl, bl
test eax, eax
jle 0x408538
mov dword [esp + 0x18], eax
test bl, bl
jne 0x408510
movzx eax, byte [esi + ebp*2]
lea ecx, [esi + ebp*2]
movzx edx, byte [ecx + ebp]
mov ecx, dword [eax*4 + 0x42cb10]
mov edx, dword [edx*4 + 0x42cb10]
add edx, ecx
movzx ecx, byte [esi + ebp]
add edx, dword [ecx*4 + 0x42cb10]
movzx eax, byte [esi]
add edx, dword [eax*4 + 0x42cb10]
mov ecx, edx
inc esi
shr ecx, 8
mov bl, 1
mov al, cl
jmp 0x408516
xor bl, bl
mov al, dl
mov cl, dl
xor al, 0x10
shr al, 4
shl cl, 4
or al, cl
mov ecx, dword [esp + 0x14]
dec al
mov byte [ecx], al
mov eax, dword [esp + 0x18]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jne 0x4084d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
lea esi, [eax + ebp*4]
mov eax, dword [esp + 0x24]
sub edi, ecx
dec eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
jne 0x40848a
pop esi
pop ebp
pop edi
pop ebx
ret 0x24
Function at 0x408560
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub ecx, eax
push esi
mov esi, dword [esp + 0x10]
dec ecx
imul ecx, esi
add edx, ecx
test eax, eax
push edi
jle 0x408596
mov ecx, esi
imul ecx, eax
lea edi, [edx + esi]
mov esi, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x408618
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
push ebx
mov dword [esp + 0x14], eax
push ebp
lea esp, [esp]
test edi, edi
mov dword [esp + 0x24], esi
mov ebp, edx
jle 0x4085d4
mov ecx, edi
mov ebx, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x20]
add edx, edi
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x4085f8
lea esp, [esp]
mov al, byte [esi]
mov bl, al
xor bl, 0x10
shr bl, 4
shl al, 4
or bl, al
inc esi
dec bl
mov byte [edx], bl
inc edx
dec ecx
jne 0x4085e0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
lea esi, [eax + edx]
mov eax, dword [esp + 0x18]
sub ebp, ecx
dec eax
mov edx, ebp
mov dword [esp + 0x18], eax
jne 0x4085b0
pop ebp
pop ebx
pop edi
pop esi
ret 0x24