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

Disassembly:
push ebp
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40389d
call fcn.00410c70
push dword [esp + 0x28]
call fcn.0040a2c0
lea edx, [esp]
push edx
push 0
push 0xb
push 1
push 2
call fcn.004105a7
push 0
push 0
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x403912
mov edx, 0x413028
push edx
call fcn.00410cd0
pop edx
push eax
push edx
call fcn.00410d10
pop eax
push eax
call fcn.0040a2d0
pop edx
add eax, edx
jmp 0x403a3f
mov ebx, dword [esp + 0x14]
shl ebx, 2
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
inc eax
lea edx, [esp]
push edx
push eax
call fcn.004106f5
mov ebx, dword [esp + 0x14]
add ebx, ebx
push ebx
mov ebp, dword [esp + 4]
lea eax, [ebp]
push eax
call fcn.00410920
push dword [esp + 0x14]
lea eax, [ebp]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov dword [esp + 0x14], eax
push edx
call fcn.00410cd0
pop edx
push eax
push edx
call fcn.00410cd0
pop edx
push eax
push 0x19
push 0xffffffff
mov ebp, dword [esp + 0x10]
lea eax, [ebp]
push eax
call fcn.00410a50
mov edx, 0x4130a2
push edx
call fcn.00410d10
lea eax, [esp + 0x1c]
push eax
call fcn.00410dd0
push edx
call fcn.00410cd0
pop edx
push eax
push edx
call fcn.00410cd0
pop edx
push eax
mov eax, 0x413078
push eax
push 1
push dword [esp + 0x28]
call fcn.0040b160
lea eax, [esp + 0x1c]
push eax
call fcn.00410dd0
call fcn.0040cf72
mov ebx, eax
cmp ebx, 0x32
jne 0x4039f0
mov edx, dword [esp + 0x18]
push edx
call fcn.00410cd0
pop edx
push eax
push edx
call fcn.00410d10
mov edx, str.:winnt_
push edx
call fcn.00410d10
lea eax, [esp + 0x1c]
push eax
call fcn.00410dd0
jmp 0x403a17
mov edx, dword [esp + 0x18]
push edx
call fcn.00410cd0
pop edx
push eax
push edx
call fcn.00410d10
mov edx, str.:windows_
push edx
call fcn.00410d10
lea eax, [esp + 0x1c]
push eax
call fcn.00410dd0
mov edx, dword [esp + 0x18]
push edx
call fcn.00410cd0
pop edx
push eax
push edx
call fcn.00410d10
pop eax
push eax
call fcn.0040a2d0
pop edx
add eax, edx
jmp 0x403a3f
push dword [esp + 0x18]
call fcn.00410da0
push eax
push dword [esp + 4]
call fcn.004107c6
pop eax
add esp, 0x1c
pop ebx
pop ebp
ret
Function at 0x40a77f
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x40a817
push edi
push 0x4162dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x415c2c]
test edi, edi
je 0x40a7eb
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40a7e4
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x415c2c
call fcn.0041050f
pop ecx
pop ecx
jmp 0x40a7e6
mov edi, dword [edi]
test edi, edi
jne 0x40a7bb
pop ebx
mov eax, dword [0x414948]
mov esi, eax
inc eax
push 0x10
push 0x415c2c
mov dword [0x414948], eax
call fcn.0041054f
pop ecx
pop ecx
push 0x4162dc
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x40b632
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x416300]
call fcn.004100e8
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x40b732
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x40b688
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x40b680
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x40b6c8
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x40b70a
push 0x22
pop edx
cmp cx, dx
je 0x40b6ba
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40b6aa
xor ecx, ecx
cmp word [eax], cx
je 0x40b70a
mov ecx, eax
add eax, 2
jmp 0x40b70c
test dx, dx
je 0x40b712
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x40b6ba
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x40b700
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x40b70a
cmp cx, dx
je 0x40b6fd
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40b6ed
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x40b6d2
jmp 0x40b6ba
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40b714
xor edx, edx
cmp dword [ebp], ebx
jne 0x40b71d
test edi, edi
jne 0x40b73a
test edx, edx
je 0x40b722
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40b676
test edi, edi
jne 0x40b74b
mov eax, ebx
jmp 0x40b74f
test esi, esi
je 0x40b74b
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x40b74f
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40bde5
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push fcn.0040bd30
push 0x10
push 0x2c
call fcn.0041032c
xor esi, esi
mov dword [0x415c40], eax
push esi
push esi
push 8
call fcn.00410153
mov dword [0x416320], eax
cmp word [0x415c38], si
jne 0x40bece
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x40be3d
mov word [0x415c38], di
jmp 0x40be45
xor eax, eax
mov word [0x415c38], ax
push 0x800
push esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x415c54], eax
test eax, eax
je 0x40becd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x415c54]
mov dword [0x415c44], eax
call esi
push str.getnameinfo
push dword [0x415c54]
mov dword [0x415c48], eax
call esi
push str.WSAStringToAddressA
push dword [0x415c54]
mov dword [0x415c4c], eax
call esi
cmp dword [0x415c44], 0
mov dword [0x415c50], eax
je 0x40becd
cmp dword [0x415c48], 0
je 0x40becd
cmp dword [0x415c4c], 0
je 0x40becd
test eax, eax
je 0x40becd
mov dword [0x415c3c], edi
pop edi
pop esi
add esp, 0x190
ret
Function at 0x40c18f
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x840
push ebx
push ebp
push esi
push edi
push dword [0x416320]
xor esi, esi
mov dword [esp + 0x14], esi
call fcn.004100e8
mov ebp, dword [esp + 0x854]
xor edi, edi
inc edi
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp word [ebp + 0x20], di
jne 0x40c1fe
push esi
push esi
push dword [ebp]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c360
lea eax, [ebp + 0x28]
push 0x18
push eax
call fcn.0041054f
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x10], edi
mov dword [ecx], edi
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], ebp
mov eax, dword [ebp + 0x24]
mov dword [ebx + 4], eax
mov dword [ebx], ecx
jmp 0x40c360
cmp word [ebp + 0x22], si
je 0x40c232
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1c
push eax
lea eax, [esp + 0x38]
push eax
push esi
push 0x800
lea eax, [esp + 0x60]
push eax
push dword [ebp]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x40c25e
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push eax
lea eax, [esp + 0x28]
push eax
push esi
push 0x800
lea eax, [esp + 0x60]
push eax
push dword [ebp]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
mov dword [esp + 0x14], eax
test edi, edi
jle 0x40c360
lea ebx, [ebp + 0x28]
mov dword [esp + 0x10], 2
mov esi, dword [ebx]
jmp 0x40c2a2
xor eax, eax
cmp word [ebp + 0x22], ax
je 0x40c287
push dword [esp + 0x1c]
lea eax, [esp + 0x38]
jmp 0x40c28f
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
lea eax, [esi + 0xc]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x40c2a8
mov esi, dword [esi]
test esi, esi
jne 0x40c275
jmp 0x40c2b2
lea ebx, [esi + 8]
test esi, esi
jne 0x40c2f1
lea ebx, [ebp + 0x28]
push 0x40
push ebx
call fcn.0041054f
mov ebx, eax
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
mov dword [ebx], eax
lea edi, [ebx + 4]
mov dword [ebx + 0x24], ebp
mov al, byte [ebp + 0x22]
mov byte [ebx + 0x20], al
xor eax, eax
cmp word [ebp + 0x22], ax
je 0x40c2e7
push 7
pop ecx
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x40c2f3
lea esi, [esp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x40c2e1
xor eax, eax
cmp dword [ebx + 0x2c], 0
jne 0x40c321
push edi
push eax
push dword [0x415780]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
lea ecx, [esp + 0x54]
mov dword [ebx + 0x2c], eax
push ecx
push eax
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x34], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x40c354
mov eax, dword [ebx + 0x30]
add eax, edi
push eax
push dword [ebx + 0x2c]
push 8
push dword [0x415780]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
lea eax, [esp + 0x50]
push edi
push eax
mov eax, dword [ebx + 0x30]
add eax, ecx
mov dword [ebx + 0x2c], ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [ebx + 0x30], edi
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
mov ecx, dword [ebp + 0x24]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret
Function at 0x40c953
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x920
xor eax, eax
inc eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
cmp dword [edi], eax
jne 0x40c9d6
mov esi, dword [edi + 8]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], esi
push eax
lea eax, [esi + 1]
mov dword [ebp - 0xc], ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x40c9cd
je 0x40c9d2
lea eax, [ebp - 0x120]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40c9d2
lea eax, [ebp + 8]
push eax
push 0x4004667f
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x40c9cd
cmp dword [ebp + 8], ebx
je 0x40c9cd
push 2
jmp 0x40c9cf
push 4
pop esi
jmp 0x40ca30
mov esi, ebx
jmp 0x40ca30
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x800
lea eax, [ebp - 0x920]
push eax
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp + 8], eax
test eax, eax
jle 0x40ca30
push 2
pop esi
push eax
push ebx
push dword [0x415780]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
push ecx
mov dword [edi + 0x30], ecx
lea ecx, [ebp - 0x920]
push ecx
push eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x34], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ca3b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [esi], 1
jne 0x40ca61
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
jmp 0x40ca9e
cmp dword [esi + 0x2c], ebx
je 0x40ca9e
mov edi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x30]
jle 0x40ca71
mov edi, dword [esi + 0x30]
push edi
push dword [esi + 0x34]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x30], edi
add esp, 0xc
add dword [esi + 0x34], edi
cmp dword [esi + 0x30], ebx
jne 0x40ca9e
push dword [esi + 0x2c]
push ebx
push dword [0x415780]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x2c], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40cbd2
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0xff
push eax
mov dword [0x416324], esi
mov dword [0x416334], esi
mov dword [0x416338], edi
mov dword [0x41633c], esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x40cc7e
cmp edi, 0x10000000
jne 0x40cc5a
cmp dword [0x415c3c], esi
je 0x40cc7e
mov eax, dword [0x415c58]
test eax, eax
je 0x40cc36
push eax
call dword [0x415c48]
mov dword [0x415c58], esi
push 0x415c58
push esi
push esi
lea eax, [ebp - 0x100]
push eax
call dword [0x415c44]
test eax, eax
jne 0x40cc7e
mov eax, dword [0x415c58]
mov dword [0x41633c], eax
jmp 0x40cc7b
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40cc7e
push 0x10
push eax
push 0x416328
call sub.MSVCRT.dll_memcpy
add esp, 0xc
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40cdf8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp eax, 0xffffffff
jne 0x40ce1b
lea eax, [ebp + 0xc]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40ce62
push 2
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ce5b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2745
je 0x40ce5f
cmp eax, 0x2746
je 0x40ce5f
cmp eax, 0x2749
je 0x40ce5f
cmp eax, 0x274a
je 0x40ce5f
xor esi, esi
jmp 0x40ce62
test esi, esi
jne 0x40ce62
push 0xfffffffffffffffe
pop esi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x40cf72
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d0e8
mov eax, dword [esp + 0x24]
dec eax
je 0x40d0cb
dec eax
jne 0x40d0e8
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0040cf2b
pop ecx
test eax, eax
je 0x40d029
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x40cfec
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x40d0c7
dec ebx
je 0x40d0c3
dec ebx
je 0x40d0a2
dec ebx
je 0x40d05c
sub ebx, 4
jne 0x40d0e8
test edi, edi
jne 0x40d0e8
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x40d0e8
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x40cfec
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x40cfe7
sub edi, 0
je 0x40d094
dec edi
je 0x40d086
dec edi
je 0x40d078
dec edi
jne 0x40d0e8
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40d0e8
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40d0e8
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40d0e8
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40d0e8
sub edi, 0
je 0x40d0bf
dec edi
je 0x40d0bb
dec edi
jne 0x40d0e8
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40d0e8
push 0x3c
jmp 0x40d0e7
push 0x32
jmp 0x40d0e7
push 0x14
jmp 0x40d0e7
push 5
jmp 0x40d0e7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40d0e5
cmp eax, 0xa
je 0x40d0e1
cmp eax, 0x5a
jne 0x40d0e8
push 0x28
jmp 0x40d0e7
push 0x1e
jmp 0x40d0e7
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x40d1d0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
lea eax, [ebp - 0x40]
push 0x40
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 6
jne 0x40d201
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x60]
jmp 0x40d283
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40d25d
mov eax, dword [ebp + 8]
sub eax, 0
je 0x40d255
dec eax
je 0x40d24d
dec eax
je 0x40d245
dec eax
je 0x40d23d
dec eax
je 0x40d235
dec eax
jne 0x40d25d
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x40d285
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x40d285
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x40d285
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x40d285
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x40d285
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x40d285
cmp dword [ebp + 8], 7
jne 0x40d281
push 0x2c
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x40d281
mov eax, dword [ebp - 0x68]
jmp 0x40d283
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d310
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x415c74], 0
jne 0x40d31e
call fcn.0040d290
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x415c78]
call esi
test eax, eax
jne 0x40d341
call fcn.0040d290
push dword [0x415c78]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x40d350
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x40d3b0
mov ebx, 0x10
test edi, edi
jns 0x40d3b9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40d382
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40d3d0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x415c74], 0
jne 0x40d3de
call fcn.0040d290
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x415c78]
call esi
mov edx, eax
test edx, edx
jne 0x40d405
call fcn.0040d290
push dword [0x415c78]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x40d438
mov ebx, 0x10
test esi, esi
jns 0x40d441
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x40d450
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40d6f3
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x415c80]
push esi
test eax, eax
jne 0x40d704
push fcn.0040d80c
push 0x10
push 0x258
call fcn.0041032c
mov dword [0x415c80], eax
push dword [esp + 0xc]
push eax
call fcn.00410298
mov esi, eax
test esi, esi
je 0x40d805
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x40d726
mov edi, 0x412008
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x40d736
xor eax, eax
cmp word [ebx], ax
jne 0x40d73b
mov ebx, 0x4120e0
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x415780]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40d7ec
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x40d79c
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x40d7a0
push 0x4120e8
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x40d7a0
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40d7c4
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x40d7da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40d7d8
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x415780]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x40d803
cmp dword [esp + 0x14], 0xffffffff
je 0x40d7f7
mov esi, dword [esp + 0x14]
push esi
push dword [0x415c80]
call fcn.0041020a
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x40d882
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x40d8fa
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x40d8db
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x40d8d8
cmp ecx, 0x5c
je 0x40d8d8
cmp ecx, 0x2f
jne 0x40d8e5
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x40d8c5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40d8fc
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40da59
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40da82
test byte [esp + 8], 2
je 0x40da76
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40da84
xor eax, eax
ret 8