joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100dd70
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1013050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x21c], eax
mov eax, dword [eax + 0x1da1c]
push esi
mov dword [ebp - 0x214], 0
movzx eax, word [eax + 4]
push edi
push eax
push 0x1004b1c
push 2
push 0x10130b0
call fcn.01007a00
add esp, 0x10
push 2
call fcn.0100f2e0
push 0x17
mov ebx, eax
call fcn.0100f2e0
mov ecx, dword [sym.imp.WS2_32.dll_ntohs]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x100de2a
xor esi, esi
cmp dword [eax], esi
jbe 0x100de2a
lea edi, [eax + 4]
jmp 0x100ddf0
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x1da1c]
movzx eax, word [eax + 4]
push eax
call ecx
mov ecx, dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp eax, dword [edi + 0x14]
je 0x100de21
mov eax, dword [ebp - 0x218]
inc esi
add edi, 0x38
cmp esi, dword [eax]
jb 0x100ddf0
jmp 0x100de2a
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x100de74
test ebx, ebx
je 0x100de74
xor esi, esi
cmp dword [ebx], esi
jbe 0x100de74
lea edi, [ebx + 4]
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x1da1c]
movzx eax, word [eax + 4]
push eax
call ecx
movzx eax, ax
cmp eax, dword [edi + 8]
je 0x100de6b
mov ecx, dword [sym.imp.WS2_32.dll_ntohs]
inc esi
add edi, 0x18
cmp esi, dword [ebx]
jb 0x100de40
jmp 0x100de74
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x214], eax
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x218]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 8
cmp dword [ebp - 0x214], 0
pop edi
pop esi
pop ebx
jne 0x100df68
push 0x1004b50
push 2
push 0x10130b0
call fcn.01007a00
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x218], 0
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x1da1c]
push 0
add eax, 0x316
push eax
mov dword [ebp - 0x220], 0x105
call sub.instapi110.dll_GetInstRegPathByName
test eax, eax
je 0x100df68
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100df68
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0x1004b8c
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x214]
push 0x1004ba8
push 2
push 0x10130b0
call fcn.01007a00
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
add esp, 0x10
call fcn.0100f899
mov esp, ebp
pop ebp
ret
Function at 0x100dfa0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1da44], eax
test eax, eax
jne 0x100dfd4
push 0x1004f6c
mov ecx, esi
call fcn.0100d8b0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x100f3b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1da48], eax
test eax, eax
jne 0x100e022
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004fb0
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
push dword [esi + 0x1da44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100e790
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1013050]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100e831
lea eax, [ebp - 0x10]
push eax
push 0x100162c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x100e81a
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100e7ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100e81a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001650
push 2
push 0x10130b0
call fcn.01007a00
add esp, 0x10
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10016c0
push 1
push 0x10130b0
call fcn.01007a00
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.0100f899
mov esp, ebp
pop ebp
ret
Function at 0x100eae0
Capabilities:
Delete file
Get system information on windows
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x898
push esi
push edi
mov dword [ebp - 0x898], 0x10174e8
call fcn.0100e790
call fcn.010100b0
push 0x10174f0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp + 0xc]
mov ecx, 0x10174e8
push dword [ebp + 8]
call fcn.01009950
test eax, eax
je 0x100eb57
mov ecx, 0x10174e8
call fcn.0100a580
test eax, eax
je 0x100eb57
push dword [ebp + 0x10]
mov ecx, 0x10174e8
call fcn.01009880
test eax, eax
jne 0x100eb57
mov ecx, 0x10174e8
call fcn.0100a1a0
test eax, eax
je 0x100eb57
mov dword [0x10174e8], 3
mov ecx, 0x10174e8
call fcn.01009510
mov ecx, 0x10174e8
call fcn.01008920
mov ecx, 0x10174e8
call fcn.01008a00
mov eax, dword [0x1017b34]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x100eba8
push eax
call esi
cmp dword [0x10174e8], 5
mov dword [0x1017b34], 0xffffffff
jae 0x100eba8
push 0x101771e
call edi
mov ecx, 0x10174e8
call fcn.01008bb0
test eax, eax
je 0x100ebd7
push 0x100189c
push 2
push 0x10130b0
call fcn.01007a00
add esp, 0xc
lea ecx, [ebp - 0x898]
call fcn.0100e040
jmp 0x100ebeb
push 0x10018c4
push 2
push 0x10130b0
call fcn.01007a00
add esp, 0xc
mov eax, dword [0x10174ec]
cmp eax, 0xffffffff
je 0x100ec02
push eax
call esi
mov dword [0x10174ec], 0xffffffff
mov eax, dword [0x1017b34]
cmp eax, 0xffffffff
je 0x100ec29
push eax
call esi
cmp dword [0x10174e8], 5
mov dword [0x1017b34], 0xffffffff
jae 0x100ec29
push 0x101771e
call edi
test dword [0x1017b38], 0x2000
mov dword [0x10174e8], 6
je 0x100ec91
mov ecx, 0x10174e8
call fcn.01009030
mov eax, dword [0x10174ec]
cmp eax, 0xffffffff
je 0x100ec60
push eax
call esi
mov dword [0x10174ec], 0xffffffff
mov eax, dword [0x1017b34]
cmp eax, 0xffffffff
je 0x100ec87
push eax
call esi
cmp dword [0x10174e8], 5
mov dword [0x1017b34], 0xffffffff
jae 0x100ec87
push 0x101771e
call edi
mov dword [0x10174e8], 6
mov ecx, 0x10174e8
call fcn.010096c0
mov ecx, 0x10174e8
call fcn.01009810
test dword [0x1017b38], 0x200
je 0x100ecbe
push 0
push 0x3a98
call dword [sym.imp.KERNEL32.dll_SleepEx]
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100f030
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x1013050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x324], eax
mov eax, dword [ebp + 0x10]
push 0x190
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x4cc]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
push 0x190
lea eax, [ebp - 0x4cc]
push eax
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x100f214
push edi
mov edi, dword [ebp - 0x320]
shr edi, 2
cmp edi, 0x64
jb 0x100f0a6
mov edi, 0x64
push esi
xor esi, esi
test edi, edi
jle 0x100f1ff
push 0xc
lea eax, [ebp - 0x33c]
push eax
push dword [ebp + esi*4 - 0x4cc]
push ebx
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x100f174
push 0x104
lea eax, [ebp - 0x318]
push eax
push dword [ebp + esi*4 - 0x4cc]
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x100f174
push 0x104
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + esi*4 - 0x4cc]
push ebx
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x100f174
push dword [ebp - 0x324]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
jne 0x100f18f
push 1
push eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x100f1ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x318]
push eax
push 0x10040e0
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x14
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004068
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
inc esi
cmp esi, edi
jl 0x100f0b1
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret 0xc
push 0xc
lea eax, [ebp - 0x330]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x100f1dd
mov eax, dword [ebp - 0x330]
sub eax, dword [ebp - 0x33c]
mov ecx, dword [ebp - 0x31c]
mov dword [ecx], eax
jmp 0x100f15f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004120
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004190
push 1
push 0x10130b0
call fcn.01007a00
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0100f899
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100f2e0
Capabilities:
List tcp connections and listeners

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
movzx ebx, word [ebp + 8]
push esi
push edi
xor edi, edi
nop
push 0
push 3
push ebx
push 0
lea eax, [ebp - 4]
push eax
push 0
mov dword [ebp - 4], 0
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
cmp eax, 0x7a
jne 0x100f34e
push dword [ebp - 4]
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x100f37f
push 0
push 3
push ebx
push 0
lea eax, [ebp - 4]
push eax
push esi
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov ebx, eax
test ebx, ebx
je 0x100f39a
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp ebx, 0x7a
jne 0x100f359
movzx ebx, word [ebp + 8]
inc edi
cmp edi, 4
jb 0x100f2f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004ae0
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004a98
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100f3e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0100f990
mov eax, dword [0x1013050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1014], ecx
mov esi, 1
test ebx, ebx
je 0x100f4d1
cmp esi, 1
jne 0x100f4b2
mov eax, ebx
sub eax, edi
cmp eax, 0x1000
jbe 0x100f439
mov eax, 0x1000
push 0
lea edx, [ebp - 0x1008]
push edx
push eax
lea eax, [ebp - 0x1004]
push eax
push ecx
mov dword [ebp - 0x1008], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x100f4b6
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x100f4b2
push 0
lea ecx, [ebp - 0x100c]
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1010]
mov dword [ebp - 0x100c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov eax, dword [ebp - 0x1008]
cmp dword [ebp - 0x100c], eax
jne 0x100f4e6
mov ecx, dword [ebp - 0x1014]
add edi, eax
cmp ebx, edi
ja 0x100f420
test esi, esi
jne 0x100f4d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005ca8
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100f899
mov esp, ebp
pop ebp
ret 0xc
xor esi, esi
jmp 0x100f4b6

Function at 0x100f899
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1013050]
jne 0x100f8a3
repz ret
jmp fcn.0100fd8f
Function at 0x100fef0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
test ecx, ecx
push esi
mov esi, dword [ebp + 8]
jbe 0x100ff22
movzx edx, byte [esi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x1006680]
sub ecx, 1
add esi, 1
test ecx, ecx
ja 0x100ff03
pop esi
pop ebp
ret 8
Function at 0x1010cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x10352a0], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1010d0b
xor eax, eax
inc eax
jmp 0x1010ec3
push edi
call fcn.01010a1e
xor edi, edi
test esi, esi
je 0x1010d2d
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1010d1c
sub ecx, edx
sar ecx, 1
jmp 0x1010d30
push 3
pop ecx
inc ecx
push ebx
mov eax, 0x104
sub eax, ecx
push eax
push 0x10352b8
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, eax
test edx, edx
je 0x1010ebf
lea eax, [edx*2 + 0x10352b6]
push eax
call fcn.01010a1e
add esp, 4
push 0x5c
mov ecx, edi
mov ebx, edi
xor edi, edi
pop esi
cmp eax, 0x10352b8
jbe 0x1010d91
test ebx, ebx
jne 0x1010d83
cmp word [eax], 0x2e
jne 0x1010d8a
mov ebx, eax
jmp 0x1010d8a
cmp word [eax], si
jne 0x1010d8a
mov ecx, eax
sub eax, 2
test ecx, ecx
je 0x1010d6e
mov esi, dword [ebp + 0xc]
test ecx, ecx
je 0x1010ebf
add ecx, 2
add ebx, 2
test esi, esi
je 0x1010db8
mov eax, dword [ebp - 4]
add eax, eax
push eax
push esi
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x1010df9
mov eax, ecx
sub eax, 0x10352b8
sar eax, 1
sub edx, eax
push edx
push ecx
push dword [0x101306c]
push dword [0x1013068]
call fcn.01010a24
test al, al
je 0x1010ddd
xor edi, edi
inc edi
mov eax, dword [ebp - 4]
add eax, eax
push eax
push 0x1006c3c
push ebx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
test edi, edi
jne 0x1010ebf
mov ebx, 0x10352b8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1010ebf
mov eax, 0x10356c8
mov esi, ebx
mov ecx, 0x82
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1010e25
sub ecx, edx
sar ecx, 1
push 0x5c
lea eax, [ecx*2 + 0x10356c6]
pop ecx
mov esi, 0x10356c8
cmp word [eax], cx
je 0x1010e51
cmp eax, esi
jbe 0x1010e51
sub eax, 2
jmp 0x1010e43
xor edx, edx
mov word [eax], dx
sub eax, esi
sar eax, 1
inc eax
push esi
mov dword [0x10352a4], eax
call fcn.01010a1e
mov eax, 0x10354c0
mov ecx, 0x82
mov esi, 0x10352b8
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1010e81
sub ecx, edx
sar ecx, 1
lea edi, [ecx*2 + 0x10354c0]
mov esi, 0x1006b4c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10354c0
movsw word es:[edi], word [esi]
call fcn.01010a1e
mov eax, dword [ebp + 0x10]
mov dword [0x10352ac], eax
xor eax, eax
add esp, 4
inc eax
mov dword [0x10352a0], eax
jmp 0x1010ec1
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x1011033
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], 0x80
lea ecx, [esi + 2]
xor edx, edx
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x101104c
sub esi, ecx
sar esi, 1
lea ebx, [esi + 0x80]
lea eax, [ebx + ebx]
push eax
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jmp 0x10110de
push 5
push 0x1006b40
push esi
push dword [ebp + 8]
call fcn.01010a24
test al, al
je 0x10110a4
mov ebx, dword [0x10352a4]
cmp ebx, dword [ebp - 4]
ja 0x10110b4
lea eax, [ebx + ebx]
push eax
push 0x10356c8
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x10110b1
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
cmp ebx, dword [ebp - 4]
jle 0x10110eb
mov eax, dword [ebp - 8]
add eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ebx, [esi + eax]
push 0
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebx + ebx]
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x1011071
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10110f9
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push 0x100
push 0
mov ebx, 0x80
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10111c1
push edi
cmp dword [ebp + 8], 0
je 0x1011163
cmp dword [ebp + 0xc], 0
je 0x1011163
push 0x10354c0
push ebx
push esi
push 0x1006b58
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
lea ecx, [ebx - 1]
cmp edi, ecx
je 0x101115e
push esi
call fcn.010109fa
test eax, eax
je 0x101115e
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x101117d
push 0x10352b8
push ebx
push esi
push 0x1006b58
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
cmp dword [ebp + 8], 0
je 0x101118c
cmp dword [ebp + 0xc], 0
lea eax, [ebx - 1]
jne 0x101118f
lea eax, [ebx - 2]
cmp edi, eax
jne 0x10111c0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
add ebx, ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebx + ebx]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x1011124
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x411d98
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x413468
call 0xa4501ea5
xor edi, edi
push edi
call dword [0x4130b4]
cmp word [eax], 0x5a4d
jne 0x411dd3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411dd3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411deb
cmp eax, 0x20b
je 0x411dd8
mov dword [ebp - 0x1c], edi
jmp 0x411dff
cmp dword [ecx + 0x84], 0xe
jbe 0x411dd3
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x411df9
cmp dword [ecx + 0x74], 0xe
jbe 0x411dd3
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [0x413358]
pop ecx
or dword [0x4189c8], 0xffffffff
or dword [0x4189cc], 0xffffffff
call dword [0x41335c]
mov ecx, dword [0x41739c]
mov dword [eax], ecx
call dword [0x413360]
mov ecx, dword [0x417398]
mov dword [eax], ecx
mov eax, dword [0x413364]
mov eax, dword [eax]
mov dword [0x4189c4], eax
call 0xbfc51e49
cmp dword [section..data], edi
jne 0x411e5c
push 0x4094c3
call dword [0x413380]
pop ecx
call 0x90501f62
push 0x413460
push 0x41345c
call 0x8a501f71
mov eax, dword [0x417394]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x417390]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x4133fc]
mov dword [ebp - 0x30], eax
push 0x413458
push 0x413424
call 0x8a501fa7
add esp, 0x24
mov eax, dword [0x413400]
mov esi, dword [eax]
cmp esi, edi
jne 0x411ec2
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x78501fc3
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x411f10
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x411ede
cmp ax, 0x22
jne 0x411ecb
cmp word [esi], 0x22
jne 0x411ee9
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x411ef7
cmp ax, 0x20
jbe 0x411ee4
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [0x4130b8]
test byte [ebp - 0x4c], 1
je 0x411f1d
movzx eax, word [ebp - 0x48]
jmp 0x411f20
cmp word [esi], 0x20
jbe 0x411ee9
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x411f10
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [0x4130b4]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x411f41
push esi
call dword [0x413408]
call dword [0x41340c]
jmp 0x411f76
or dword [ebp - 4], 0xffffffff
mov eax, esi
call 0xdd502082
ret