joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf5b108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00f5b258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xf5b12e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf5b11a
add dl, dl
jne 0xf5b139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf5b18c
xor eax, eax
add dl, dl
jne 0xf5b146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf5b22d
add dl, dl
jne 0xf5b155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf5b160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf5b16b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf5b176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf5b182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf5b125
mov eax, 1
add dl, dl
jne 0xf5b19a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf5b1a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf5b191
sub eax, ebx
mov ebx, 1
jne 0xf5b1d8
mov ecx, 1
add dl, dl
jne 0xf5b1be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf5b1c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf5b1b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf5b125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf5b1ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf5b1fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf5b1e6
cmp eax, 0x7d00
jae 0xf5b21d
cmp eax, 0x500
jb 0xf5b218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf5b125
cmp eax, 0x7f
ja 0xf5b220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf5b125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf5b24e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xf5b125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x5e1d36
Capabilities:
Encode data using xor

Disassembly:
adc edi, dword [0xe61b5eb0]
test byte [edx + 0x31], 0x4b
xor dword [ebx - 0x2dd36aec], eax
push 0xffffffffffffffc7
je 0x5e1db2
mov ch, 0xf4
push es
push ebp
in eax, dx
fidiv word [esi + 0x4962b184]
in al, 0xbb
push 0x31389850
pop edx
adc al, 0xc3
sub byte [eax - 0x68], dl
push eax
xor dword [edx + 0x14], ebx
leave
out dx, al
xchg esi, eax
ror byte [edi + 0x63], 0x59
in eax, 0xc6
pop esi
pop ecx
adc al, 0x46
sub al, 0x1c
xor edx, edx
in al, dx
sub eax, 0x58ba6d17
adc al, 0x46
xor edi, edi
push cs
mov byte [0x5d1ae0a4], al
in al, 0x1b
adc dword [eax + 0x63], edx
loopne 0x5e1d60
ret
adc ecx, dword [ecx - 0x80]
adc al, 0x46
sub al, 2
mov edx, 0x1c68a28e
pop eax
call [ecx + 0x14]
jmp 0x5e1dda
xchg esi, eax
sub al, 0xd2
push 0xffffffffffffffc7
je 0x5e1e12
mov ch, 0xf4
push es
push ebp
in eax, dx
fidiv word [esi + 0x4962b184]
mov dh, 0x84
mov cl, 0x62
dec ecx
in al, 0xbb
push 0x30c49850
pop edx
adc al, 0xc3
sub byte [eax - 0x68], dl
pop esp
xor dword [edx + 0x14], ebx
cdq
movsb byte es:[edi], byte [esi]
loopne 0x5e1de3
pop ebp
in al, 0x1b
adc dword [eax + 0x63], edx
loopne 0x5e1da4
adc esp, dword [0x2c461480]
add bh, byte [edx - 0x48975d72]
or ch, byte [edi]
das
mov edx, 0xe568a28e
invalid
std
pop ecx
adc al, 9
das
ljmp 0xc7e5
pop edx
pop ecx
xchg ebp, eax
fisub word [edx - 0x34]
pop ebp
in al, 0x5e
xchg dword [ecx + 0xb9ae062], esi
pop edi
aad 0xe5
dec edx
xor dword [edx - 0x33], ebx
pop ebp
or al, byte [edx - 0x7e5eb522]
mov word [0xe5e74000], cs
invalid
xchg edi, eax
invalid
inc esi
Function at 0x401141
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40116b
call fcn.0040101b
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call edi
push dword [ebp - 4]
call fcn.004049ad
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x401195
call fcn.0040101b
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x4011ad
call fcn.0040101b
call fcn.0040109f
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ebx, [esi + eax*8 + 4]
lea edi, [esi + 4]
jmp 0x4011d2
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4011d6
add edi, 8
cmp ebx, edi
jne 0x4011c0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.00404934
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, edi
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x40173b
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x41b2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push ecx
push eax
lea eax, [ebp - 0x108]
push str._s_s
push eax
call fcn.00404f38
xor edi, edi
add esp, 0x10
lea eax, [ebp - 0x108]
push edi
cmp dword [ebp + 0x10], edi
je 0x401851
push dword [0x41d30c]
mov dword [ebp - 0x114], eax
push dword [0x41d308]
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x10c], edi
call sub.MPR.dll_WNetAddConnection2A
mov ecx, eax
sub ecx, 5
je 0x4017ca
sub ecx, 0x51
je 0x4017ca
sub ecx, 0x46d
je 0x4017ca
sub ecx, 0x6b
jne 0x401858
cmp dword [0x41d30c], edi
je 0x401858
cmp dword [0x41d308], edi
jne 0x401858
push esi
push str.Invalid_password_n_n
mov esi, 0x4162b8
push esi
call fcn.00404770
add eax, 0x20
push eax
call fcn.004045da
call fcn.00404770
add eax, 0x20
push eax
call fcn.0040457e
push 1
call fcn.004016ca
add esp, 0x14
push str.Connecting_to_remote_service_...
push esi
call fcn.00404770
add eax, 0x20
push eax
call fcn.004045da
call fcn.00404770
add eax, 0x20
push eax
call fcn.0040457e
add esp, 0x10
push edi
push dword [0x41d30c]
lea eax, [ebp - 0x128]
push dword [0x41d308]
push eax
call sub.MPR.dll_WNetAddConnection2A
pop esi
jmp 0x401858
push edi
push eax
call sub.MPR.dll_WNetCancelConnection2A
cmp eax, edi
pop edi
jne 0x401862
xor eax, eax
inc eax
jmp 0x40186b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404925
leave
ret
Function at 0x401877
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x41b2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x416374
call fcn.004013ac
pop ecx
test eax, eax
jne 0x40189c
inc eax
jmp 0x401900
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [0x41d314]
call fcn.004052e9
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [0x41d304]
lea eax, [ebp - 0x308]
push str._sADMIN__s_s
push eax
call fcn.00404f38
add esp, 0x28
push 0
lea eax, [ebp - 0x308]
push eax
push dword [0x41d314]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404925
leave
ret

Function at 0x40190c
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ProcComs
mov esi, eax
push 0x66
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x40194c
xor eax, eax
jmp 0x4019b7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, 0x41d200
push esi
push 0x104
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.ProcComs.bin
push esi
push str._s_s
push esi
call fcn.00404f38
add esp, 0x10
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401948
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019bc
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x41b2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x10c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RemComSVC
mov edi, eax
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x110], eax
cmp eax, esi
jne 0x401a10
xor eax, eax
jmp 0x401a84
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.RemComSvc.exe
push dword [0x41d304]
mov edi, eax
lea eax, [ebp - 0x108]
push str._sADMIN__s
push eax
call fcn.00404f38
add esp, 0x10
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401a0c
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 0x110]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x10c], edi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404925
leave
ret

Function at 0x401c3a
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x41b2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x416454
call fcn.004013f2
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x1108], eax
lea eax, [esi + 0x110c]
push 0x41be00
push eax
call fcn.00404e40
push 0x416374
call fcn.004013ac
add esp, 0xc
test eax, eax
jne 0x401ca8
push 0x41c800
push dword [0x41d314]
push str._s__s
push esi
call fcn.00404f38
add esp, 0x10
jmp 0x401cf0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x308]
push eax
push dword [0x41d314]
call fcn.004052e9
push 0x41c800
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push str._s_s__s
push esi
call fcn.00404f38
add esp, 0x28
push str.realtime
call fcn.004013ac
pop ecx
test eax, eax
je 0x401d0b
mov dword [esi + 0x1104], 0x100
jmp 0x401d41
push str.high
call fcn.004013ac
pop ecx
test eax, eax
je 0x401d26
mov dword [esi + 0x1104], 0x80
jmp 0x401d41
push str.idle
call fcn.004013ac
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
pop ecx
mov dword [esi + 0x1104], eax
push str.nowait
call fcn.004013ac
pop ecx
mov dword [esi + 0x1210], eax
test edi, edi
je 0x401d65
lea eax, [esi + 0x1000]
push edi
push eax
call fcn.00404e40
pop ecx
pop ecx
push esi
push dword [0x41d304]
mov esi, 0x41cd00
push str._s_:__s
push esi
call fcn.00404f38
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.00404925
leave
ret
Function at 0x402005
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push 0x401d97
call fcn.00405481
push esi
push esi
push 0x401eb7
call fcn.00405481
push esi
push esi
push 0x401f5d
call fcn.00405481
add esp, 0x24
pop esi
ret

Function at 0x40225c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.00405530
mov eax, dword [0x41b2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1214
xor ebx, ebx
push esi
lea eax, [ebp - 0x1218]
push ebx
push eax
mov dword [ebp - 0x1224], ebx
call fcn.00405340
push 8
lea eax, [ebp - 0x1220]
push ebx
push eax
call fcn.00405340
lea eax, [ebp - 0x1218]
push eax
call fcn.00401c3a
add esp, 0x1c
push ebx
lea eax, [ebp - 0x1224]
push eax
push esi
lea eax, [ebp - 0x1218]
push eax
push dword [0x41b00c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3e8
push 5
call fcn.00402031
pop ecx
pop ecx
test eax, eax
je 0x402355
push str.Ok_n_n
mov esi, 0x4162b8
push esi
call fcn.00404770
push 0x40
pop edi
add eax, edi
push eax
call fcn.004045da
call fcn.00404770
add eax, edi
push eax
call fcn.0040457e
add esp, 0x10
push str.Remote_program_Stderr_start:_n
push esi
call fcn.00404770
add eax, edi
push eax
call fcn.004045da
call fcn.00404770
add eax, edi
push eax
call fcn.0040457e
add esp, 0x10
push ebx
lea eax, [ebp - 0x1224]
push eax
push 8
lea eax, [ebp - 0x1220]
push eax
push dword [0x41b00c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push str.Remote_program_Stderr_end._n
push esi
call fcn.00404770
jmp 0x402367
push str.Failed_n_n
push 0x4162b8
call fcn.00404770
push 0x40
pop edi
add eax, edi
push eax
call fcn.004045da
call fcn.00404770
add eax, edi
push eax
call fcn.0040457e
add esp, 0x10
cmp dword [ebp - 0x1220], ebx
jne 0x402394
push dword [ebp - 0x121c]
push str._nRemote_command_returned__d_0x_X__n
jmp 0x40239f
push dword [ebp - 0x1220]
push str._nRemote_command_failed_to_start._Returned_error_code_is__d_0x_X__n
call fcn.00404770
add eax, edi
push eax
call fcn.004045da
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1220]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404925
leave
ret
Function at 0x403195
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push 0xc
xor esi, esi
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00405340
push 0x44
lea eax, [ebp - 0x60]
push esi
push eax
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
call fcn.00405340
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x60], 0x44
call fcn.00405340
mov eax, dword [0x41b014]
add esp, 0x24
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b010]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403212
call fcn.0040101b
xor eax, eax
jmp 0x403230
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x404925
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b2a0]
jne 0x40492f
repz ret
jmp fcn.004091e4

Function at 0x410af9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406517
and dword [ebp - 0x14], 0
cmp dword [0x41df7c], 0
mov dword [ebp - 0x18], eax
jne 0x410bac
push 0x418c48
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410c54
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x418c3c
push ebx
call edi
test eax, eax
je 0x410c54
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x418c2c
push ebx
mov dword [0x41df7c], eax
call edi
push eax
call esi
push 0x418c18
push ebx
mov dword [0x41df80], eax
call edi
push eax
call esi
push 0x418bfc
push ebx
mov dword [0x41df84], eax
call edi
push eax
call esi
mov dword [0x41df8c], eax
test eax, eax
je 0x410bac
push 0x418be4
push ebx
call edi
push eax
call esi
mov dword [0x41df88], eax
mov eax, dword [0x41df88]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410c05
cmp dword [0x41df8c], ecx
je 0x410c05
push eax
call esi
push dword [0x41df8c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410c05
test ebx, ebx
je 0x410c05
call edi
test eax, eax
je 0x410bfc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410bfc
test byte [ebp - 8], 1
jne 0x410c05
or dword [ebp + 0x10], 0x200000
jmp 0x410c38
mov eax, dword [0x41df80]
cmp eax, dword [ebp - 0x18]
je 0x410c38
push eax
call esi
test eax, eax
je 0x410c38
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410c38
mov eax, dword [0x41df84]
cmp eax, dword [ebp - 0x18]
je 0x410c38
push eax
call esi
test eax, eax
je 0x410c38
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41df7c]
call esi
test eax, eax
je 0x410c54
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410c56
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404925
leave
ret
Function at 0x634620
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x409b46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x406870
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor edi, edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
call esi
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push 1
push eax
push ecx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaInStr]
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
cmp ax, di
je 0x6346ae
sub ax, 1
jo 0x6346ee
movsx edx, ax
mov eax, dword [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharBstr]
mov edx, eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push 0x6346d8
jmp 0x6346c7
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call esi
push 0x6346d8
jmp 0x6346c7
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x20]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x405a38
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405a89
xor eax, eax
jmp 0x405ab0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405ab0
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405a85
call esi
pop esi
leave
ret 4

Function at 0x405aea
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426710], 0x44
push eax
xor eax, eax
push 0x426710
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405b29
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405bcb
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405fd2
mov edi, eax
cmp edi, 0xffffffff
je 0x405c0c
test byte [esp + 0x10], 1
push esi
je 0x405bee
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405bf4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405bfd
xor eax, eax
inc eax
jmp 0x405c0e
test byte [esp + 0x10], 4
jne 0x405c0c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x5efe9a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5efeb5
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124b50da]
pop edx
test eax, eax
je 0x5eff87
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5eff76
test dword [ebp - 0x2a8], 1
jne 0x5eff76
and dword [ebp - 0x2a8], 0x100
jne 0x5eff76
push esi
push edx
push 4
push esi
call dword [edx + 0x122d38f2]
pop edx
pop esi
test eax, eax
je 0x5eff19
jmp 0x5eff76
cmp word [esi], 0x5a4d
jne 0x5eff76
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5eff76
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d3a1e]
pop edx
test eax, eax
je 0x5eff76
lea eax, [ebp - 0x28c]
push eax
call fcn.005efdf6
test eax, eax
jne 0x5eff6f
jmp 0x5eff76
mov eax, esi
jmp 0x5eff87
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5efeb5
pop esi
leave
ret 4
Function at 0x401120
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ba71
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1004610]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov dword [eax], vtable.CAmkProgDlg.0
mov dword [ebp - 4], 2
mov ecx, dword [0x1006610]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [0x1006610]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
add ecx, 0xe4
call fcn.00541fe5
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xd0
call fcn.00402640
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x7c
call fcn.00541e69
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
call fcn.00541417
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret