joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40211b
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa58
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0xa58]
mov dword [ebp - 4], ecx
push 0
push eax
call fcn.00402e68
push 0x250
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00402e68
push dword [ebp + 8]
lea eax, [ebp - 0xa58]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0xa58]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402194
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, str._ERROR___s:_d__FindFirstFileW_failed._Last_error:__d__0x_lx_
push 0x28
jmp 0x4021b2
push dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
call fcn.00401eee
test eax, eax
jne 0x4021d2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, str._ERROR___s:_d__ConsoleContext__SetDirectory_failed._Last_error:__d__0x_lx_
push 0x30
pop ebx
mov dword [ebp + 8], eax
call esi
push dword [ebp + 8]
push eax
push ebx
push str.C:ProjectsClientClientdir.cpp
push edi
call fcn.004020af
add esp, 0x14
xor eax, eax
jmp 0x402296
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x402264
push 0x438e20
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402264
push 0x438e24
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402264
push 0x10000
call fcn.00402e02
mov esi, eax
pop ecx
test esi, esi
je 0x402278
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
push str._s_s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x40224f
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push dword [ebp + 0xc]
push esi
call fcn.0040211b
jmp 0x40225d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push esi
push dword [eax]
call fcn.004035a3
push esi
call fcn.00402e18
pop ecx
lea eax, [ebp - 0x254]
push eax
push ebx
call edi
test eax, eax
jne 0x4021dd
jmp 0x402293
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41
push str.C:ProjectsClientClientdir.cpp
push str._ERROR___s:_d__Memory::Alloc___failed._Last_error:__d
call fcn.004020af
add esp, 0x10
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4026b3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
lea eax, [ebp - 8]
and dword [ebp - 4], 0
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4026eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x29
push str.C:ProjectsClientClientio.cpp
push str._ERROR___s:_d__GetFileSizeEx___failed._Last_error:__d
call fcn.004020af
add esp, 0x10
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
leave
ret
Function at 0x4028d2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x402975
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402969
push dword [ebx + esi*4]
test al, 0x10
je 0x402940
lea ecx, [ebp - 4]
call fcn.004020f5
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
push dword [ebp + 0x14]
call fcn.0040229d
test eax, eax
jne 0x402936
call edi
push eax
call edi
push eax
push 0x59
push str.C:ProjectsClientClientmain.cpp
push str._ERROR___s:_d__Searcher.StartUploading_failed._Last_error:__d__0x_lx_
call fcn.004020af
add esp, 0x14
lea ecx, [ebp - 4]
call fcn.0040210d
jmp 0x402969
push dword [ebx + esi*4]
mov ecx, dword [ebp + 0x14]
call fcn.004035a3
test eax, eax
jne 0x402969
call edi
push eax
call edi
push eax
push 0x63
push str.C:ProjectsClientClientmain.cpp
push str._ERROR___s:_d__WorkersContext__AddTask_failed._Last_error:__d__0x_lx_
call fcn.004020af
add esp, 0x14
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x4028ed
pop edi
pop ebx
pop esi
leave
ret
Function at 0x402e96
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push 0xf
lea ecx, [ebp - 8]
call fcn.00402716
push dword [ebp - 8]
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
jne 0x402edb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x25
push str.C:ProjectsClientClientutils.cpp
push str._ERROR___s:_d__CreateMutexW_failed._Last_error:__d__0x_lx_
call fcn.004020af
add esp, 0x14
jmp 0x402eeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
setne bl
lea ecx, [ebp - 8]
call fcn.0040279a
mov eax, ebx
pop ebx
leave
ret

Function at 0x402f2a
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push ebx
push esi
push 6
push 1
mov esi, ecx
push 2
pop ebx
push ebx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x402f74
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x17
push str.C:ProjectsClientClientwinsock.cpp
push str._ERROR___s:_d__socket___failed._Last_error:__d
call fcn.004020af
add esp, 0x10
jmp 0x402fc8
push dword [ebp + 8]
xorps xmm0, xmm0
mov word [ebp - 0x10], bx
movlpd qword [ebp - 8], xmm0
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x402fc1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x25
push str.C:ProjectsClientClientwinsock.cpp
push str._ERROR___s:_d__connect___failed._Last_error:__d
jmp 0x402f6a
mov dword [esi + 4], 1
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x402fde
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push 0x190
push 0
push eax
call fcn.00402e68
add esp, 0xc
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x4031e2
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
call fcn.004026b3
lea ecx, [ebp - 1]
xor ebx, ebx
push ecx
push edx
push eax
push dword [ebp + 0x14]
mov ecx, edi
mov byte [ebp - 1], bl
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00403016
test eax, eax
jne 0x40322d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x9c
push str.C:ProjectsClientClientwinsock.cpp
push str._ERROR___s:_d__SendFileInfo___failed._Last_error:__d
jmp 0x4032c1
cmp byte [ebp - 1], bl
je 0x40324a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xa4
push str.C:ProjectsClientClientwinsock.cpp
push str._ERROR___s:_d__Result_of_SendFileInfo___is_0x01__server_refused_to_accept_file._Last_error:__d
jmp 0x4032c1
push 0x4000
jmp 0x40329f
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
push 0x4000
push esi
mov dword [ebp + 0x14], ebx
call fcn.004026fc
test eax, eax
je 0x403303
cmp dword [ebp + 0x14], ebx
je 0x4032ea
push ebx
push dword [ebp + 0x14]
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4032d2
mov ecx, dword [ebp + 0x18]
push 0x4000
call fcn.0040198f
push esi
call fcn.00402e18
mov dword [esp], 0x4000
call fcn.00402e02
mov esi, eax
pop ecx
test esi, esi
jne 0x403251
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb0
push str.C:ProjectsClientClientwinsock.cpp
push str._ERROR___s:_d__Memory::Alloc___failed._Last_error:__d
call fcn.004020af
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xc9
push str.C:ProjectsClientClientwinsock.cpp
push str._ERROR___s:_d__send___failed._Last_error:__d
jmp 0x403319
push esi
call fcn.00402e18
pop ecx
push ebx
push ebx
push ebx
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4032c9
inc eax
jmp 0x4032cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xba
push str.C:ProjectsClientClientwinsock.cpp
push str._ERROR___s:_d__Reader.Read___failed._Last_error:__d
call fcn.004020af
push esi
call fcn.00402e18
add esp, 0x14
jmp 0x4032c9
Function at 0x4033ed
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
push esi
push edi
mov edi, ecx
xor esi, esi
xor ecx, ecx
push 4
pop edx
mul edx
mov dword [edi + 4], esi
mov dword [edi + 8], esi
seto cl
mov dword [edi + 0x10], esi
neg ecx
mov dword [edi], ebx
or ecx, eax
push ecx
call fcn.004039a0
push 0x34
mov dword [edi + 4], eax
call fcn.00402df4
pop ecx
pop ecx
test eax, eax
je 0x403435
push ebx
mov ecx, eax
call fcn.00403329
jmp 0x403437
mov eax, esi
mov dword [edi + 0xc], eax
cmp dword [edi + 4], esi
je 0x4034d1
test eax, eax
je 0x4034d1
cmp dword [eax + 0x30], esi
jne 0x40346a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x1b
push str.C:ProjectsClientClientworkers.cpp
push str._ERROR___s:_d__FileQueue__IsInitialized_failed._Last_error:__d__0x_lx_
jmp 0x4034e9
test ebx, ebx
je 0x4034ae
push 0x10
call fcn.00402e02
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 8], ecx
lea ecx, [edi + 8]
mov dword [eax + 0xc], ecx
xor ecx, ecx
push ecx
push ecx
push eax
push 0x40371b
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4034b7
mov ecx, dword [edi + 4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, ebx
jb 0x40346e
mov dword [edi + 0x10], 1
jmp 0x4034f1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x2e
push str.C:ProjectsClientClientworkers.cpp
push str._ERROR___s:_d__CreateThread_failed._Last_error:__d__0x_lx_
jmp 0x4034e9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x13
push str.C:ProjectsClientClientworkers.cpp
push str._ERROR___s:_d__new_failed._Last_error:__d__0x_lx_
call fcn.004020af
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x405f00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00405b20
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405f32
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4381e8]
call dword [ebp - 8]
jmp 0x405f3c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x4229a0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.0040dbf0
lea ecx, [ebp - 4]
call fcn.00422970
movzx eax, al
test eax, eax
jne 0x4229dd
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.004228b0
mov eax, dword [ebp - 0x18]
jmp 0x422b05
lea ecx, [ebp - 4]
call fcn.0040df60
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00422930
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.0040df60
push eax
push 0
push 0
call fcn.004227f0
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x422a43
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.004228b0
mov eax, dword [ebp - 0x20]
jmp 0x422b05
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00419170
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.00405070
lea ecx, [ebp - 8]
call fcn.004050b0
movzx edx, al
test edx, edx
jne 0x422a8c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.00405090
lea ecx, [ebp - 4]
call fcn.004228b0
mov eax, dword [ebp - 0x24]
jmp 0x422b05
lea ecx, [ebp - 8]
call fcn.004050f0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.0040df60
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.004227f0
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x422ae7
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.00405090
lea ecx, [ebp - 4]
call fcn.004228b0
mov eax, dword [ebp - 0x34]
jmp 0x422b05
lea ecx, [ebp - 8]
call fcn.00414a80
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.00405090
lea ecx, [ebp - 4]
call fcn.004228b0
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret

Function at 0x425650
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00424f80
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x425684
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4381e8]
call dword [ebp - 8]
jmp 0x42568a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4256e0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00424fc0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x425714
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4381e8]
call dword [ebp - 8]
jmp 0x42571e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4
Function at 0x425730
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00424fe0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x425768
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x4381e8]
call dword [ebp - 8]
jmp 0x425776
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8
Function at 0x42cf90
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.00420730
lea ecx, [ebp - 0x34]
call fcn.00420730
call fcn.00420960
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041fe90
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42cfe3
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.004207d0
lea ecx, [ebp - 0x4c]
call fcn.004207d0
mov eax, dword [ebp - 8]
jmp 0x42d058
call fcn.00420960
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041fe90
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42d01e
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.004207d0
lea ecx, [ebp - 0x4c]
call fcn.004207d0
mov eax, dword [ebp - 0x10]
jmp 0x42d058
lea ecx, [ebp - 0x34]
call fcn.00420c50
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.00420c50
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
call fcn.004207d0
lea ecx, [ebp - 0x4c]
call fcn.004207d0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x431c30
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00403950
mov eax, dword [0x450350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x451838]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x431e08
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x431d57
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x431d57
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x431d35
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x431cb9
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x431dc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x431e28
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x431e03
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x431e28
jmp 0x431c92
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b60
mov esp, ebp
pop ebp
ret
Function at 0x431e40
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00403950
mov eax, dword [0x450350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x451838]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x43202b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x431f76
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x431f76
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x431f52
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x431ec9
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x431fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x43204b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x432026
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x43204b
jmp 0x431ea2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b60
mov esp, ebp
pop ebp
ret