joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ca90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
xor eax, eax
push esi
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], eax
push eax
push eax
push 1
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x41cade
push str.write_com_Error_Creating_event
call fcn.0041d300
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x418
ret
mov eax, dword [esp + 0x42c]
mov esi, dword [esp + 0x424]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x42c]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41cbf1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x41cb54
call edi
push eax
lea edx, [esp + 0x24]
push str.ERROR:_Writing_on_Com__lu
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
lea eax, [esp + 0x2c]
push eax
call fcn.0041d300
mov ecx, dword [esp + 0x2c]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x418
ret
mov edx, dword [esp + 0x1c]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x41cbaf
cmp eax, 0x102
je 0x41cbaf
cmp eax, 0xffffffff
je 0x41cbaf
lea eax, [esp + 8]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41cbf1
push str.write_com_error_getting_overlapped_result
call fcn.0041d300
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x418
ret
push eax
lea eax, [esp + 0x224]
push str.Error_write_com_wait_object_returned__lu
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
lea ecx, [esp + 0x22c]
push ecx
call fcn.0041d300
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x418
ret
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x418
ret
Function at 0x41d990
Capabilities:
Create thread

Disassembly:
sub esp, 0x130
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x140]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], 0x64
call fcn.0041dce0
add esp, 4
test eax, eax
jne 0x41da19
mov edx, dword [0x42e9f0]
push edx
push 0x46b9e0
push str.Cannot_close_OBox_
push ebx
push 0xffffffffffffffff
push ebx
push 0x3e
call fcn.004247e0
mov eax, dword [esp + 0x15c]
add esp, 0x1c
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
shl ecx, 7
mov dword [ecx + 0x43a8d0], ebx
jmp 0x41da20
mov eax, dword [esp + 0x140]
lea edx, [eax + eax*4]
shl edx, 3
sub edx, eax
shl edx, 7
mov eax, dword [edx + 0x43a8d4]
add eax, 0x44
cmp word [eax], bx
je 0x41dbc8
mov edi, dword [sym.imp.MSVCRT.dll_swprintf]
push eax
lea eax, [esp + 0x40]
push str.._s
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x3c]
push ebx
push 0x40000000
push 3
push ebx
push ebx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41db56
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0x1c
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [esp + 0x140]
mov edi, dword [esp + 0x14]
and edi, 0xfffffffd
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
shl ecx, 7
mov edx, dword [ecx + 0x43a8d4]
lea ecx, [esp + 0xc]
push ecx
push esi
mov eax, dword [edx + 0x84]
mov byte [esp + 0x26], 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov byte [esp + 0x2d], 0xd
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], bl
call dword [sym.imp.KERNEL32.dll_SetCommState]
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov eax, dword [esp + 0x140]
push 0xc
push esi
mov edi, 1
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
shl ecx, 7
mov dword [ecx + 0x43a8d0], esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x140]
lea edx, [ecx + ecx*4]
shl edx, 3
sub edx, ecx
shl edx, 7
mov dword [edx + 0x439574], eax
lea eax, [esp + 0x140]
push eax
push ebx
push 0x41d340
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x130
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x144]
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
lea eax, [esp + 0x40]
shl ecx, 7
mov edx, dword [ecx + 0x43a8d4]
add edx, 0x44
push edx
push 0x43097c
push eax
call edi
mov ecx, dword [0x42e9f0]
lea edx, [esp + 0x4c]
push ecx
push 0x46b9e0
push edx
push ebx
push 0xffffffffffffffff
push ebx
push 0x3e
call fcn.004247e0
mov eax, dword [esp + 0x16c]
add esp, 0x2c
lea ecx, [eax + eax*4]
pop edi
shl ecx, 3
sub ecx, eax
mov eax, ebx
shl ecx, 7
pop esi
mov dword [ecx + 0x43a8d0], ebx
pop ebx
add esp, 0x130
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x130
ret
Function at 0x41dec0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x118
xor ecx, ecx
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x10], ecx
push esi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x120]
mov esi, dword [esp + 0x12c]
lea edx, [ecx + ecx*4]
shl edx, 3
sub edx, ecx
shl edx, 7
mov ecx, dword [edx + 0x43a8d4]
cmp dword [ecx], 0
jne 0x41df10
cmp byte [esi], 0x1b
jne 0x41dfed
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x18], eax
mov al, byte [esi]
cmp al, 0x1b
je 0x41df51
mov eax, dword [0x4308f8]
test eax, eax
jge 0x41df51
mov edx, dword [0x4f0c7c]
push 0
push 0x3e8
push 0x65
push edx
mov dword [0x4308f8], 0
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x134]
lea ecx, [esp + 8]
push eax
push ecx
push edi
push esi
mov esi, dword [esp + 0x13c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41dfc3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
jne 0x41df9b
lea edx, [esp + 8]
push 1
lea eax, [esp + 0x10]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x41dfdd
call edi
push eax
lea ecx, [esp + 0x24]
push str.Error_SerialOB_WriteFile:__lu
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [0x4f0c80]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00422690
add esp, 0x14
jmp 0x41dfdd
cmp dword [esp + 8], edi
je 0x41dfdd
mov ecx, dword [0x4f0c80]
push str.Error:_not_all_data_sent_on_port
push ecx
call fcn.00422690
add esp, 8
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x118
ret
Function at 0x41e140
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x454
lea eax, [esp + 0x2c4]
push ebx
push ebp
push esi
push edi
push eax
push 0x202
xor ebp, ebp
call sub.WS2_32.dll_WSAStartup
mov esi, dword [esp + 0x468]
push ebp
push ebp
lea ecx, [esp + 0xdc]
push 0x100
push ecx
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
inc eax
push eax
push esi
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edi, [esp + 0xd4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1d4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x41e1ce
mov ecx, dword [0x4f0c80]
push 0x430d0c
push ecx
call fcn.00422690
add esp, 8
mov cl, byte [esp + 0xd4]
mov al, 0x5c
cmp cl, al
jne 0x41e1e4
cmp byte [esp + 0xd5], al
je 0x41e1fa
lea edx, [esp + 0xd4]
push edx
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
je 0x41e2cd
lea eax, [esp + 0x1d4]
push 0x430d08
push eax
call dword [sym.imp.MSVCRT.dll_strtok]
mov esi, eax
add esp, 8
test esi, esi
je 0x41e219
push esi
jmp 0x41e21f
mov esi, str.Serverstation
push esi
call sub.WS2_32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
jne 0x41e2eb
call sub.WS2_32.dll_WSAGetLastError
mov ebp, eax
test ebp, ebp
je 0x41e2e2
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x18]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
cmp ebp, 0x2af9
jne 0x41e275
lea edx, [esp + 0x14]
push str._not_found
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
jmp 0x41e2b0
cmp ebp, 0x2afc
jne 0x41e297
lea eax, [esp + 0x14]
lea ecx, [esp + 0x14]
push eax
push str._s_:_Not_connected__no_data_record_found
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
jmp 0x41e2b0
lea edx, [esp + 0x14]
push ebp
push edx
lea eax, [esp + 0x1c]
push str._s_:_Not_connected__function_failed_with_error:__d
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
mov edx, dword [0x4f0c80]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00422690
mov esi, dword [esp + 0x18]
add esp, 8
or ebp, 0xffffffff
jmp 0x41e30f
push str.localhost
call sub.WS2_32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
jne 0x41e2eb
call sub.WS2_32.dll_WSAGetLastError
mov esi, dword [esp + 0x10]
or ebp, 0xffffffff
jmp 0x41e30f
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
mov ecx, dword [esi]
push ecx
call sub.WS2_32.dll_inet_ntoa
push eax
lea edx, [esp + 0x98]
push 0x430c14
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
test esi, esi
je 0x41e342
test ebx, ebx
je 0x41e342
mov eax, dword [esi]
mov esi, dword [esp + 0x46c]
push str.localhost
mov dword [esi], eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x41e342
mov ecx, dword [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [ecx]
mov ecx, dword [edx]
cmp eax, ecx
mov eax, 1
jne 0x41e344
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret
Function at 0x41e350
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [esp + 8]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x41e369
or eax, eax
ret
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x41e387
push 0x33
push 0x40a
push ecx
push eax
call sub.WS2_32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x41e387
or eax, eax
ret
xor eax, eax
ret

Function at 0x41e390
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov word [esp], 2
push eax
call sub.WS2_32.dll_htons
mov ecx, dword [esp + 0x18]
mov word [esp + 2], ax
mov eax, dword [esp + 0x14]
lea edx, [esp]
push 0x10
push edx
push eax
mov dword [esp + 0x10], ecx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x41e3d3
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x41e3d5
xor eax, eax
add esp, 0x10
ret

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

Disassembly:
sub esp, 0x100
push esi
mov esi, dword [esp + 0x108]
push 1
push esi
call sub.WS2_32.dll_shutdown
push 0
lea eax, [esp + 8]
push 0x100
push eax
push esi
call sub.WS2_32.dll_recv
test eax, eax
je 0x41e427
cmp eax, 0xffffffff
je 0x41e427
push 0
lea ecx, [esp + 8]
push 0x100
push ecx
push esi
call sub.WS2_32.dll_recv
test eax, eax
jne 0x41e40c
push 2
push esi
call sub.WS2_32.dll_shutdown
push esi
call sub.WS2_32.dll_closesocket
pop esi
add esp, 0x100
ret

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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xbb8
test eax, eax
push ebx
push esi
je 0x41e574
push 0
lea ecx, [esp + 0xc]
push 0xbb8
push ecx
push eax
call sub.WS2_32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41e558
test ebx, ebx
je 0x41e574
mov eax, dword [0x43c148]
test eax, eax
jne 0x41e4a9
push 0x2800
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [0x43c148], eax
test eax, eax
je 0x41e574
mov dword [0x43c47c], 0x2800
jmp 0x41e522
mov edx, dword [0x43c484]
mov ecx, dword [0x43c47c]
lea esi, [edx + ebx]
cmp esi, ecx
jbe 0x41e4e8
add ecx, 0x2800
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
test eax, eax
je 0x41e574
mov ecx, dword [0x43c47c]
mov dword [0x43c148], eax
add ecx, 0x2800
jmp 0x41e51c
mov esi, ecx
sub esi, edx
sub esi, ebx
cmp esi, 0x2800
jbe 0x41e522
add ecx, 0xffffd800
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
test eax, eax
je 0x41e574
mov ecx, dword [0x43c47c]
mov dword [0x43c148], eax
sub ecx, 0x2800
mov dword [0x43c47c], ecx
mov edx, dword [0x43c484]
push edi
mov ecx, ebx
lea esi, [esp + 0xc]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x43c484]
pop edi
add eax, ebx
pop esi
mov dword [0x43c484], eax
mov eax, ebx
pop ebx
add esp, 0xbb8
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41e574
mov ecx, dword [0x4f0c80]
push eax
push ecx
call fcn.00423b20
add esp, 8
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0xbb8
ret
Function at 0x41e580
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x43c48c]
push esi
test eax, eax
jne 0x41e5ec
mov ecx, dword [0x43c488]
test ecx, ecx
je 0x41e5ec
mov eax, dword [esp + 8]
test eax, eax
je 0x41e5ec
cmp eax, 0xffffffff
je 0x41e5ec
push 0
push ecx
mov ecx, dword [0x43c150]
push ecx
push eax
call sub.WS2_32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e5d3
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x41e5ce
mov dword [0x43c48c], 1
or eax, 0xffffffff
pop esi
ret
mov edx, dword [0x43c150]
push 0x43c488
push esi
push edx
call fcn.0041e8a0
add esp, 0xc
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x41e8e0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push esi
push 0x43e6e8
push 0
push 0x41e940
mov dword [0x43e6e8], eax
mov dword [0x43e6ec], ecx
mov dword [0x43e6f0], edx
call dword [sym.imp.MSVCRT.dll__beginthread]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x41e935
push 1
push 0x46b9e0
push str.__beginthread:_TicLocation
push 0
push eax
push 0
push 2
call fcn.004247e0
add esp, 0x1c
mov eax, esi
pop esi
ret
Function at 0x420f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
sub ecx, eax
push edi
mov dword [esp + 0x18], edx
mov ebp, 0x43e6d8
mov dword [esp + 0x14], esi
lea ebx, [eax + 0x308]
mov dword [esp + 0x1c], ecx
fld qword [ebx]
fld qword [0x444e18]
mov ecx, dword [esi]
xor edi, edi
fchs
fcompp
cmp ecx, edi
mov dword [esp + 0x20], ecx
fnstsw ax
je 0x421017
test ah, 0x41
je 0x420fbf
fld qword [ebx]
fcomp qword [0x444e18]
fnstsw ax
test ah, 0x41
je 0x420fbf
fild dword [esp + 0x20]
fld st(0)
fmul qword [ebx - 8]
fxch st(1)
fmul qword [ebp]
fcompp
fnstsw ax
test ah, 1
je 0x4210c7
jmp 0x421088
fld qword [ebx]
fcomp qword [0x426300]
fnstsw ax
test ah, 1
jne 0x420fd5
mov eax, 1
jmp 0x420fd8
or eax, 0xffffffff
neg eax
cmp ecx, eax
jne 0x421010
fld qword [ebx]
fcomp qword [0x426300]
fnstsw ax
test ah, 0x41
jne 0x420ff6
mov dword [edx + 4], 0xd4
jmp 0x420ffd
mov dword [edx + 4], 0xd5
mov dword [edx + 0x38], edi
push edx
mov dword [edx + 0x3c], edi
call fcn.00422500
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [esi], edi
jmp 0x4210c7
test ah, 0x41
je 0x42102b
fld qword [ebx]
fcomp qword [0x444e18]
fnstsw ax
test ah, 0x41
jne 0x421068
fld qword [ebx]
fcomp qword [0x426300]
fnstsw ax
test ah, 1
jne 0x421041
mov ecx, 1
jmp 0x421044
or ecx, 0xffffffff
mov eax, dword [esp + 0x1c]
fld qword [eax + ebx]
fcomp qword [0x426300]
fnstsw ax
test ah, 1
jne 0x42105f
mov eax, 1
jmp 0x421062
or eax, 0xffffffff
neg eax
cmp ecx, eax
jne 0x4210c7
mov ecx, dword [esp + 0x1c]
fld qword [ecx + ebx]
fcomp qword [0x426300]
fnstsw ax
test ah, 1
jne 0x421083
mov eax, 1
jmp 0x421086
or eax, 0xffffffff
mov dword [esi], eax
mov eax, dword [ebx - 8]
lea esi, [ebx - 0x38]
mov dword [ebp], eax
mov ecx, dword [ebx - 4]
mov eax, dword [esp + 0x28]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov ecx, 0x1e
sub esp, 0x78
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push edx
call fcn.004217a0
mov esi, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
add esp, 0x84
add ebp, 8
add esi, 4
add ebx, 0x78
add edx, 0x78
cmp ebp, 0x43e6e8
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
jl 0x420f6d
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x421850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
fld qword [ebp + 0x10]
fcomp qword [0x426300]
push ebx
push esi
push edi
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
fnstsw ax
test ah, 0x41
jne 0x4219aa
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
mov edi, 4
mov dword [esp + 0x14], edi
dec esi
mov dword [esp + 0x10], esi
jns 0x4218a5
mov dword [esp + 0x10], 0xff
mov esi, dword [esp + 0x10]
lea ecx, [esi + esi*2]
shl ecx, 1
lea eax, [ecx + edi]
lea eax, [ebx + eax*2]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
fld qword [edx + eax*8 + 0x18]
fcomp qword [ebp + 0x10]
fnstsw ax
test ah, 0x41
mov eax, dword [ebp + 0x1c]
jne 0x4218d1
cmp esi, eax
je 0x421995
jmp 0x421892
cmp esi, eax
je 0x421995
mov eax, edi
sub eax, 2
je 0x42194a
dec eax
je 0x42190f
dec eax
jne 0x421983
lea eax, [ebx + ecx*2 + 8]
lea edi, [esp + 0x18]
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
mov eax, dword [ebp + 8]
lea esi, [edx + ecx*8]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x421983
lea ecx, [ebx + ecx*2 + 6]
lea eax, [ecx + ecx*2]
lea ecx, [eax + eax*4]
mov edi, dword [edx + ecx*8 + 0x3c]
lea eax, [edx + ecx*8]
mov ecx, dword [edx + ecx*8 + 0x38]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x48]
mov edi, dword [eax + 0x4c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edi
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
jmp 0x421983
lea ecx, [ebx + ecx*2 + 4]
lea eax, [ecx + ecx*2]
lea ecx, [eax + eax*4]
mov edi, dword [edx + ecx*8 + 0x24]
lea eax, [edx + ecx*8]
mov ecx, dword [edx + ecx*8 + 0x20]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x28]
mov edi, dword [eax + 0x2c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edi
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov edi, dword [esp + 0x14]
dec edi
cmp edi, 2
mov dword [esp + 0x14], edi
jge 0x421892
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4219aa
lea ecx, [esp + 0x18]
push ecx
call fcn.00422500
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4228b0
Capabilities:
Create directory

Disassembly:
sub esp, 0xa04
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x416]
mov word [esp + 0x414], bp
mov word [esp + 0x614], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x616]
mov word [esp + 0x214], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x14], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x814], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x816]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0xa18]
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x10], esi
je 0x422a95
cmp word [eax], bp
je 0x422a95
push ebp
lea ecx, [esp + 0x418]
push ebp
lea edx, [esp + 0x61c]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__wsplitpath]
mov ax, word [esp + 0x428]
add esp, 0x14
cmp ax, 0x5c
jne 0x422993
cmp word [esp + 0x416], ax
jne 0x42299c
mov ebx, 1
jmp 0x42299c
cmp ax, bp
je 0x422a95
cmp word [esp + 0x614], bp
je 0x422a95
mov esi, dword [sym.imp.MSVCRT.dll_swprintf]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [esp + 0x414]
push 0x431418
push eax
call dword [sym.imp.MSVCRT.dll_wcstok]
add esp, 8
cmp eax, ebp
je 0x422aa2
push eax
lea eax, [esp + 0x218]
push 0x431410
push eax
call edi
add esp, 4
lea ecx, [esp + eax*2 + 0x21c]
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x214]
lea eax, [esp + 0x614]
lea ecx, [esp + 0x14]
push edx
push eax
push 0x42e5c0
push ecx
call edi
add esp, 4
lea edx, [esp + eax*2 + 0x20]
push edx
call esi
add esp, 0x10
cmp ebx, ebp
je 0x422a5f
lea eax, [esp + 0x214]
lea ecx, [esp + 0x814]
push eax
push ecx
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea edx, [esp + 0x81c]
lea eax, [esp + 0x21c]
push edx
push 0x431410
push eax
call esi
add esp, 0x14
xor eax, eax
mov word [esp + 0x14], bp
jmp 0x4229bd
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
test eax, eax
je 0x422a89
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll__wmkdir]
add esp, 4
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x10], eax
xor eax, eax
mov word [esp + 0x14], bp
jmp 0x4229bd
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa04
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa04
ret