joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4149e1
Capabilities:
Check if file exists

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.00451930
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00429060
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00429060
mov edx, dword [esp + 4]
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
lea eax, [0x6fe74c]
push eax
call fcn.00451800
push dword [0x6feb98]
call fcn.0044aaf4
push dword [0x6feb90]
call fcn.0044aaf4
push dword [0x6febb0]
call fcn.0044aaf4
mov dword [esp + 8], 4
jmp 0x414a52
mov ebx, dword [esp + 0x2c]
dec ebx
cmp ebx, dword [esp + 8]
jl 0x414b04
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push dword [esp + 0x10]
call fcn.0042bb7b
call fcn.00451990
mov edx, str._include
pop ecx
push ecx
call fcn.00429260
mov ecx, eax
call fcn.00429220
je 0x414afa
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
mov ebx, dword [esp + 0x10]
inc ebx
push ebx
call fcn.0042bb7b
lea eax, [esp + 0x10]
push eax
call fcn.00451800
push dword [esp + 0xc]
call sub.SHLWAPI.DLL_PathFileExistsW
and eax, eax
je 0x414afa
push dword [0x6febb0]
call fcn.0044ab52
mov edx, dword [esp + 0xc]
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
mov ebp, dword [0x6febb4]
lea eax, [ebp + 8]
push eax
call fcn.00451800
mov dword [esp + 0x10], 1
inc dword [esp + 8]
jno 0x414a52
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x414b3f
mov eax, dword [esp]
push eax
lea eax, [0x4227b9]
push eax
call fcn.00429edd
mov dword [esp + 0x14], eax
push dword [esp + 0x14]
call fcn.00429e6e
and eax, eax
je 0x414b3f
call fcn.0043e26b
push 5
call fcn.0043d8c0
jmp 0x414b21
push dword [0x6feb98]
call fcn.0044aaf4
push dword [0x6feb90]
call fcn.0044aaf4
push dword [0x6febb0]
call fcn.0044aaf4
xor eax, eax
push dword [esp]
call fcn.004519f0
push dword [esp + 4]
call fcn.004519f0
push dword [esp + 0xc]
call fcn.004519f0
add esp, 0x18
pop ebx
pop ebp
ret 0xc
Function at 0x4153b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.00451930
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00429060
push 2
push 0
push dword [esp + 8]
call sub.KERNEL32.DLL_LoadLibraryExW
mov dword [esp + 4], eax
push 0
lea eax, [0x40c381]
push eax
push dword [esp + 0xc]
call sub.KERNEL32.DLL_EnumResourceTypesW
push dword [esp + 4]
call sub.KERNEL32.DLL_FreeLibrary
push dword [0x6feba0]
call fcn.0044abf0
mov ebx, eax
and ebx, ebx
jle 0x41556b
push dword [0x6feba0]
call fcn.0044aaab
push dword [0x6feba0]
call fcn.0044aac0
or eax, eax
je 0x415464
mov edx, dword [esp + 8]
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
mov ebp, dword [0x6feba4]
mov edx, dword [ebp + 8]
push edx
call fcn.00451890
lea eax, [esp + 0xc]
push eax
call fcn.00451800
jmp 0x415428
push dword [0x6feba0]
call fcn.0044aaf4
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push 1
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push dword [esp + 0x24]
call fcn.0044f890
call fcn.004291f2
add dword [esp], edx
call fcn.00447e30
call fcn.004291f2
add dword [esp], edx
call fcn.0044f750
lea eax, [esp + 0x10]
push eax
call fcn.00451800
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push 1
push dword [esp + 0x20]
call fcn.00447e30
call fcn.004291f2
add dword [esp], edx
call fcn.0044f750
lea eax, [esp + 0x10]
push eax
call fcn.00451800
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push 0xa
push dword [esp + 0x18]
call fcn.0044f6e0
lea eax, [esp + 0x10]
push eax
call fcn.00451800
mov dword [esp + 0x10], 1
push 0
push dword [esp + 0x10]
push 0
push 1
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
call fcn.0041dbd4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
jmp 0x415573
push dword [esp]
call fcn.004519f0
push dword [esp + 8]
call fcn.004519f0
push dword [esp + 0xc]
call fcn.004519f0
add esp, 0x18
pop ebx
pop ebp
ret 4
Function at 0x415869
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push ebp
push ebx
mov edx, 0xaf
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x415870
call fcn.00451930
mov edx, dword [esp + 0x2c8]
lea ecx, [esp]
call fcn.00429060
cmp dword [0x6fe6dc], 0
je 0x4158f5
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push dword [esp + 0x10]
call fcn.0043099e
call fcn.004291f2
add dword [esp], edx
call fcn.0044fcc0
call fcn.00451990
mov edx, dword [0x6fe878]
pop ecx
push ecx
call fcn.00429260
mov ecx, eax
call fcn.00429220
je 0x4158f5
mov eax, dword [0x6fe6dc]
jmp 0x4159b3
cmp dword [0x6fe94c], 0
je 0x415956
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push dword [esp + 0x10]
call fcn.0043099e
call fcn.004291f2
add dword [esp], edx
call fcn.0044fcc0
call fcn.00451990
mov edx, dword [0x6fe65c]
pop ecx
push ecx
call fcn.00429260
mov ecx, eax
call fcn.00429220
je 0x415956
mov eax, dword [0x6fe94c]
jmp 0x4159b3
push dword [esp]
call sub.SHLWAPI.DLL_PathFileExistsW
and eax, eax
je 0x415993
mov ebx, dword [esp + 0x2cc]
or ebx, 0x120
push ebx
push 0x2b4
lea eax, [esp + 0xc]
push eax
push 0
push dword [esp + 0x10]
call sub.SHELL32.DLL_SHGetFileInfoW
and eax, eax
je 0x415993
mov eax, 1
jmp 0x415995
xor eax, eax
and eax, eax
je 0x4159a8
lea ebp, [esp + 4]
push dword [ebp]
pop eax
mov dword [esp + 0x2b8], eax
mov eax, dword [esp + 0x2b8]
jmp 0x4159b3
push dword [esp]
call fcn.004519f0
add esp, 0x2bc
pop ebx
pop ebp
ret 8
Function at 0x41d518
Capabilities:
Delete directory

Disassembly:
xor eax, eax
push eax
call fcn.00451930
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push 0
call fcn.0042bb7b
call fcn.00451990
mov edx, 0x4ea6cc
pop ecx
push ecx
call fcn.00429260
mov ecx, eax
call fcn.00429220
je 0x41d5f5
mov dword [esp], 0
jmp 0x41d561
mov eax, 0xa
cmp eax, dword [esp]
jl 0x41d5f0
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push 2
call fcn.0042bb7b
call fcn.004291f2
add dword [esp], edx
call fcn.004304d2
call fcn.00429210
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push 1
call fcn.0042bb7b
call fcn.004291f2
add dword [esp], edx
call sub.KERNEL32.DLL_RemoveDirectoryW
call fcn.00429210
and eax, eax
je 0x41d5dd
jmp 0x41d5f0
push 0x64
call fcn.0043d8c0
inc dword [esp]
jno 0x41d561
jmp 0x402cd1
xor eax, eax
add esp, 4
ret
Function at 0x429edd
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 0x429f75
push edi
push 0x700840
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [0x6febf4]
test edi, edi
je 0x429f49
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x429f42
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x6febf4
call fcn.004516a6
pop ecx
pop ecx
jmp 0x429f44
mov edi, dword [edi]
test edi, edi
jne 0x429f19
pop ebx
mov eax, dword [0x6fa0a0]
mov esi, eax
inc eax
push 0x10
push 0x6febf4
mov dword [0x6fa0a0], eax
call fcn.004516e6
pop ecx
pop ecx
push 0x700840
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 0x42a498
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x42a593
push edi
push dword [esp + 0x1c]
push dword [0x700860]
call fcn.00450f07
mov edi, eax
test edi, edi
je 0x42a592
mov eax, dword [edi + 4]
push ebx
mov ebx, dword [esp + 0x24]
push esi
imul esi, ebx, 0x24
cmp dword [eax + esi], 2
jne 0x42a4e5
mov eax, dword [eax + esi + 0x18]
test eax, eax
je 0x42a4e5
push 0
push eax
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, dword [edi + 4]
mov eax, dword [eax + esi + 0x20]
test eax, eax
je 0x42a4fe
push eax
call fcn.0044b9ea
mov eax, dword [edi + 4]
and dword [eax + esi + 0x20], 0
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x30]
push ebp
mov dword [esi + eax], 1
mov eax, dword [edi + 4]
mov dword [eax + esi + 8], ecx
mov eax, dword [edi + 4]
mov dword [eax + esi + 0x1c], ebp
call fcn.0044badb
test eax, eax
je 0x42a537
push 0
push 0
push ebp
call fcn.0044b650
mov ecx, dword [edi + 4]
mov dword [ecx + esi + 0x20], eax
jmp 0x42a53f
mov eax, dword [edi + 4]
and dword [eax + esi + 0x20], 0
mov eax, dword [esp + 0x30]
test al, 1
je 0x42a54f
or ebx, 0x200
jmp 0x42a559
test al, 2
je 0x42a559
or ebx, 0x100
mov esi, dword [sym.imp.USER32.DLL_SendMessageW]
mov eax, ebx
push 0
or eax, 0x1000
push eax
push 0x40b
push dword [edi]
call esi
lea eax, [esp + 0x10]
push eax
push ebx
push 0x40a
push dword [edi]
call esi
push 1
lea eax, [esp + 0x14]
push eax
push dword [edi]
call dword [sym.imp.USER32.DLL_InvalidateRect]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x10
ret 0x10
Function at 0x42b2f5
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x42b34a
push dword [esp + 0x10]
push 0x42b274
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x6fef64]
test esi, esi
je 0x42b3a3
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x42b342
cmp byte [esi + 0x10], 0
je 0x42b342
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x42b31e
jmp 0x42b3a3
mov esi, dword [0x6fef64]
test esi, esi
je 0x42b3a3
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x42b39c
cmp byte [esi + 0x11], 0
je 0x42b378
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x42b38f
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x6fef64
call fcn.004516a6
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x42b357
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x42ba43
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x700870]
call fcn.00450d68
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 0x42bb43
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x42ba99
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x42ba91
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x42bad9
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x42bb1b
push 0x22
pop edx
cmp cx, dx
je 0x42bacb
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42babb
xor ecx, ecx
cmp word [eax], cx
je 0x42bb1b
mov ecx, eax
add eax, 2
jmp 0x42bb1d
test dx, dx
je 0x42bb23
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x42bacb
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x42bb11
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x42bb1b
cmp cx, dx
je 0x42bb0e
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42bafe
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x42bae3
jmp 0x42bacb
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x42bb25
xor edx, edx
cmp dword [ebp], ebx
jne 0x42bb2e
test edi, edi
jne 0x42bb4b
test edx, edx
je 0x42bb33
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x42ba87
test edi, edi
jne 0x42bb5c
mov eax, ebx
jmp 0x42bb60
test esi, esi
je 0x42bb5c
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x42bb60
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x42cc43
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x42cca2
cmp word [esi], di
je 0x42cca2
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
call fcn.00467290
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.00467540
add esp, 0x10
test eax, eax
jne 0x42cca1
push 0x24
push 8
push dword [0x6fe384]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x42ede0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6ff18c], 0
jne 0x42edee
call fcn.0042ed80
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
push edi
push dword [0x6ff190]
call esi
test eax, eax
jne 0x42ee11
call fcn.0042ed80
push dword [0x6ff190]
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 0x42ee20
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 0x42ee80
mov ebx, 0x10
test edi, edi
jns 0x42ee89
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x42ee52
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42eea0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6ff18c], 0
jne 0x42eeae
call fcn.0042ed80
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
push edi
push dword [0x6ff190]
call esi
mov edx, eax
test edx, edx
jne 0x42eed5
call fcn.0042ed80
push dword [0x6ff190]
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 0x42ef08
mov ebx, 0x10
test esi, esi
jns 0x42ef11
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x42ef20
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42fdc2
Capabilities:
Reference http user-agent string

