joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4360f1
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], edx
push 0
push eax
mov esi, ecx
call fcn.0045e110
add esp, 0xc
or edi, 0xffffffff
test esi, esi
je 0x43624e
push esi
call fcn.0043d5e8
pop ecx
test eax, eax
je 0x43624e
push ecx
push 0x47de58
mov ecx, esi
call fcn.00435f55
mov ebx, eax
mov dword [ebp - 0x268], ebx
pop ecx
pop ecx
test ebx, ebx
jne 0x436167
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x436242
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43623b
mov ebx, esi
test byte [ebp - 0x25c], 0x10
je 0x4361b9
lea eax, [ebp - 0x230]
push 0x47de5c
push eax
call fcn.0043d3c5
pop ecx
pop ecx
test eax, eax
je 0x43621f
lea eax, [ebp - 0x230]
push 0x47c8e4
push eax
call fcn.0043d3c5
pop ecx
pop ecx
test eax, eax
je 0x43621f
push ecx
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00435f55
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43621f
test byte [ebp - 0x25c], 0x10
je 0x4361fc
mov ecx, esi
call fcn.004277a4
test eax, eax
jne 0x4361f3
mov edx, dword [ebp - 0x260]
mov ecx, esi
push eax
call fcn.004360f1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x436218
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
push 0
push eax
push esi
call dword [0x46b4a4]
call dword [ebp - 0x260]
mov ecx, esi
call fcn.00426e04
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x436182
mov ebx, dword [ebp - 0x268]
mov ecx, ebx
call fcn.00426e04
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x436258
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a206
leave
ret

Function at 0x43633c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x202
xor esi, esi
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0045e110
add esp, 0xc
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x210], 0x100
call fcn.004362a0
test eax, eax
je 0x4363e1
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4363e1
lea eax, [ebp - 0x20c]
push eax
push 1
lea eax, [ebp - 0x208]
push eax
push esi
mov esi, dword [0x491660]
mov ecx, esi
call dword [0x46b4a4]
call esi
test eax, eax
jne 0x4363e1
mov ecx, dword [ebp - 0x20c]
mov esi, dword [0x491658]
push ebx
push ecx
cmp dword [ecx + 0xc], 2
mov ecx, esi
sete bl
call dword [0x46b4a4]
call esi
mov al, bl
pop ebx
jmp 0x4363e3
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045a206
leave
ret
Function at 0x436825
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x10c
mov eax, 0x467483
call fcn.00464982
mov esi, edx
push ecx
lea ecx, [ebp - 0x118]
call fcn.00420106
and dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
push 0x4799c8
call fcn.0042046b
mov ecx, esi
call fcn.00420326
lea ecx, [ebp - 0x118]
test al, al
je 0x436873
push str.Zoom.lnk
call fcn.0042046b
jmp 0x436879
push esi
call fcn.0042044e
lea ecx, [ebp - 0x118]
call fcn.00420210
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x118]
setne bl
call fcn.00420173
mov al, bl
call fcn.0046493d
ret

Function at 0x436b5f
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x436c1f
push esi
call fcn.0043d5e8
pop ecx
test eax, eax
je 0x436c1f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x436c1f
push 0x410
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0045e110
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push eax
push 0
push 0x47a6ec
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x436c0d
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x436c1f
lea esi, [ebp - 0x414]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x436c21
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045a206
leave
ret
Function at 0x436c2e
Capabilities:
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x436d94
test esi, esi
je 0x436d94
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x436c6d
mov al, 1
jmp 0x436d96
mov ebx, 0x412
lea eax, [ebp - 0x420]
push ebx
push 0
push eax
call fcn.0045e110
add esp, 0xc
lea eax, [ebp - 0x838]
push ebx
push 0
push eax
call fcn.0045e110
add esp, 0xc
lea eax, [ebp - 0x420]
push edi
push 0x208
push eax
call fcn.0043d93a
add esp, 0xc
push edi
call fcn.0043d5e8
add eax, eax
pop ecx
cmp eax, ebx
jae 0x436da5
xor ecx, ecx
mov word [ebp + eax - 0x420], cx
add eax, 2
cmp eax, ebx
jae 0x436da5
push esi
mov word [ebp + eax - 0x420], cx
lea eax, [ebp - 0x838]
push 0x208
push eax
call fcn.0043d93a
add esp, 0xc
push esi
call fcn.0043d5e8
add eax, eax
pop ecx
cmp eax, ebx
jae 0x436da5
xor ecx, ecx
mov word [ebp + eax - 0x838], cx
add eax, 2
cmp eax, ebx
jae 0x436da5
and dword [ebp - 0x858], ecx
xorps xmm0, xmm0
and dword [ebp - 0x83e], ecx
mov word [ebp + eax - 0x838], cx
lea eax, [ebp - 0x420]
mov dword [ebp - 0x850], eax
lea eax, [ebp - 0x838]
mov dword [ebp - 0x84c], eax
lea eax, [ebx + 2]
mov word [ebp - 0x848], ax
lea eax, [ebp - 0x858]
push eax
movlpd qword [ebp - 0x846], xmm0
mov dword [ebp - 0x854], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x846], 0
jne 0x436d94
test eax, eax
jne 0x436d94
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x436d94
push ecx
push ecx
mov ecx, edi
call fcn.00436267
pop ecx
pop ecx
jmp 0x436c66
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a206
leave
ret
call fcn.0045a338
int3
Function at 0x436dab
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
test ecx, ecx
je 0x436e7f
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x436e7f
xor eax, eax
mov dword [ebp - 8], edi
push edi
mov word [ebp - 4], ax
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436e78
cmp dword [ebp - 8], 2
jne 0x436e78
mov eax, 0x5a4d
cmp word [ebp - 4], ax
jne 0x436e78
push edi
push edi
push 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436e78
cmp dword [ebp - 8], 2
jne 0x436e78
movzx eax, word [ebp - 4]
push edi
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436e78
cmp dword [ebp - 8], 4
jne 0x436e78
cmp dword [ebp - 0xc], 0x4550
jne 0x436e78
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x436e81
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x43c868
Capabilities:
Terminate process

Disassembly:
push 0x234
mov eax, 0x46a4dd
call fcn.00464982
mov edi, ecx
push ecx
push edi
lea ecx, [ebp - 0x240]
call fcn.00420cec
xor ebx, ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], ebx
call fcn.00420c52
mov esi, eax
jmp 0x43c8e3
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], ebx
push eax
push 0x64
push 0xa
push ebx
push ebx
push 0x11
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push ebx
push ebx
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [ebp - 0x23c]
test esi, esi
je 0x43c8e7
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x234]
jae 0x43c8e7
mov esi, dword [esi + eax*4]
inc eax
mov dword [ebp - 0x230], eax
test esi, esi
jne 0x43c89a
push edi
push 0
xor ebx, ebx
push 0x100001
inc ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x43c98d
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43c984
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, eax
test ebx, ebx
jne 0x43c984
push 0xffffffffffffffff
push 0x47a6ec
lea ecx, [ebp - 0x11c]
call fcn.004200d5
push 0xffffffffffffffff
push str._TerminateProcess_Failed_
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004200d5
mov esi, eax
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 2
pop edx
mov ecx, 0x32c8
call fcn.00435790
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.00420173
lea ecx, [ebp - 0x11c]
call fcn.00420173
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43c9f0
push 0xffffffffffffffff
push 0x47a6ec
lea ecx, [ebp - 0x11c]
call fcn.004200d5
push 0xffffffffffffffff
push str._OpenProcess_Failed_
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.004200d5
mov esi, eax
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 2
pop edx
mov ecx, 0x32c8
call fcn.00435790
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.00420173
lea ecx, [ebp - 0x11c]
call fcn.00420173
lea ecx, [ebp - 0x240]
call fcn.00420d0f
mov eax, ebx
call fcn.0046493d
ret
Function at 0x43ca03
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a517
mov eax, dword fs:[0]
push eax
mov eax, 0x142c
call fcn.0045b050
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00420331
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x1428]
push eax
push 0x1000
lea eax, [ebp - 0x1420]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x43caad
push 0x174
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsNoMSIInstallerZoomProductUtil.cpp
push 1
lea ecx, [ebp - 0x1424]
call fcn.0040c45a
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str._FindRunningInstance__failed_to_enum_processes__error_code:
mov ecx, 0x490290
call fcn.0040635c
pop ecx
mov ecx, eax
call fcn.0040719b
lea ecx, [ebp - 0x1424]
call fcn.0040c5f9
xor eax, eax
jmp 0x43cc06
mov eax, dword [ebp - 0x1428]
xor ecx, ecx
shr eax, 2
mov dword [ebp - 0x1434], eax
mov dword [ebp - 0x1424], ecx
test eax, eax
je 0x43cbf9
push dword [ebp + ecx*4 - 0x1420]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1430], eax
test eax, eax
je 0x43cbab
push 5
pop ecx
push 0x1f4
lea eax, [ebp - 0x204]
mov esi, str._unknown_
lea edi, [ebp - 0x218]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0045e110
add esp, 0xc
lea eax, [ebp - 0x40c]
mov esi, str._unknown_
lea edi, [ebp - 0x420]
push 5
pop ecx
push 0x1f4
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0045e110
mov esi, dword [ebp - 0x1430]
lea eax, [ebp - 0x1428]
add esp, 0xc
push eax
push 4
lea eax, [ebp - 0x142c]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x43cb8a
mov edi, 0x104
lea eax, [ebp - 0x218]
push edi
push eax
push dword [ebp - 0x142c]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
push edi
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x142c]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
lea eax, [ebp - 0x218]
push eax
push str.Zoom.exe
call fcn.0044b91f
add esp, 0xc
test eax, eax
je 0x43cbc6
mov ecx, dword [ebp - 0x1424]
inc ecx
mov dword [ebp - 0x1424], ecx
cmp ecx, dword [ebp - 0x1434]
jb 0x43cacc
jmp 0x43cbf9
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00420381
push 0x5c
mov ecx, ebx
call fcn.00420690
cmp eax, 0xffffffff
jne 0x43cbf0
push 0x2f
mov ecx, ebx
call fcn.00420690
cmp eax, 0xffffffff
je 0x43cbf9
push ecx
push eax
mov ecx, ebx
call fcn.004204ee
mov ecx, ebx
call fcn.00420326
movzx eax, al
xor eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a206
leave
ret
Function at 0x43cdfa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x465205
call fcn.00464982
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 0xc]
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
push eax
call fcn.0040ada7
and dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x43ce2b
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040b5aa
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
cmp ecx, 8
jb 0x43ce6b
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x28]
call fcn.00403711
pop ecx
pop ecx
mov eax, ebx
call fcn.0046493d
ret 8

Function at 0x43d290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push dword [ebp + 8]
push 0x43d250
push eax
push eax
call fcn.0044babc
add esp, 0x18
mov dword [esi], eax
pop esi
pop ebp
ret 4

Function at 0x44f181
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044ee32

Function at 0x45cac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x45cae5
xor eax, eax
jmp 0x45cb41
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x45cb12
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x45cb12
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x45cbc6
cmp dword [edi + 0x4c], 0
je 0x45cb3b
mov ecx, edi
call fcn.0045c704
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x45cb51
push dword [edi + 0x4c]
push ebx
call fcn.0045c16f
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x45cb40
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0045a206
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x46b4a4]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x45cb3b
cmp eax, 1
jle 0x45cb99
cmp eax, 3
jne 0x45cb3b
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x45cb2d
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x45cbb6
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00441c37
add esp, 0x10
cmp esi, eax
jne 0x45cb3b
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x45cb3b
mov ax, bx
jmp 0x45cb40
Function at 0xfd68a0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xfd68aa
pushal
call 0xfd68b0
pop ebp
sub ebp, 0x10
sub ebp, 0xbd68a0
jmp 0xfd68c6
mov eax, 0xbd68a0
add eax, ebp
add eax, 0x4c
mov ecx, 0x578
mov edx, 0xa60fd627
xor byte [eax], dl
inc eax
dec ecx
jne 0xfd68dd
jmp 0xfd68f0
lodsb al, byte [esi]
ljmp 0x2727
Function at 0x401930
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40193a
repz ret
jmp fcn.00401c61
Function at 0x401000
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp ecx, 0xff
ja 0x4010bf
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov dword [ebp - 4], edx
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401020
sub eax, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ecx + 0x4241a0]
mov dword [esi + 0x34], edx
mov edx, dword [ecx + 0x4241a4]
mov dword [esi + 0x38], edx
mov edx, dword [ecx + 0x4241a8]
mov dword [esi + 0x3c], edx
mov ecx, dword [ecx + 0x4241ac]
mov edx, dword [ebp + 8]
mov dword [esi + 0x40], ecx
push edx
mov ecx, esi
call fcn.00401150
mov ecx, esi
call fcn.00401280
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x94]
mov dword [edi], eax
mov eax, dword [esi + 0x98]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov byte [esi + 0x9c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x407570
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
lea eax, [ebp - 0x5c]
lea esi, [edi + 6]
push eax
mov ecx, esi
call fcn.00402d00
test al, al
je 0x407650
movzx ecx, word [edi + 4]
mov edx, dword [esi]
mov eax, dword [esi + 4]
push esi
mov word [ebp - 0x14], cx
movzx ecx, word [esi + 8]
push 0x42dfa4
push 0x42e00c
mov dword [ebp - 0x12], edx
mov dl, byte [esi + 0xa]
mov word [ebp - 0xa], cx
push 0x42dfd8
push str.SELECT__s_FROM__s_WHERE__s_s
mov ecx, 0x42e1c8
mov word [ebp - 0x18], 0x14c1
mov byte [ebp - 0x16], 5
mov dword [ebp - 0xe], eax
mov byte [ebp - 8], dl
call fcn.004084a0
add esp, 0x14
test al, al
je 0x40761d
mov eax, dword [0x42e1d4]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40761d
mov ebx, 0x42dfd8
call fcn.00408660
mov ecx, dword [0x42e1d4]
push ecx
mov word [ebp - 6], ax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x42e1d4]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40763e
mov eax, dword [0x42e1d4]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x42e1d4]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor edx, edx
mov word [ebp - 6], dx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push ecx
mov ebx, 0x14
call fcn.00409bc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407910
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4295f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42ae74]
push ebx
push esi
push edi
test eax, eax
js 0x407a18
cmp eax, 2
jge 0x407a18
mov esi, eax
imul esi, esi, 0x214
push ecx
add esi, 0x42aa4c
inc eax
lea edi, [esi + 4]
push 0x100
mov dword [0x42ae74], eax
push edi
mov dword [esi], 1
call fcn.0040c463
add esp, 0xc
cmp dword [esi], 0
je 0x407a18
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push edi
lea ebx, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push ebx
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x4079f3
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c454
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407a18
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c454
mov esp, ebp
pop ebp
ret
Function at 0x407a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x4295f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x407c27
cmp eax, dword [ecx + 0x42c]
jge 0x407c27
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x407c27
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x407ab6
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x407ab6
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x407b73
mov ecx, dword [esi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x812]
movzx ecx, word [ebp - 0x816]
movzx edx, word [ebp - 0x818]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x407b3d
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c454
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407b73
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c454
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call fcn.0040e170
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.0040ceb7
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call fcn.0040e170
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
lea eax, [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x810]
push ecx
push edx
push eax
lea ecx, [ebp - 0x408]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x408]
add esp, 0x40
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c00
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x81c]
push edx
push eax
lea eax, [ebp - 0x408]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c454
mov esp, ebp
pop ebp
ret