joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065da
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4065fe
xor eax, eax
test eax, eax
je 0x406611
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406611
xor ecx, ecx
jmp 0x406614
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x4092c8]
push ecx
lea eax, [ebp + eax*2 - 0x23c]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 8
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406770
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040613b
mov edi, eax
cmp edi, 0xffffffff
je 0x4067b1
test byte [esp + 0x10], 1
push esi
je 0x40679a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4067a2
xor eax, eax
inc eax
jmp 0x4067b3
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406791
test byte [esp + 0x10], 4
jne 0x4067b1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425a40
push esi
call fcn.004064c7
push esi
call fcn.00406064
mov edi, eax
test edi, edi
jne 0x40687a
xor eax, eax
jmp 0x4068d8
push edi
call fcn.00406504
test byte [0x42a5d0], 0x80
je 0x406897
movzx eax, word [edi]
test ax, ax
je 0x406876
cmp ax, 0x5c
je 0x406876
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4068b9
push esi
call fcn.004065b3
test eax, eax
je 0x4068b3
test byte [eax], 0x10
je 0x4068dd
push esi
call fcn.004067e7
push esi
call ebx
cmp eax, edi
jg 0x4068a4
push esi
call fcn.004067b8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4068d7
Function at 0x406b57
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov dword [0x426240], 0x55004e
mov dword [0x426244], 0x4c
mov edi, 0x400
mov ebp, 0x426240
je 0x406bad
push 1
push 0
push esi
call fcn.00406161
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406ccc
cmp eax, edi
jg 0x406ccc
push edi
mov esi, 0x427890
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406ccc
cmp eax, edi
jg 0x406ccc
push esi
push ebp
push str._ls_ls_r_n
push 0x426c90
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x42a56c]
push dword [eax + 0x128]
push esi
call fcn.004068e1
push 4
push 0xc0000000
push esi
call fcn.00406161
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406ccc
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406cc5
push edi
push esi
push ebp
call fcn.004061e4
test eax, eax
je 0x406cc5
push str._Rename__r_n
push esi
call fcn.004060c1
test eax, eax
jne 0x406c63
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406c98
push 0x4099c4
add eax, 0xa
push eax
call fcn.004060c1
mov ebp, eax
test ebp, ebp
je 0x406c94
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406c85
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406c7f
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406c9a
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x426c90
add eax, esi
push eax
call fcn.00406117
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406213
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406cd1
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406cf4
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406b57
pop ecx
pop ecx
inc dword [0x42a630]
ret 8
Function at 0x406cfd
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00406859
test bl, 8
mov dword [ebp - 8], eax
je 0x406d3b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a628], eax
jmp 0x406ebc
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
push esi
je 0x406d56
test eax, eax
je 0x406e68
test bl, 2
je 0x406e68
push edi
mov esi, 0x427090
push esi
call fcn.004064c7
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406d78
push str..
push esi
call ebx
jmp 0x406d7e
push edi
call fcn.004067e7
cmp word [edi], 0
jne 0x406d8e
cmp word [0x427090], 0x5c
jne 0x406d96
push 0x4092c8
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406e5d
cmp word [ebp - 0x22c], 0x2e
jne 0x406de1
cmp word [ebp - 0x22a], 0
je 0x406e40
cmp word [ebp - 0x22a], 0x2e
jne 0x406de1
cmp word [ebp - 0x228], 0
je 0x406e40
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004064c7
test byte [ebp - 0x258], 0x10
je 0x406e0c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406e40
push dword [ebp + 0xc]
push edi
call fcn.00406cfd
jmp 0x406e40
push dword [ebp - 4]
push edi
call fcn.00406770
test eax, eax
jne 0x406e38
cmp dword [ebp - 4], eax
je 0x406e30
push edi
push 0xfffffffffffffff1
call fcn.0040523e
push 0
push edi
call fcn.00406cd1
jmp 0x406e40
inc dword [0x42a628]
jmp 0x406e40
push edi
push 0xfffffffffffffff2
call fcn.0040523e
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406db9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406e68
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406ebb
cmp dword [ebp - 8], esi
je 0x406eab
push edi
call fcn.004065b3
test eax, eax
je 0x406ebb
push edi
call fcn.004067b8
mov eax, dword [ebp - 4]
or eax, 1
push eax
push edi
call fcn.00406770
test eax, eax
jne 0x406eb3
cmp dword [ebp - 4], esi
je 0x406eab
push edi
push 0xfffffffffffffff1
call fcn.0040523e
push esi
push edi
call fcn.00406cd1
jmp 0x406ebb
inc dword [0x42a628]
jmp 0x406ebb
push edi
push 0xffffffffffffffe5
call fcn.0040523e
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x406ec2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x428094], 0
jne 0x406efd
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406ed6
mov dword [ecx*4 + 0x428090], eax
inc ecx
cmp ecx, 0x100
jl 0x406ed1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406f2a
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x428090]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406f0b
not eax
pop ebp
ret 0xc

Function at 0x407838
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x407823
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi], eax
pop esi
jne 0x40786f
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebp
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3b101c25
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4de6126e
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1000d17b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000d1ba
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000d1ba
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000d1ba
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000d1ba
cmp dword [ecx + 0x74], 0xe
jbe 0x1000d1ba
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000fba7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100484e8
push 0x100484e0
push str.FlsAlloc
push 0x1f
call fcn.1000fac3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000fbdb
push dword [ebp + 8]
mov ecx, esi
call dword [0x10046188]
call esi
jmp 0x1000fbe1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000fc25
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100484f8
push 0x100484f0
push str.FlsGetValue
push 0x21
call fcn.1000fac3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000fc5c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10046188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000fc64
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10048500
push 0x100484f8
push str.FlsSetValue
push 0x22
call fcn.1000fac3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000fc9e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10046188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100116ef
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001178c
push ebx
push esi
call fcn.100116b8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001164c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011739
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001178b
push edi
push eax
call fcn.1000e6b3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011759
call fcn.1000e679
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001178a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001164c
add esp, 0x20
test eax, eax
jne 0x10011778
push edi
call fcn.1000e679
jmp 0x10011780
push ebx
call fcn.1000e679
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10018e40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10018e6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10018e6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10019510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10019543
call fcn.10019670
jmp 0x10019545
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x1001993a
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x1001993a
mov dword [ebp - 8], 1
jmp 0x10019941
mov dword [ebp - 8], 0
movzx eax, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1001ae50
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10076024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x414]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x1001ae90
call fcn.10019670
jmp 0x1001afa0
cmp dword [ebp - 0x41c], 0x100
jbe 0x1001aea6
mov eax, 0x80020013
jmp 0x1001afa0
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x1004bff8
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1001aecf
call fcn.10019670
jmp 0x1001afa0
mov eax, 2
imul ecx, eax, 0x103
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x208
jae 0x1001aeee
jmp 0x1001aef3
call fcn.100058d5
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x20c], dx
push 0
push 0x2100
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0xffffffff
jne 0x1001af38
call fcn.10019670
jmp 0x1001afa0
push 0
lea edx, [ebp - 0x42c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x1001af6c
call fcn.10019670
jmp 0x1001afa0
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x1001af8f
call fcn.10019670
jmp 0x1001afa0
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.10001cd0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005425
mov esp, ebp
pop ebp
ret
Function at 0x1001b460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10045263
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10076024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x1001b4ea
mov ecx, dword [ebp + 8]
call fcn.10001750
mov dword [ebp - 0x1c], eax
push 0x1004bea4
lea ecx, [ebp - 0x2c]
call fcn.10005060
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.100017a0
push eax
mov ecx, dword [ebp - 0x28]
call fcn.10004d70
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xb0]
call edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10004ff0
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x1001b50d
cmp dword [ebp - 0x10], 0
jl 0x1001b50d
push 0
mov ecx, dword [ebp + 0xc]
call fcn.100017c0
movzx ecx, al
test ecx, ecx
je 0x1001b64d
push 0x1004bed0
push 0x1004bee4
mov edx, dword [0x10081084]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1001b54f
mov eax, dword [ebp - 0x10]
push eax
push 0x76
push 0x86
push 0x82
call fcn.1001b050
add esp, 0x10
mov eax, 0x80004005
jmp 0x1001b64f
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [0x10081084]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [0x10081084]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x14]
call fcn.100199d0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.10001750
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
call fcn.100017a0
push eax
lea ecx, [ebp - 0x14]
call fcn.10001660
push eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xb4]
call edx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x1001b605
mov eax, dword [ebp - 0x10]
push eax
push 0x76
push 0x87
push 0x82
call fcn.1001b050
add esp, 0x10
mov dword [ebp - 0x3c], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10019980
mov eax, dword [ebp - 0x3c]
jmp 0x1001b64f
cmp dword [ebp - 0x10], 0
jge 0x1001b63e
mov ecx, dword [ebp - 0x10]
push ecx
push 0x76
push 0x88
push 0x82
call fcn.1001b050
add esp, 0x10
mov dword [ebp - 0x40], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10019980
mov eax, dword [ebp - 0x40]
jmp 0x1001b64f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10019980
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001c650
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100453ff
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10076024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x80004005
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
call fcn.10001730
mov byte [ebp - 4], 1
push 0x1004bd94
lea eax, [ebp + 8]
push eax
call fcn.100030e0
add esp, 8
test eax, eax
jl 0x1001c6b4
mov dword [ebp - 0x20], 1
jmp 0x1001c6bb
mov dword [ebp - 0x20], 0
mov cl, byte [ebp - 0x20]
mov byte [ebp - 0xd], cl
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], dl
push 0x1004bda0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1001c6fd
push 0
push 0x8c
push 0x72
push 0x8b
call fcn.1001b050
add esp, 0x10
mov dword [ebp - 0x14], 0x80004005
jmp 0x1001c7be
push str.CLRCreateInstance
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1001c737
push 0
push 0x8c
push 0x8d
push 0x8b
call fcn.1001b050
add esp, 0x10
mov dword [ebp - 0x14], 0x80004005
jmp 0x1001c7b4
lea ecx, [ebp - 0x1c]
call fcn.100017a0
push eax
push 0x1004bc5c
push 0x1004bc6c
call dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1001c77a
mov ecx, dword [ebp - 0x14]
push ecx
push 0x8c
push 0x8e
push 0x8b
call fcn.1001b050
add esp, 0x10
mov dword [ebp - 0x14], 0x80004005
jmp 0x1001c7b4
mov edx, dword [ebp + 0x20]
push edx
lea ecx, [ebp - 0x1c]
call fcn.10001660
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30], esp
lea eax, [ebp + 8]
push eax
call fcn.10001fb0
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
call fcn.1001c500
add esp, 0x20
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10001780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001d60
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x410769
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4107af
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
call fcn.0040fadb
mov edi, eax
mov dword [ebp - 0xc], esi
mov edx, edi
mov ecx, esi
call fcn.0040f930
mov edx, 0x72a23c
mov byte [ebp - 8], al
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], edi
call fcn.0041037a
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4107b6
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
xor eax, eax
sub esp, 0x190
inc eax
lock xadd dword [0x7a5508], eax
inc eax
cmp eax, 1
jne 0x4107e6
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x7a550c
xchg dword [ecx], eax
mov esp, ebp
pop ebp
ret