Disassembly:
push str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0042fdd7
ret 8
Function at 0x42fdd7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42fe6e
push ebx
push esi
push 0x30
push 8
push dword [0x6fe384]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
xor ebx, ebx
inc ebx
or dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x10]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test bl, al
je 0x42fe5c
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x42ffc1
push 0x2000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x42fe49
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x42fe4c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x42fe54
mov edi, esi
jmp 0x42fe6c
push esi
call fcn.004300a2
jmp 0x42fe6b
push esi
call fcn.0042fe83
push esi
mov edi, eax
call fcn.004300a2
pop ecx
pop ecx
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
ret 0xc

Function at 0x430187
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x6ff2e8], 0
jne 0x4301b3
push 0x4300d6
push 0x10
push 0x2c
mov dword [0x6ff2e8], edi
call fcn.00450fda
mov dword [0x6ff2e4], eax
cmp word [0x6ff2dc], 0
jne 0x43024f
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x4301de
mov word [0x6ff2dc], di
jmp 0x4301e6
xor eax, eax
mov word [0x6ff2dc], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [0x6ff2f8], eax
test eax, eax
je 0x43024f
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4d07b8
push eax
call esi
push 0x4d07c4
push dword [0x6ff2f8]
mov dword [0x6ff2ec], eax
call esi
push str.getnameinfo
push dword [0x6ff2f8]
mov dword [0x6ff2f0], eax
call esi
cmp dword [0x6ff2ec], 0
mov dword [0x6ff2f4], eax
pop esi
je 0x43024f
cmp dword [0x6ff2f0], 0
je 0x43024f
test eax, eax
je 0x43024f
mov dword [0x6ff2e0], edi
movsx eax, word [0x6ff2dc]
pop edi
add esp, 0x190
ret

Function at 0x4304a4
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4304cd
test byte [esp + 8], 2
je 0x4304c1
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 0x4304cf
xor eax, eax
ret 8
Function at 0x4304e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x430558
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 0x430539
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x430536
cmp ecx, 0x5c
je 0x430536
cmp ecx, 0x2f
jne 0x430543
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x430523
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x43055a
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4305e2
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x6ff308]
push esi
test eax, eax
jne 0x430607
push fcn.0043070f
push 0x10
push 0x258
call fcn.00450fda
mov dword [0x6ff308], eax
push dword [esp + 0xc]
push eax
call fcn.00450f46
mov esi, eax
test esi, esi
je 0x430708
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x430629
mov edi, 0x4d0068
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x430639
xor eax, eax
cmp word [ebx], ax
jne 0x43063e
mov ebx, 0x4d0848
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 [0x6fe384]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4306ef
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x43069f
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4306a3
push 0x4d0850
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4306a3
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 0x4306c7
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x4306dd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x4306db
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x6fe384]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
test ebp, ebp
jne 0x430706
cmp dword [esp + 0x14], 0xffffffff
je 0x4306fa
mov esi, dword [esp + 0x14]
push esi
push dword [0x6ff308]
call fcn.00450eb8
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x430854
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x43098f
push ebp
xor ebp, ebp
cmp word [eax], bp
je 0x43098e
push 0x104
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x220], ax
lea eax, [esp + 0x18]
push eax
call sub.MSVCRT.dll_wcslen
mov ecx, eax
add esp, 0x10
lea eax, [esp + ecx*2 + 0xa]
cmp ecx, 2
je 0x4308b0
cmp ecx, 3
jne 0x4308ea
cmp word [esp + 0xe], 0x3a
jne 0x4308ea
cmp ecx, 2
jne 0x4308ce
lea eax, [esp + 0xc]
push 0x4d0850
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x43098e
push 0xfffffffffffffffe
pop edi
jmp 0x43098e
push ebx
push 0x5c
pop ebx
movzx ecx, word [eax]
cmp cx, bx
je 0x4308fb
cmp ecx, 0x2f
jne 0x430905
xor ecx, ecx
mov word [eax], cx
sub eax, 2
jmp 0x4308ee
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, esi
je 0x430946
test byte [esp + 0x21c], 0x10
je 0x43092b
push 0xfffffffffffffffe
pop edi
jmp 0x43093d
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
or esi, ebp
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x43098d
cmp word [esp + 0x10], bx
jne 0x430954
cmp word [esp + 0x12], bx
je 0x430965
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x43098d
cmp word [esp + 0x12], ax
jne 0x43098d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, esi
je 0x43097a
test al, 0x10
je 0x43098d
jmp 0x43098a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x43098d
push 0xfffffffffffffffe
pop edi
pop ebx
pop ebp
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4