joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431e38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x442310]
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 esi, ecx
cmp dword [esi + 0xc58], 0
je 0x403240
cmp dword [esi + 0xc5c], 0x10
lea eax, [esi + 0xc48]
jb 0x40330b
mov eax, dword [eax]
jmp 0x40330b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ecx, esi
call sym.IPSClientService.exe_public:_char_____thiscall_CUtilities::CommandLineToArgvA_char___int__
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x40330b
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
push 0x104
mov dword [ebp - 4], eax
lea ebx, [esi + 0x93c]
lea eax, [esi + 0xb44]
push eax
push 0x104
lea eax, [esi + 0xa40]
push eax
push 0x104
push ebx
push 0x104
lea edi, [esi + 0x838]
push edi
push dword [ecx]
call fcn.004312f8
add esp, 0x24
cmp byte [edi], 0
jne 0x4032b5
xor ecx, ecx
jmp 0x4032c9
mov ecx, edi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4032c0
sub ecx, edx
push ecx
add esi, 0xc48
push edi
mov ecx, esi
call fcn.004057f0
cmp byte [ebx], 0
jne 0x4032e1
xor ecx, ecx
jmp 0x4032ef
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4032e6
sub ecx, edx
push ecx
push ebx
mov ecx, esi
call fcn.004057f0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x14], 0x10
jb 0x403309
mov esi, dword [esi]
mov eax, esi
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.0041d103
mov esp, ebp
pop ebp
ret

Function at 0x403350
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40338b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x403379
push ebx
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401de0
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x224]
push eax
push edi
call fcn.0042c7cc
add esp, 8
test eax, eax
je 0x4033dd
lea eax, [ebp - 0x248]
push eax
push esi
call ebx
test eax, eax
jne 0x4033b7
xor esi, esi
jmp 0x4033e2
mov esi, 1
cmp dword [ebp - 8], 8
pop ebx
jb 0x4033f4
push dword [ebp - 0x1c]
call fcn.0040f3b0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041d103
mov esp, ebp
pop ebp
ret
Function at 0x4037d0
Capabilities:
Access peb ldr_data
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x431ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x442310]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x442310]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], 0
call sym.IPSClientService.exe_public:_wchar_t_const____thiscall_CUtilities::GetServicePathW_void_
mov edx, eax
mov dword [esp + 0x24], 7
xor eax, eax
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
cmp word [edx], ax
jne 0x403838
xor ecx, ecx
jmp 0x40384f
mov ecx, edx
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403840
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00402480
push 8
push str.policy_
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call fcn.004021a0
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4038c7
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push 0
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4038c7
push 0x43af18
mov ecx, esi
call fcn.00401de0
cmp dword [esp + 0x24], 8
jb 0x403921
push dword [esp + 0x10]
call fcn.0040f3b0
add esp, 4
jmp 0x403921
push 0xe
push str.policyfile.xml
lea ecx, [esp + 0x18]
call fcn.004021a0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [esp + 0x24]
cmp ecx, 8
jae 0x403911
mov eax, dword [esp + 0x20]
inc eax
je 0x403917
add eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0041c810
mov ecx, dword [esp + 0x30]
add esp, 0xc
jmp 0x403917
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4
Function at 0x403a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x431f38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x442310]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x442310]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x403aff
call sym.IPSClientService.exe_public:_char_const____thiscall_CUtilities::GetServicePathA_void_
mov edx, eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
cmp byte [edx], 0
jne 0x403a68
xor ecx, ecx
jmp 0x403a79
mov ecx, edx
lea edi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a70
sub ecx, edi
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.004022d0
push 0xe
push 0x43b058
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0
call fcn.004057f0
cmp dword [esp + 0x20], 0x10
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x403aec
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x403ad5
mov esi, dword [esi]
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0x10
jb 0x403aff
push dword [esp + 0xc]
call fcn.0040f3b0
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4
Function at 0x4048f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4320a0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x442310]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov eax, dword [0x442310]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push edx
lea eax, [esp + 0x2c]
push str.__xml_version___1.0_____crc32_policy____lu__update____lu___
push eax
call fcn.0040d280
add esp, 0x10
mov ecx, esi
mov dword [esp + 0x50], 0
call sym.IPSClientService.exe_public:_char_const____thiscall_CUtilities::GetServicePathA_void_
mov edx, eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
cmp byte [edx], 0
jne 0x404970
xor ecx, ecx
jmp 0x40497e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404975
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.004022d0
push 0xe
push str.crc32info.xml
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.004057f0
cmp dword [esp + 0x20], 0x10
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4049f4
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x3c]
push 0
push eax
push dword [esp + 0x3c]
lea ecx, [esp + 0x30]
cmovae ecx, dword [esp + 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0x10
jb 0x404a07
push dword [esp + 0xc]
call fcn.0040f3b0
add esp, 4
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jb 0x404a2f
push dword [esp + 0x24]
call fcn.0040f3b0
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 8
Function at 0x404eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4320a0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x442310]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov eax, dword [0x442310]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push edx
lea eax, [esp + 0x2c]
push str.__xml_version___1.0_____crc32_policy____lu__update____lu___
push eax
call fcn.0040d280
add esp, 0x10
mov ecx, esi
mov dword [esp + 0x50], 0
call sym.IPSClientService.exe_public:_char_const____thiscall_CUtilities::GetServicePathA_void_
mov edx, eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
cmp byte [edx], 0
jne 0x404f30
xor ecx, ecx
jmp 0x404f3e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404f35
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.004022d0
push 0xf
push str.crc32info2.xml
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.004057f0
cmp dword [esp + 0x20], 0x10
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404fb4
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x3c]
push 0
push eax
push dword [esp + 0x3c]
lea ecx, [esp + 0x30]
cmovae ecx, dword [esp + 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0x10
jb 0x404fc7
push dword [esp + 0xc]
call fcn.0040f3b0
add esp, 4
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jb 0x404fef
push dword [esp + 0x24]
call fcn.0040f3b0
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 8
Function at 0x405470
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0
jne 0x40549e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
call fcn.00401dd0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405579
push ebx
push 0x3ff
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], 0
push esi
push eax
call fcn.0041dbc0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x408]
add esp, 0xc
mov dword [ebp - 0x408], esi
push esi
push eax
push 0xa
lea eax, [ebp - 0x404]
push eax
push edi
call ebx
mov ecx, dword [ebp - 0x408]
test ecx, ecx
je 0x405571
lea edx, [ebp - 0x404]
not esi
test ecx, ecx
je 0x40553a
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, esi
shr esi, 8
and eax, 0xff
xor esi, dword [eax*4 + 0x43b230]
dec ecx
jne 0x405520
push 0x400
lea eax, [ebp - 0x404]
not esi
push 0
push eax
call fcn.0041dbc0
add esp, 0xc
lea eax, [ebp - 0x408]
push 0
push eax
push 0xa
lea eax, [ebp - 0x404]
push eax
push edi
call ebx
mov ecx, dword [ebp - 0x408]
test ecx, ecx
jne 0x405510
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4

Function at 0x405590
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0
jne 0x4055be
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
call fcn.00401ee0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405699
push ebx
push 0x3ff
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], 0
push esi
push eax
call fcn.0041dbc0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x408]
add esp, 0xc
mov dword [ebp - 0x408], esi
push esi
push eax
push 0xa
lea eax, [ebp - 0x404]
push eax
push edi
call ebx
mov ecx, dword [ebp - 0x408]
test ecx, ecx
je 0x405691
lea edx, [ebp - 0x404]
not esi
test ecx, ecx
je 0x40565a
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, esi
shr esi, 8
and eax, 0xff
xor esi, dword [eax*4 + 0x43b230]
dec ecx
jne 0x405640
push 0x400
lea eax, [ebp - 0x404]
not esi
push 0
push eax
call fcn.0041dbc0
add esp, 0xc
lea eax, [ebp - 0x408]
push 0
push eax
push 0xa
lea eax, [ebp - 0x404]
push eax
push edi
call ebx
mov ecx, dword [ebp - 0x408]
test ecx, ecx
jne 0x405630
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4
Function at 0x405ec0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432260
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x442310]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xc]
mov esi, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0
push eax
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.00401f00
push 0xffffffffffffffff
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x28]
push 0
push esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00401f00
mov dword [esp + 0x50], 1
mov ecx, edi
mov eax, dword [edi]
mov esi, dword [eax]
lea eax, [esp + 0xc]
push eax
push dword [esi + 4]
push esi
call fcn.00407a30
mov edx, eax
mov ecx, 0x4924923
mov eax, dword [edi + 4]
sub ecx, eax
cmp ecx, 1
jae 0x405f78
push str.list_T__too_long
call fcn.0041c1f7
inc eax
mov ecx, edi
mov dword [edi + 4], eax
mov dword [esi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov eax, dword [edi]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00407530
cmp dword [esp + 0x38], 0x10
jb 0x405fac
push dword [esp + 0x24]
call fcn.0040f3b0
add esp, 4
cmp dword [esp + 0x20], 0x10
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jb 0x405fd4
push dword [esp + 0xc]
call fcn.0040f3b0
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x407f40
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432538
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x442310]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x442310]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push 0x48
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0041dbc0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x407f9c
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x30]
call fcn.0040a000
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x4c]
push ecx
add eax, 8
lea ecx, [esp + 0x30]
push eax
call fcn.0040a100
test al, al
je 0x407fe2
mov esi, dword [esp + 0x44]
test esi, esi
je 0x407fe2
nop
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x40801d
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x407fd0
xor bl, bl
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], 0xffffffff
call fcn.00407da0
mov al, bl
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edi, eax
test edi, edi
je 0x407fe2
push 0xb
xor esi, esi
mov dword [esp + 0x28], 0xf
push str.appSettings
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
call fcn.004022d0
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
mov ecx, edi
cmovae eax, dword [esp + 0x10]
push eax
call fcn.004098b0
test eax, eax
je 0x40806d
mov esi, eax
mov al, 1
jmp 0x40806f
xor al, al
test al, al
sete bl
cmp dword [esp + 0x24], 0x10
jb 0x408087
push dword [esp + 0x10]
call fcn.0040f3b0
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
test bl, bl
jne 0x407fe2
test esi, esi
je 0x407fe2
push dword [esp + 0x28]
push dword [ebp + 8]
push esi
call sym.IPSClientService.exe_private:_static_bool___cdecl_CConfigHelper::GetKeyValueString_class_TiXmlElement_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
add esp, 0xc
mov bl, al
jmp 0x407fe4
Function at 0x409f20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432803
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x442310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x446ce8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x446ce8
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x43b184
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0040af70
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x40a2ba
cmp byte [esi + 0x2c], bl
jne 0x40a2b1
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a290
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x34]
call fcn.0040af70
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov edi, dword [esi + 0x18]
test edi, edi
je 0x40a2d0
mov ecx, edi
mov edi, dword [edi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test edi, edi
jne 0x40a2c1
push 2
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.004316a5
push ebx
call fcn.00431ab8
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.004316a5
add esp, 0x1c
test edi, edi
jg 0x40a33c
cmp byte [esi + 0x2c], 0
jne 0x40a2b1
mov edx, dword [str.Error_document_empty.]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 0xc
lea edi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a330
jmp 0x40a297
lea eax, [edi + 1]
push eax
call fcn.0041c384
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.0041ed3e
add esp, 0x14
cmp eax, 1
je 0x40a394
push edi
call fcn.0040f3b0
add esp, 4
cmp byte [esi + 0x2c], 0
jne 0x40a2b1
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a388
jmp 0x40a297
mov byte [edi + ebx], 0
mov eax, edi
cmp byte [edi], 0
mov ecx, edi
je 0x40a3bd
mov dl, byte [eax]
cmp dl, 0xd
jne 0x40a3b4
inc eax
mov byte [ecx], 0xa
inc ecx
cmp byte [eax], 0xa
jne 0x40a3b8
jmp 0x40a3b7
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x40a3a1
mov byte [ecx], 0
mov ecx, esi
mov eax, dword [esi]
push 0
push 0
push edi
call dword [eax + 8]
push edi
call fcn.0040f3b0
add esp, 4
xor eax, eax
cmp byte [esi + 0x2c], al
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40d9f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0x28], 0
je 0x40da03
mov al, 1
pop esi
pop ebp
ret 4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
test eax, eax
jne 0x40da1f
xor al, al
pop esi
pop ebp
ret 4
cmp byte [ebp + 8], 0
lea eax, [esi + 0xc]
push eax
je 0x40da2d
push 4
jmp 0x40da2f
push 0
push esi
push 0x40da60
push 0
push 0
call fcn.0041dcc7
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
setne al
mov byte [esi + 0x28], al
mov al, byte [esi + 0x28]
pop esi
pop ebp
ret 4
Function at 0x40dab0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x40dae6
cmp byte [esi + 0x28], 0
je 0x40dae6
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x40daed
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov byte [esi + 0x28], 0
mov al, 1
pop esi
pop ebp
ret 4
xor al, al
pop esi
pop ebp
ret 4

Function at 0x40f910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x40f92d
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax], 1
pop edi
pop ebp
ret
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push edi
call fcn.0040f530
mov esi, eax
add esp, 8
test esi, esi
je 0x40f968
push edi
call fcn.0041e9be
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
pop esi
mov dword [eax + 8], 0
mov dword [eax + 4], 0
pop edi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, 1
test ebx, ebx
cmovne eax, ebx
push eax
call dword [section..data]
add esp, 4
mov dword [ebp + 0x10], eax
push edi
test eax, eax
jne 0x40f9ac
call fcn.0041e9be
mov eax, dword [ebp + 8]
add esp, 4
pop ebx
pop esi
mov dword [eax + 8], 0
mov dword [eax], 3
mov dword [eax + 4], 0
pop edi
pop ebp
ret
push ebx
push 1
push eax
call fcn.0041ed3e
push edi
mov esi, eax
call fcn.0041e9be
add esp, 0x14
cmp esi, ebx
je 0x40f9ec
push dword [ebp + 0x10]
call dword [0x442004]
mov eax, dword [ebp + 8]
add esp, 4
pop ebx
pop esi
mov dword [eax + 8], 0
mov dword [eax], 2
mov dword [eax + 4], 0
pop edi
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 1
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push esi
call fcn.0040f770
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret