joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005e240
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 1
push 0
push 0
push 6
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x1005e289
mov eax, dword [0x102f7658]
test eax, eax
je 0x1005e286
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CIOCPSocket::Initialize___Create_SOCKET_failed___errno___d__n
push str.IOCPSocket
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
xor eax, eax
ret
mov eax, 1
ret

Function at 0x1005e290
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
mov dword [esp + 6], eax
mov esi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
push ecx
mov word [esp + 0x16], ax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], eax
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi]
mov word [esp + 6], ax
xor eax, eax
lea ecx, [esp + 4]
push 0x10
mov dword [esp + 0x10], eax
push ecx
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_connect]
pop esi
add esp, 0x10
ret 8
Function at 0x10060870
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10251dd0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov ecx, ebp
call fcn.100832d0
mov esi, dword [esp + 0x24]
push esi
call fcn.1006b93e
mov cx, word [esi]
add esp, 4
cmp eax, 1
jl 0x100609e5
cmp cx, 0x5c
je 0x100609e5
cmp cx, 0x2e
jne 0x100608d7
cmp eax, 1
je 0x100609e5
cmp eax, 2
jne 0x100608d7
cmp word [esi + 2], cx
je 0x100609e5
mov edx, dword [0x1025e6e4]
mov dword [esp + 0x28], edx
cmp eax, 3
mov dword [esp + 0x1c], 0
jle 0x10060914
cmp word [esi + 2], 0x3a
jne 0x10060914
cmp word [esi + 4], 0x5c
jne 0x10060914
cmp cx, 0x61
jb 0x10060908
cmp cx, 0x7a
jbe 0x10060969
cmp cx, 0x41
jb 0x10060914
cmp cx, 0x5a
jbe 0x10060969
push 0x105
lea ecx, [esp + 0x2c]
call fcn.10084230
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.10084300
test edi, edi
je 0x100609fc
cmp edi, 0x104
ja 0x100609fc
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x10060969
push 0x5c
lea ecx, [esp + 0x2c]
call fcn.100841f0
push 0x102b5818
lea ecx, [esp + 0x14]
call fcn.10082dc0
lea ecx, [esp + 0x28]
lea edx, [esp + 0xc]
push ecx
push eax
push edx
mov byte [esp + 0x28], 1
call fcn.10083b00
push esi
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x24], 2
push eax
call fcn.10083cd0
push eax
mov ecx, ebp
mov byte [esp + 0x20], 3
call fcn.100836f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.10083560
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.10083560
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call fcn.10083560
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10083560
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x10060b70
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10251e28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1025e6e4]
push esi
mov dword [esp + 4], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test esi, esi
je 0x10060bb2
lea ecx, [esp + 4]
push ecx
push esi
call fcn.100607e0
add esp, 8
test eax, eax
jne 0x10060bb5
push esi
jmp 0x10060bba
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10060bf0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10251e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1025e6e4]
push esi
mov dword [esp + 4], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test esi, esi
je 0x10060c32
lea ecx, [esp + 4]
push ecx
push esi
call fcn.100607e0
add esp, 8
test eax, eax
jne 0x10060c3a
mov edx, dword [esp + 0x1c]
push edx
push esi
jmp 0x10060c44
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10060d00
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x10251e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x1025e6e4]
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
mov dword [esp + 8], eax
mov esi, dword [esp + 0x20]
mov byte [esp + 0x18], 1
test esi, esi
je 0x10060d7c
mov edi, dword [esp + 0x24]
test edi, edi
je 0x10060d7c
lea eax, [esp + 0xc]
push eax
push esi
call fcn.100607e0
add esp, 8
test eax, eax
jne 0x10060d60
push esi
lea ecx, [esp + 0x10]
call fcn.100837e0
lea ecx, [esp + 8]
push ecx
push edi
call fcn.100607e0
add esp, 8
test eax, eax
jne 0x10060d7c
push edi
lea ecx, [esp + 0xc]
call fcn.100837e0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.10083560
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x10060dd0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x10251eb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x1025e6e4]
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
mov dword [esp + 8], eax
mov esi, dword [esp + 0x20]
mov byte [esp + 0x18], 1
test esi, esi
je 0x10060e4c
mov edi, dword [esp + 0x24]
test edi, edi
je 0x10060e4c
lea eax, [esp + 0xc]
push eax
push esi
call fcn.100607e0
add esp, 8
test eax, eax
jne 0x10060e30
push esi
lea ecx, [esp + 0x10]
call fcn.100837e0
lea ecx, [esp + 8]
push ecx
push edi
call fcn.100607e0
add esp, 8
test eax, eax
jne 0x10060e4c
push edi
lea ecx, [esp + 0xc]
call fcn.100837e0
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.10083560
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10060e90
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x10251ed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x1025e6e4]
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
mov dword [esp + 8], eax
mov esi, dword [esp + 0x20]
mov byte [esp + 0x18], 1
test esi, esi
je 0x10060f0c
mov edi, dword [esp + 0x24]
test edi, edi
je 0x10060f0c
lea eax, [esp + 0xc]
push eax
push esi
call fcn.100607e0
add esp, 8
test eax, eax
jne 0x10060ef0
push esi
lea ecx, [esp + 0x10]
call fcn.100837e0
lea ecx, [esp + 8]
push ecx
push edi
call fcn.100607e0
add esp, 8
test eax, eax
jne 0x10060f0c
push edi
lea ecx, [esp + 0xc]
call fcn.100837e0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.10083560
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x10060f60
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10251ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1025e6e4]
push esi
push edi
xor esi, esi
mov dword [esp + 8], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
test edi, edi
je 0x10060fa6
lea ecx, [esp + 8]
push ecx
push edi
call fcn.100607e0
add esp, 8
test eax, eax
je 0x10060fa6
mov esi, 1
mov eax, dword [0x102f7658]
test eax, eax
je 0x10060fce
mov edx, dword [esp + 8]
push edx
push esi
push str.COverlongPathApi::CreateDirectoryW_bChangeToLongPath__d__wstrLongPath__s_
push str.COverlongPathApi
push 0xffffffffffffffff
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x18
test esi, esi
jne 0x10060fda
mov eax, dword [esp + 0x20]
push eax
push edi
jmp 0x10060fe4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10060fbf
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10251ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1025e6e4]
push esi
push edi
xor esi, esi
mov dword [esp + 8], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
test edi, edi
je 0x10060fa6
lea ecx, [esp + 8]
push ecx
push edi
call fcn.100607e0
add esp, 8
test eax, eax
je 0x10060fa6
mov esi, 1
mov eax, dword [0x102f7658]
test eax, eax
je 0x10060fce
mov edx, dword [esp + 8]
push edx
push esi
push str.COverlongPathApi::CreateDirectoryW_bChangeToLongPath__d__wstrLongPath__s_
push str.COverlongPathApi
push 0xffffffffffffffff
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x18
test esi, esi
jne 0x10060fda
mov eax, dword [esp + 0x20]
push eax
push edi
jmp 0x10060fe4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10061010
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x10251f08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1025e6e4]
push esi
mov dword [esp + 4], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test esi, esi
je 0x10061052
lea ecx, [esp + 4]
push ecx
push esi
call fcn.100607e0
add esp, 8
test eax, eax
jne 0x10061055
push esi
jmp 0x1006105a
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10061090
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x10251f28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1025e6e4]
push esi
mov dword [esp + 4], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test esi, esi
je 0x100610d2
lea ecx, [esp + 4]
push ecx
push esi
call fcn.100607e0
add esp, 8
test eax, eax
jne 0x100610d5
push esi
jmp 0x100610da
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10063450
Capabilities:
Get common file path

Disassembly:
mov cl, byte [0x102f45fc]
mov al, 1
sub esp, 0x208
test al, cl
jne 0x10063483
mov dl, cl
push 0x100634e0
or dl, al
mov eax, dword [0x1025e6e4]
mov byte [0x102f45fc], dl
mov dword [0x102f45f8], eax
call fcn.1006b505
add esp, 4
mov ecx, dword [0x102f45f8]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x100634d3
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
push edx
push 0x104
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 4]
mov ecx, 0x102f45f8
push eax
call fcn.100837e0
mov eax, 0x102f45f8
pop edi
add esp, 0x208
ret
mov eax, 0x102f45f8
add esp, 0x208
ret

Function at 0x100637b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x102521b8
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov eax, dword [ebx]
xor edi, edi
cmp dword [eax - 8], edi
je 0x1006386e
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x1006386e
push eax
lea ecx, [esp + 0x24]
call fcn.10082dc0
mov esi, dword [esp + 0x24]
push ebx
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.100836f0
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, edi
jne 0x10063822
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx]
push ecx
push edx
push 0x102a82b4
push esi
call fcn.100864e0
add esp, 0x10
jmp 0x10063839
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
push eax
push edi
push ecx
push 0x102bd574
push esi
call fcn.100864e0
add esp, 0x14
mov eax, dword [esi]
push eax
call ebp
cmp eax, 0xffffffff
je 0x1006384c
inc edi
cmp edi, 0x3e8
jb 0x10063806
xor edx, edx
cmp edi, 0x3e8
setne dl
lea ecx, [esp + 0x20]
mov esi, edx
mov dword [esp + 0x18], 0xffffffff
call fcn.10083560
mov eax, esi
jmp 0x10063870
xor eax, eax
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x100640d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov ecx, 0x102f4658
jmp 0x100640e0
push 0xffffffffffffffff
push 0x1025228c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov eax, 0x1e
mov dword [esp + 8], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
lea ecx, [esi + 0x64]
mov byte [esp + 0x14], 3
call fcn.100912d0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], 0x11
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], 0xa
mov dword [esi + 0xa0], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10067fe0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1025251b
push eax
mov eax, dword [0x102f470c]
mov dword fs:[0], esp
sub esp, 0xe14
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x10068219
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x61e]
mov word [esp + 0x61c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x416]
mov word [esp + 0x414], bx
rep stosd dword es:[edi], eax
push str.OAgent.ini
mov dword [0x102f470c], 1
mov dword [esp + 0xc], ebx
stosw word es:[edi], ax
call fcn.100422e0
push eax
lea eax, [esp + 0x41c]
push 0x102a8c4c
push eax
call fcn.1006ca01
add esp, 0x10
lea ecx, [esp + 0x414]
lea edx, [esp + 0x61c]
push ecx
push 0x400
push edx
push 0x102e269c
push 0x1025c318
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x100680da
cmp word [esp + 0xe1a], bx
jne 0x100680da
lea eax, [esp + 0x14]
push 0x400
lea ecx, [esp + 0x620]
push eax
push ecx
call fcn.1009d300
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x100680de
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x100681e3
lea ecx, [esp + 0xc]
call fcn.10092410
push 0x20019
push 0x1025c320
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x18]
mov dword [esp + 0xe30], ebx
call fcn.10092580
test eax, eax
je 0x1006815a
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x1025c3ac
call fcn.100929a0
cmp eax, ebx
je 0x1006815a
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x1006814d
mov edx, ecx
push esi
mov esi, eax
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10068151
mov dword [esp + 8], ebx
push eax
call fcn.1023d925
add esp, 4
lea ecx, [esp + 0xc]
call fcn.100925d0
lea ecx, [esp + 0xc]
mov dword [esp + 0xe24], 0xffffffff
call fcn.10092500
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x100681e3
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x61c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x620]
push eax
push 0x102e269c
push 0x1025c3ac
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x100681db
cmp word [esp + 0xe1a], bx
jne 0x100681db
lea ecx, [esp + 0x14]
push 0x400
lea edx, [esp + 0x620]
push ecx
push edx
call fcn.1009d300
add esp, 0xc
jmp 0x100681df
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x10068219
cmp eax, 4
jbe 0x10068219
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x10068219
cmp dword [esp + 0x14], 1
je 0x10068219
mov edx, dword [esp + 0x30]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x10068219
add eax, 0xfffffffc
cmp ecx, eax
ja 0x10068219
mov eax, dword [esp + 0x1c]
mov dword [0x102f4708], eax
mov ecx, dword [esp + 0xe1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe20
ret
Function at 0x10068e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1025271b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
push 1
lea ecx, [esp + 0x1c]
lea eax, [esi + 0x2c]
push eax
call fcn.10091800
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.10097720
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], ecx
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.100978b0
mov edi, dword [esi + 0x1c]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x14], eax
test edi, edi
jne 0x10068eaa
push 0x14
call fcn.1023d8fc
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
test edi, edi
mov byte [esp + 0x2c], 2
je 0x10068e9d
lea ecx, [edi + 8]
call fcn.10068f50
jmp 0x10068e9f
xor edi, edi
test edi, edi
mov byte [esp + 0x2c], 1
jne 0x10068eb6
jmp 0x10068ed4
mov eax, dword [esi + 0x24]
mov ecx, dword [edi]
dec eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x24], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov ebp, dword [esi + 0x20]
lea edx, [edi + 8]
inc ebp
push 1
push edx
mov dword [esi + 0x20], ebp
call fcn.10069300
add esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edi + 0xc]
mov dword [edi + 8], eax
call fcn.100978b0
mov edx, dword [esp + 0x14]
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10068efa
mov dword [eax], edi
jmp 0x10068efd
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x10]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.10097880
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10091860
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x10068f70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10252750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.10097720
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
call fcn.10097720
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.10097720
lea eax, [esi + 0x2c]
push 1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 2
call fcn.10091800
mov eax, dword [esi + 0x20]
mov byte [esp + 0x40], 3
test eax, eax
jg 0x1006901e
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.10091860
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.10097880
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 0
call fcn.10097880
lea ecx, [esp + 4]
mov dword [esp + 0x40], 0xffffffff
call fcn.10097880
pop esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
push edi
lea edi, [esi + 0x14]
mov esi, dword [esi + 0x14]
add esi, 8
mov ecx, dword [esi]
lea edx, [esi + 4]
mov dword [esp + 0xc], ecx
push edx
lea ecx, [esp + 0x14]
call fcn.100978b0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
call fcn.100978b0
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.100691b0
lea ecx, [esp + 0x34]
call fcn.10097880
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.10091860
lea eax, [esp + 8]
push esi
push eax
call dword [esp + 0x14]
add esp, 8
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.10097880
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.10097880
lea ecx, [esp + 8]
mov dword [esp + 0x44], 0xffffffff
call fcn.10097880
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x10081c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10081c7e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10081c7e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x10081c83
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x10081c69
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x10081c93
test esi, esi
jne 0x10081cb1
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x10081caf
mov byte [eax + esi - 1], 0
jne 0x10081cb8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret