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

Disassembly:
push esi
push ebx
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], esi
pop ebx
pop esi
jmp 0x6adc51b0

Function at 0x6adc5800
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov dword [esp], ebp
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, 0xffffffff
je 0x6adc58d8
mov ebx, 0x100000
mov esi, eax
mov dword [esp], 0
cmp edi, ebx
cmovbe ebx, edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x6adc58b1
mov eax, dword [esp + 0x2c]
cmp ebx, eax
jb 0x6adc5888
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x240
mov dword [esp + 4], str.src_win32_replacements.c
mov dword [esp], str.result___count
call dword [0x6add9074]
mov eax, dword [esp + 0x2c]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], ebp
mov dword [esp], eax
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error_reading__zu_bytes_from_fd__d
call fcn.6add80c9
mov eax, esi
call fcn.6adc5190
or eax, 0xffffffff
jmp 0x6adc5879

Function at 0x6adc58e0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov dword [esp], ebp
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, 0xffffffff
je 0x6adc59b8
mov ebx, 0x100000
mov esi, eax
mov dword [esp], 0
cmp edi, ebx
cmovbe ebx, edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x6adc5991
mov eax, dword [esp + 0x2c]
cmp ebx, eax
jb 0x6adc5968
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x258
mov dword [esp + 4], str.src_win32_replacements.c
mov dword [esp], str.result___count
call dword [0x6add9074]
mov eax, dword [esp + 0x2c]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], ebp
mov dword [esp], eax
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error_writing__zu_bytes_to_fd__d
call fcn.6add80c9
mov eax, esi
call fcn.6adc5190
or eax, 0xffffffff
jmp 0x6adc5959
Function at 0x6adc5dc0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
test ebx, ebx
je 0x6adc5df3
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x6add9074]
nop
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.ADVAPI32.dll_SystemFunction036
sub esp, 8
test al, al
je 0x6adc5dfb
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x6adefb58
mov dword [esp], eax
call fcn.6add80c9
mov dword [esp + 8], 0x2f2
mov dword [esp + 4], str.src_win32_replacements.c
mov dword [esp], 0x6adefb9a
call edi
jmp 0x6adc5de0

Function at 0x6adc65e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6add47b0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6add47b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x6adc6640
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6ae1f0a4]
test esi, esi
jle 0x6adc6760
mov eax, dword [0x6ae1f0a8]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6adc6674
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6adc66f7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6adc6660
mov dword [esp], ebx
call fcn.6adc6e20
mov edi, eax
test eax, eax
je 0x6adc6787
mov eax, dword [0x6ae1f0a8]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6adc6f60
mov edx, dword [0x6ae1f0a8]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6adc6767
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6adc66f0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6adc6700
add dword [0x6ae1f0a4], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6ae1f0a8]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6adc66f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6adc65e0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6adc667e
mov eax, dword [0x6ae1f0a8]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6adc65e0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6adc65e0
lea esi, [esi]
nop

Function at 0x6adc6aa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6ae1f0b4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6ae1f0ac]
sub esp, 4
test ebx, ebx
je 0x6adc6af5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6adc6aee
test esi, esi
je 0x6adc6aee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6adc6ad0
mov dword [esp], 0x6ae1f0b4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6adc6e20
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6ad80000], 0x5a4d
jne 0x6adc6e45
mov ecx, dword [0x6ad8003c]
cmp dword [ecx + 0x6ad80000], 0x4550
lea edx, [ecx + 0x6ad80000]
je 0x6adc6e50
ret
cmp word [ecx + 0x6ad80018], 0x10b
jne 0x6adc6e45
push esi
movzx eax, word [ecx + 0x6ad80014]
push ebx
movzx esi, word [ecx + 0x6ad80006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6ad80000
test esi, esi
je 0x6adc6e98
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6adc6e8e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6adc6e9a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6adc6e80
xor eax, eax
pop ebx
pop esi
ret
Function at 0x6add6d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, edx
xor edx, edx
push edi
mov edi, ecx
xor ecx, ecx
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
jne 0x6add6d7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.__ls_:_Cant_open_file_for_writing
call fcn.6add80c9
mov eax, 0x2f
jmp 0x6add6e09
mov esi, eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x14
test eax, eax
je 0x6add6dba
cmp dword [esp + 0x2c], edi
je 0x6add6ddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.__ls_:_Cant_write_file
mov dword [esp], eax
call fcn.6add80c9
mov dword [esp], esi
call ebp
push ecx
jmp 0x6add6e04
mov dword [esp], esi
call ebp
push edx
mov edx, eax
xor eax, eax
test edx, edx
jne 0x6add6e09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.__ls_:_Cant_close_handle
mov dword [esp], eax
call fcn.6add80c9
mov eax, 0x48
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401189
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4011c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011b0
cmp esi, eax
jb 0x4011ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402d50
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x4a8e28
push eax
call fcn.0048304e
mov esi, eax
add esp, 8
test esi, esi
jne 0x402d6d
pop esi
ret 0xc
push ebx
push edi
push 2
push 0
push esi
call fcn.00482f03
push esi
call fcn.00482e0b
push 0
push 0
push esi
mov edi, eax
call fcn.00482f03
push edi
call fcn.00451e0a
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x402dbe
push ebp
push esi
push edi
push 1
push ebx
call fcn.00482c51
push esi
mov ebp, eax
call fcn.00482935
add esp, 0x14
cmp ebp, edi
pop ebp
je 0x402dc6
push ebx
call fcn.00451dff
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
ret 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], ebx
mov dword [edx], edi
pop edi
pop ebx
mov eax, 1
pop esi
ret 0xc
Function at 0x4030d0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x49df56
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x4eed38]
xor eax, esp
mov dword [esp + 0x844], eax
push ebp
push esi
push edi
mov eax, dword [0x4eed38]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
mov edi, dword [esp + 0x868]
mov dword [esp + 0x2c], ecx
test edi, edi
je 0x403325
lea ecx, [esp + 0x10]
call fcn.0045bc62
push 0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x868], 0
call fcn.0045bcfa
lea ecx, [esp + 0x10]
test eax, eax
jne 0x40314f
call fcn.0045b847
jmp 0x403311
call fcn.0045b847
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x44e]
push ecx
mov word [esp + 0x450], ax
call fcn.00482280
push edi
lea edx, [esp + 0x454]
push str._s.
push edx
call fcn.00483065
add esp, 0x18
push 0
lea eax, [esp + 0x448]
push eax
lea ecx, [esp + 0x18]
call fcn.0045bcfa
test eax, eax
je 0x403301
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
call fcn.0045b92d
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], eax
call fcn.0045bc23
test eax, eax
jne 0x4032f6
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x3e]
push edx
mov word [esp + 0x40], cx
call fcn.00482280
add esp, 0xc
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.0045bf8a
mov esi, eax
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x860], 1
jge 0x40321d
push 0x104
mov ecx, esi
call fcn.00401560
mov ecx, dword [esi]
lea edx, [esp + 0x34]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x403223
mov byte [esp + 0x860], al
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40325b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x14]
call eax
push 0x206
push 0
test eax, eax
je 0x4032ba
lea edx, [esp + 0x246]
xor ecx, ecx
push edx
mov word [esp + 0x248], cx
call fcn.00482280
lea eax, [esp + 0x40]
push eax
push edi
lea ecx, [esp + 0x250]
push 0x4a8e54
push ecx
call fcn.00483065
mov ecx, dword [esp + 0x48]
add esp, 0x1c
lea edx, [esp + 0x23c]
push edx
call fcn.004030d0
jmp 0x4032f6
lea ecx, [esp + 0x656]
xor eax, eax
push ecx
mov word [esp + 0x658], ax
call fcn.00482280
lea edx, [esp + 0x40]
push edx
push edi
lea eax, [esp + 0x660]
push 0x4a8e54
push eax
call fcn.00483065
add esp, 0x1c
lea ecx, [esp + 0x64c]
push ecx
call ebp
cmp dword [esp + 0x28], 0
jne 0x4031a8
lea ecx, [esp + 0x10]
call fcn.0045b847
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x10]
mov dword [esp + 0x860], 0xffffffff
call fcn.0045bc8b
mov eax, 1
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x844]
xor ecx, esp
call fcn.004820da
add esp, 0x854
ret 4
Function at 0x403390
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x4033a0
mov eax, 1
ret 4
mov dword [esp + 4], eax
jmp fcn.004030d0
Function at 0x407b51
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
call fcn.0046a918
mov eax, dword [esi + 0x134]
lea ecx, [esi + 0x238]
push ecx
lea ecx, [esi + 0x234]
mov dword [esi + 0x240], eax
call fcn.00401c20
lea ecx, [esi + 0x138]
call fcn.00439f50
push 1
push 0x446
mov ecx, esi
call fcn.0045913e
mov ecx, eax
call fcn.00454e42
mov ecx, dword [esi + 0x254]
sub ecx, dword [esi + 0x250]
mov eax, 0xad9af4d
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
je 0x407c2a
push ebp
push edi
xor ebp, ebp
lea esp, [esp]
mov ecx, dword [esi + 0x254]
sub ecx, dword [esi + 0x250]
mov eax, 0xad9af4d
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x407be6
call fcn.00483a9b
mov edi, dword [esi + 0x250]
push ebx
lea ecx, [esi + 0x88]
add edi, ebp
call fcn.0045f5ba
mov byte [edi + 0xbc8], al
mov ecx, dword [esi + 0x254]
sub ecx, dword [esi + 0x250]
mov eax, 0xad9af4d
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add ebp, 0xbcc
cmp ebx, eax
jb 0x407bc0
pop edi
pop ebp
cmp dword [esi + 0x240], 0
je 0x407c48
mov eax, dword [esi + 0x23c]
cmp dword [eax - 0xc], 2
jle 0x407c48
push eax
call fcn.004471f0
add esp, 4
mov eax, dword [esi + 0x260]
cmp dword [eax - 0xc], 0
je 0x407c7f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407c71
mov ecx, dword [esi + 0x260]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esi + 0x260]
push edx
mov ecx, esi
call fcn.004071b0
pop esi
pop ebx
ret

Function at 0x40a800
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40a833
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
movzx esi, byte [edx]
xor esi, eax
shr ax, 8
and esi, 0xff
xor ax, word [esi*2 + 0x4aad50]
dec ecx
inc edx
movzx eax, ax
test ecx, ecx
jne 0x40a811
pop esi
ret
mov ax, word [esp + 4]
ret

Function at 0x40cca0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4eed38]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x21c]
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00482280
add esp, 0xc
push edi
push 1
push str.EnableFilter
push str.PortSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x4ab8d8
push str.FilterPort
push str.PortSetting
mov dword [esi + 0x110], eax
call ebx
push 0x2c
lea eax, [esi + 0x114]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040c700
push edi
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x4a8ca8
push str.FixPort
push str.PortSetting
call ebx
push 0x2c
lea eax, [esi + 0x130]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040c700
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004820da
add esp, 0x20c
ret 4
Function at 0x40cf50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49ece3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4eed38]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.0046812b
mov dword [esp + 0x18], 0
mov dword [esi], vtable.CDLCmdLine.0
lea edi, [esi + 0x28]
call fcn.00459da6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40cfa9
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 0
push 0x4a8ca8
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.00401890
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 3
mov dword [esi + 0x2c], 0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x412590
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x49f586
mov eax, dword fs:[0]
push eax
mov eax, 0x2020
call fcn.004831d0
mov eax, dword [0x4eed38]
xor eax, esp
mov dword [esp + 0x201c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eed38]
xor eax, esp
push eax
lea eax, [esp + 0x2034]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2048]
mov edi, dword [esp + 0x2044]
push 0xffffffffffffffff
mov esi, ecx
push 0
mov ecx, ebx
call fcn.0045e6e9
xor eax, eax
push 0x1ffe
push eax
lea ecx, [esp + 0x3a]
push ecx
mov word [esp + 0x3c], ax
call fcn.00482280
mov esi, dword [esi + 0x1f4]
add esp, 0xc
push esi
push 0x1000
lea edx, [esp + 0x38]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [esp + 0x1c]
call fcn.0045e668
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x2044], 0
call fcn.00446de0
mov ebp, eax
add esp, 8
xor edi, edi
test ebp, ebp
jbe 0x4126e7
mov eax, 1
mov dword [esp + 0x14], eax
lea esi, [edi + 4]
jmp 0x412664
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x41272a
cmp eax, dword [esp + 0x24]
jge 0x41272a
mov edx, dword [esp + 0x20]
mov eax, dword [esi + edx]
sub eax, 0x10
push eax
call fcn.004015b0
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
cmp dword [eax - 0xc], 0
mov byte [esp + 0x203c], 1
je 0x4126b2
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, ebx
call fcn.0045e9e3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x203c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4126d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x14], 2
inc edi
add esi, 8
cmp edi, ebp
jb 0x412660
lea ecx, [esp + 0x1c]
mov dword [esp + 0x203c], 0xffffffff
call fcn.0045e894
mov eax, 1
mov ecx, dword [esp + 0x2034]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x201c]
xor ecx, esp
call fcn.004820da
add esp, 0x202c
ret 8
call fcn.00451f1d
int3
Function at 0x4149c0
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
jne 0x4149e3
mov ecx, dword [esp + 0x10]
push 0x19
push str.Configure_file_is_empty__n
call fcn.00401ae0
pop edi
xor eax, eax
pop esi
ret 8
mov eax, edi
push ebx
lea ecx, [esi + 0x1f4]
lea ebx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4149f0
sub eax, ebx
sar eax, 1
push eax
push edi
call fcn.00401890
lea eax, [esi + 0x1b8]
push eax
push 0x4ad0f0
mov ecx, esi
call fcn.00412590
lea ecx, [esi + 0x1cc]
push ecx
push str.EraseFlash
mov ecx, esi
call fcn.00412590
lea edx, [esi + 0x1e0]
push edx
push str.WriteFlash
mov ecx, esi
call fcn.00412590
push edi
push 0
push str.EraseAll
push 0x4ad29c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop ebx
mov dword [esi + 0x1b4], eax
mov dword [esi + 0x188], eax
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x415b70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x4a8e28
push eax
call fcn.0048304e
mov esi, eax
add esp, 8
test esi, esi
jne 0x415b8d
pop esi
ret 0xc
push ebp
push edi
push 2
push 0
push esi
call fcn.00482f03
push esi
call fcn.00482e0b
mov edi, dword [esp + 0x28]
push 0
push 0
push esi
mov dword [edi], eax
call fcn.00482f03
mov ecx, dword [edi]
push ecx
call fcn.00451e0a
mov ebp, dword [esp + 0x34]
add esp, 0x20
mov dword [ebp], eax
test eax, eax
je 0x415bf9
mov edx, dword [edi]
push ebx
push esi
push edx
push 1
push eax
call fcn.00482c51
push esi
mov ebx, eax
call fcn.00482935
add esp, 0x14
cmp ebx, dword [edi]
pop ebx
je 0x415c01
mov eax, dword [ebp]
test eax, eax
je 0x415bf9
push eax
call fcn.00451dff
add esp, 4
mov dword [ebp], 0
pop edi
pop ebp
xor eax, eax
pop esi
ret 0xc
pop edi
pop ebp
mov eax, 1
pop esi
ret 0xc