joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421e2c
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x510
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_select]
xor esi, esi
jmp 0x421ea8
mov dword [ebp + 0x70], esi
cmp dword [ebp - 0x9c], esi
jbe 0x421ea8
mov eax, dword [ebp + 0x70]
mov eax, dword [ebp + eax*4 - 0x98]
cmp eax, ebx
jne 0x421e64
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x6c], ecx
jmp 0x421e67
mov dword [ebp + 0x6c], ebx
push esi
push 0x400
lea ecx, [ebp - 0x49c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 0x68], eax
cmp eax, 1
jl 0x421ed7
push esi
push eax
lea eax, [ebp - 0x49c]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 0x68]
jne 0x421ed7
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp - 0x9c]
jb 0x421e4e
mov eax, dword [ebp + 0x7c]
push esi
push esi
mov dword [ebp - 0x94], eax
push esi
lea eax, [ebp - 0x9c]
push eax
push esi
mov dword [ebp - 0x9c], 2
mov dword [ebp - 0x98], ebx
call edi
cmp eax, 1
jge 0x421e43
pop edi
pop esi
add ebp, 0x74
leave
ret 4

Function at 0x421ee0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 1]
cmp ecx, 0x40
jae 0x421f74
test eax, eax
je 0x421f17
xor edx, edx
mov ebx, 0x3e8
div ebx
mov ebx, dword [ebp + 8]
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 4
push ebx
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x10c], ecx
call fcn.0041e83d
test esi, esi
je 0x421f45
mov eax, esi
shl eax, 2
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call fcn.0041e83d
xor eax, eax
cmp eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
sbb eax, eax
and eax, ecx
push eax
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x421f7d
push 0x274c
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 0xc
cmp eax, 0xffffffff
je 0x421f74
xor esi, esi
push dword [ebx + esi*4]
lea eax, [ebp - 0x10c]
call fcn.00421b4d
test al, al
jne 0x421f9e
inc esi
cmp esi, 1
jb 0x421f84
jmp 0x421f74
mov eax, dword [ebx + esi*4]
jmp 0x421f77

Function at 0x422050
Capabilities:
Create udp socket

Disassembly:
movzx eax, word [esi]
push edi
push 0x11
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x42208d
xor eax, eax
cmp word [esi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x42208d
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or edi, 0xffffffff
mov eax, edi
pop edi
ret
Function at 0x422a04
Capabilities:
Get common file path

Disassembly:
push edi
xor edi, edi
call fcn.00422925
test al, al
je 0x422af5
push esi
mov eax, 0x950
call fcn.0041e7d1
mov esi, eax
test esi, esi
je 0x422aef
push dword [esp + 0xc]
lea eax, [esi + 0x53e]
push eax
xor eax, eax
call fcn.00424512
test al, al
je 0x422ae9
lea eax, [esi + 0x746]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
setne al
test al, al
je 0x422ae9
mov ecx, accept
mov dword [esi + 0x14], ecx
lea eax, [esi + 0x10]
mov dword [eax], ecx
xor ecx, ecx
inc ecx
push 0xc
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
push 0x4097d0
lea ecx, [esi + 0x132]
push ecx
call fcn.0041e83d
push 2
push 0x4097bc
lea ecx, [esi + 0x232]
push ecx
call fcn.0041e83d
push esi
push eax
push 0x42280f
push 0x4227d7
push 0x42278b
push fcn.00422762
push 0x42271a
push 0x4226e2
push fcn.004226ad
push fcn.00422521
push fcn.0042250e
lea eax, [esi + 4]
push 0x422890
push eax
call dword [0x42b56c]
add esp, 0x34
mov dword [esi], eax
test eax, eax
je 0x422ae9
mov edi, esi
jmp 0x422af4
push esi
call fcn.0041e801
call fcn.004229e3
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x422cfb
Capabilities:
Create thread

Disassembly:
cmp byte [esi], 0x40
jb 0x422d0f
push 0x9b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x422d3d
cmp dword [esp + 8], 0
je 0x422d3b
push 0
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x422d0b
movzx ecx, byte [esi]
mov dword [esi + ecx*4 + 4], eax
inc byte [esi]
mov al, 1
ret 0xc

Function at 0x422d63
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422d9c
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 4]
call fcn.00422e8b
mov ebx, eax
jmp 0x422d9f
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x422e10
test bl, 1
jne 0x422e10
cmp dword [ebp + 8], 1
je 0x422db5
cmp dword [ebp + 8], 2
jne 0x422e10
test ebx, ebx
jne 0x422dc0
xor eax, eax
mov word [edi], ax
jmp 0x422e0c
shr ebx, 1
lea eax, [ebx - 1]
cmp word [edi + eax*2], 0
jne 0x422dcf
dec ebx
jmp 0x422ddd
inc eax
cmp dword [ebp + 0x10], eax
jbe 0x422e10
xor ecx, ecx
mov word [edi + eax*2], cx
mov ebx, eax
cmp eax, 2
jbe 0x422e0c
cmp dword [ebp + 8], 2
jne 0x422e0c
push edi
call fcn.0041ebbd
mov esi, eax
test esi, esi
je 0x422e03
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x422e06
or ebx, 0xffffffff
push esi
call fcn.0041e801
mov eax, ebx
jmp 0x422e13
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 0xc
Function at 0x422ebe
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov eax, reloc.WS2_32.dll_accept
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x422f0b
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x422f02
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret 0x14

Function at 0x422f12
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 8], 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push ebx
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x422f84
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x422f49
mov dword [ebp - 8], ebx
jmp 0x422f84
add eax, 4
call fcn.0041e7d1
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x422f84
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x422f7c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x422f84
push dword [ebp - 0xc]
call fcn.0041e801
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 0xc
Function at 0x422fbe
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
movzx ecx, cl
push edi
movzx eax, al
push ecx
call fcn.0041fb94
mov esi, eax
mov dword [ebp - 0xc], esi
call fcn.0041fb48
mov ebx, 0x409810
test eax, 0x100
je 0x422ff5
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x409824
jmp 0x422fff
mov dword [ebp - 0x1c], 0x409824
mov dword [ebp - 0x18], ebx
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp esi, edi
jbe 0x4230ad
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 2
jne 0x423044
call fcn.0041fb48
test eax, 0x100
je 0x423036
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x409824
jmp 0x423040
mov dword [ebp - 0x1c], 0x409824
mov dword [ebp - 0x18], ebx
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esi, dword [ebp + eax*4 - 0x1c]
xor eax, eax
cmp esi, ebx
setne al
dec eax
and eax, 0xd
add eax, 6
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
je 0x423086
mov eax, edi
sub eax, dword [ebp - 8]
cmp eax, 1
jbe 0x423086
call fcn.0041fb48
mov ecx, eax
mov eax, 0x101
and ecx, eax
cmp ecx, eax
jne 0x423086
push 0x20
pop eax
mov dword [ebp - 8], edi
jmp 0x423096
mov eax, dword [ebp - 0x14]
dec eax
push 0
call fcn.0041fb94
movsx ax, byte [eax + esi]
mov ecx, dword [ebp + 0xc]
mov word [ecx + edi*2], ax
inc edi
inc dword [ebp - 4]
cmp edi, dword [ebp - 0xc]
jb 0x423018
mov esi, dword [ebp - 0xc]
test byte [ebp + 8], 4
je 0x4230cc
test esi, esi
je 0x4230cc
mov edi, dword [ebp + 0xc]
lea eax, [edi + esi*2 - 2]
cmp word [eax], 0x20
jne 0x4230cf
sub eax, 2
dec esi
jne 0x4230be
jmp 0x4230cf
mov edi, dword [ebp + 0xc]
xor eax, eax
test byte [ebp + 8], 2
mov word [edi + esi*2], ax
je 0x4230e8
movzx eax, word [edi]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov word [edi], ax
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
mov al, byte [ebp + 0x18]
mov cl, 4
call fcn.00422fbe
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
call fcn.00424512
test al, al
je 0x423148
cmp dword [ebp + 0x14], 0
je 0x42313a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
je 0x423148
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x423155
inc esi
cmp esi, 0x64
jb 0x4230fb
xor al, al
pop esi
leave
ret 0x14
mov al, 1
jmp 0x423150
Function at 0x4231e2
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x2d4
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x260]
push eax
push ebx
push ebx
push 0x24
push ebx
mov byte [ebp + 0x73], bl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x423280
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x260]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
jmp 0x423249
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x423280
lea eax, [ebp - 0x260]
push eax
call esi
push 0x64
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test eax, eax
je 0x423222
cmp word [ebp - 0x44], 0x7b
jne 0x423280
push dword [ebp + 0x7c]
xor eax, eax
mov word [ebp + 8], ax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x423280
mov byte [ebp + 0x73], 1
jmp 0x42328b
push 0x10
push ebx
push dword [ebp + 0x7c]
call fcn.0041e8b4
mov al, byte [ebp + 0x73]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x42347b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 8], esi
call fcn.00423436
cmp eax, 0x1e
jb 0x4235de
lea eax, [ebp - 4]
push eax
push 0x40
push 0x1e
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x4235de
push 0x23
push 0xffffffffffffff90
lea eax, [ebp - 0x2c]
push eax
call fcn.0041e8b4
push esi
push 0x1e
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4235ca
push ebx
push edi
lea edi, [ebp - 0x2c]
push esi
mov eax, edi
push eax
call fcn.004256b0
mov ebx, 0x409904
jmp 0x42353c
add esi, eax
cmp esi, 0x1e
ja 0x423550
mov cl, byte [edi]
cmp cl, 0xe9
je 0x423502
cmp cl, 0xe8
jne 0x42352b
cmp eax, 5
jne 0x42352b
movzx eax, cl
push eax
push 0x409990
push 0
push 0x5f
push 0x4098b8
push ebx
call fcn.00420542
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x10]
add esp, 0x18
add dword [edi + 1], eax
push 0
cmp esi, 5
jae 0x42356f
lea edi, [ebp + esi - 0x2c]
push edi
call fcn.004256b0
cmp eax, 0xffffffff
jne 0x4234ef
push dword [ebp + 8]
push esi
push 0x409850
push 2
push 0x4a
jmp 0x42355f
push dword [ebp + 8]
sub esi, eax
push esi
push 0x409918
push 2
push 0x55
push 0x4098b8
push ebx
call fcn.00420542
add esp, 0x1c
jmp 0x4235c8
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x10]
lea edi, [esi + 5]
sub eax, 5
mov dword [ebp + esi - 0x2b], eax
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
mov byte [ebp + esi - 0x2c], 0xe9
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
call esi
test eax, eax
je 0x4235c8
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sub eax, 5
mov byte [ebp - 0x2c], 0xe9
mov dword [ebp - 0x2b], eax
call fcn.0040f55c
push 0
push 5
lea eax, [ebp - 0x2c]
push eax
push ecx
push 0xffffffffffffffff
call esi
test eax, eax
je 0x4235c8
mov dword [ebp - 8], edi
pop edi
pop ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x1e
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 8]
pop esi
leave
ret 0xc
Function at 0x4235e6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x50]
push ebx
push edi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x423613
xor eax, eax
jmp 0x4236e4
push 0x40
push 0x3000
push ebx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
test eax, eax
je 0x4236e1
push ebx
push edi
call fcn.0041e854
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x4236ca
cmp dword [esi + 0xa4], ecx
jbe 0x4236be
mov eax, dword [esi + 0xa0]
cmp eax, ecx
jbe 0x4236be
mov esi, dword [esi + 0x34]
mov edx, dword [ebp - 8]
sub edi, esi
sub edx, esi
mov dword [ebp - 0x10], edi
add eax, ebx
jmp 0x4236a3
mov esi, dword [eax + 4]
cmp esi, 8
jb 0x42369e
add esi, 0xfffffff8
shr esi, 1
mov dword [ebp - 0xc], ecx
je 0x42369e
mov ecx, dword [ebp - 0xc]
movzx ecx, word [eax + ecx*2 + 8]
test cx, cx
je 0x423696
and ecx, 0xfff
add ecx, dword [eax]
mov edi, edx
sub edi, dword [ebp - 0x10]
add dword [ecx + ebx], edi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], esi
jb 0x423679
add eax, dword [eax + 4]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x423667
push ecx
push dword [ebp - 0x14]
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
setne byte [ebp - 1]
push ebx
call fcn.0041e801
cmp byte [ebp - 1], 0
jne 0x4236e1
push 0x8000
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4236eb
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push 0x3c
pop edx
push edx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.0041e8b4
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x3c], edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x42372b
xor al, al
jmp 0x4237d7
push 0x10
push ebx
push esi
call fcn.0041e8b4
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.0041ec5f
mov dword [esi], eax
cmp eax, ebx
je 0x423724
jmp 0x423755
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x2f
jne 0x42375a
dec dword [ebp - 0xc]
inc dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
ja 0x423747
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
push edi
lea edi, [eax + ecx + 1]
lea eax, [edi + 1]
call fcn.0041e7d1
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x42377f
push dword [esi]
call fcn.0041e801
xor al, al
jmp 0x4237d6
push dword [ebp - 0xc]
inc eax
push dword [ebp - 0x10]
push eax
call fcn.0041e83d
push dword [ebp - 4]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [eax + ecx + 1]
push eax
call fcn.0041e83d
mov eax, dword [esi + 4]
mov byte [eax], 0x2f
mov byte [eax + edi], bl
mov eax, dword [ebp - 0xc]
inc eax
mov dword [esi + 8], eax
mov ax, word [ebp - 0x24]
mov word [esi + 0xc], ax
mov eax, dword [ebp - 0x30]
sub eax, 3
je 0x4237d0
dec eax
je 0x4237ca
mov byte [esi + 0xe], bl
jmp 0x4237d4
mov byte [esi + 0xe], 2
jmp 0x4237d4
mov byte [esi + 0xe], 1
mov al, 1
pop edi
pop ebx
leave
ret 4

Function at 0x423e3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x423e9a
cmp dword [ebp + 0xc], ebx
je 0x423e84
cmp dword [ebp + 0x10], ebx
je 0x423e84
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423e86
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
je 0x423e9a
push dword [ebp + 8]
call fcn.00423fe8
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
Function at 0x423ea2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
and al, 2
movzx eax, al
xor edi, edi
push edi
push edi
neg eax
push 3
sbb eax, eax
push edi
and eax, 6
or eax, 1
push eax
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x423f43
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x423f3a
cmp dword [ebp - 4], edi
jne 0x423f3a
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x423ef9
mov dword [esi], edi
mov al, 1
jmp 0x423f45
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
cmp eax, edi
je 0x423f3a
push edi
lea ecx, [ebp + 8]
push ecx
push dword [esi + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423f2c
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
je 0x423ef5
push 0x8000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4

Function at 0x423fe8
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret 4

Function at 0x424009
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x424086
xor esi, esi
push dword [ebp + 8]
call fcn.0041fb48
push eax
push 0x409a34
push 0x409a3c
mov edx, 0x104
lea edi, [ebp - 0x410]
call fcn.0041f4f4
add esp, 0x10
cmp eax, 0xffffffff
je 0x424086
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
mov eax, edi
call fcn.00424512
test al, al
je 0x424080
push 0
push 0
push dword [ebp + 0xc]
call fcn.00423e3d
test al, al
jne 0x42408e
inc esi
cmp esi, 0x64
jb 0x424030
xor al, al
pop edi
pop esi
leave
ret 8
mov al, 1
jmp 0x424088

Function at 0x424092
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x42410b
xor esi, esi
call fcn.0041fb48
push eax
push 0x409a34
push 0x409a50
mov edx, 0x104
lea edi, [ebp - 0x410]
call fcn.0041f4f4
add esp, 0xc
cmp eax, 0xffffffff
je 0x42410b
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.00424512
test al, al
je 0x424105
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x424113
inc esi
cmp esi, 0x64
jb 0x4240b9
xor al, al
pop edi
pop esi
leave
ret 4
mov al, 1
jmp 0x42410d
Function at 0x424294
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
jne 0x4242ad
mov esi, ebp
movzx eax, word [esi]
cmp eax, 0x5c
je 0x4242bf
cmp eax, 0x2f
je 0x4242bf
test ax, ax
jne 0x4242eb
mov edi, eax
xor eax, eax
push ebp
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4242df
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x4242e1
test al, 0x10
je 0x4242f2
test di, di
je 0x4242f0
mov word [esi], di
add esi, 2
jmp 0x4242ad
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4

Function at 0x4242fb
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x458
push esi
push edi
mov edi, ecx
push edi
lea eax, [esp + 0xc]
push eax
mov eax, 0x409a60
call fcn.00424512
test al, al
je 0x424398
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x424398
lea eax, [esp + 0x23c]
call fcn.00424117
test al, al
jne 0x42437e
push edi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x244]
call fcn.00424512
test al, al
je 0x42437e
test byte [esp + 0x210], 0x10
je 0x424374
lea ecx, [esp + 8]
call fcn.004242fb
jmp 0x42437e
lea eax, [esp + 8]
push eax
call fcn.00423fe8
lea eax, [esp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x424339
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret