joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5db5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5db7a4
sub esp, 0x40
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
call fcn.004b9170
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5db5e1
xor eax, eax
jmp 0x5db630
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], eax
call fcn.004b9ea0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x40
ret
mov ecx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 8], ebx
call fcn.004b9170
mov eax, dword [esp + 0x30]
cmp dword [esp + 0xc], eax
jle 0x5db790
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], 0xa
call fcn.004acce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x50]
mov dword [esp], edx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x58]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], esi
call fcn.004b89e0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call fcn.004b8b90
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov dword [esp], 0
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
lea ebp, [0x68afe4]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x34]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x18], esi
lea esi, [0x68afe8]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 1
call fcn.0044ad70
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x44]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x1c], ebx
call fcn.005d7020
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test eax, eax
je 0x5db629
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x40
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x40
ret
call fcn.0045d540
jmp fcn.005db5a0
Function at 0x68c01950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
movzx esi, word [eax + 0x264]
mov edi, dword [eax + 0x468]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x258]
test eax, eax
jne 0x68c01a07
test byte [ebx + 0x1a], 1
jne 0x68c01a30
lea eax, [ebx + 0x454]
mov edx, dword [ebx + 0x450]
mov dword [ebx + 0x258], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x454], 0
mov dword [ebx + 0x458], 0
mov dword [ebx + 0x45c], 0
mov dword [ebx + 0x460], 0
mov dword [ebx + 0x464], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x68c01a10
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x68c01a10
mov eax, ebx
call fcn.68c015d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x68c0d010]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.68c016e0
jmp 0x68c01986
Function at 0x401539
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4036a0
call fcn.00401c30
push 1
call fcn.004016db
pop ecx
test al, al
je 0x401523
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004016a9
mov byte [ebp - 0x24], al
mov eax, dword [0x404334]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x401523
test eax, eax
jne 0x401447
mov dword [0x404334], ecx
push 0x403100
push 0x4030f4
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40142a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401513
push 0x4030f0
push 0x4030e8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x404334], 2
jmp 0x40144c
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040182f
pop ecx
call fcn.004019c3
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40147d
push esi
call fcn.0040179b
pop ecx
test al, al
je 0x40147d
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x4030e0]
call esi
call fcn.004019c9
mov esi, eax
cmp dword [esi], edi
je 0x40149b
push esi
call fcn.0040179b
pop ecx
test al, al
je 0x40149b
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00401aea
movzx esi, ax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push esi
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00401b20
test al, al
je 0x40152a
test bl, bl
jne 0x4014c9
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040184c
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x401513
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.004019cf
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.00401903
jmp 0x4013bd

Function at 0x401b20
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b5f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b5f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b5f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b5f
cmp dword [ecx + 0x74], 0xe
jbe 0x401b5f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4811e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x75000]
push edi
jmp 0x4811fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x481201
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4811f0
mov eax, 1
add ebx, ebx
jne 0x481213
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x481224
jne 0x481243
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x481243
dec eax
add ebx, ebx
jne 0x481230
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x481208
add ebx, ebx
jne 0x48123f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x481295
xor ecx, ecx
sub eax, 3
jb 0x48125b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4812ca
sar eax, 1
mov ebp, eax
jmp 0x481266
add ebx, ebx
jne 0x481266
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x481234
inc ecx
add ebx, ebx
jne 0x481274
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x481234
add ebx, ebx
jne 0x481281
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x481276
jne 0x481292
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x481276
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4812b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4812a6
jmp 0x4811f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4812b4
add edi, ecx
jmp 0x4811f6
pop esi
mov edi, esi
mov ecx, 0x8e0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4812d2
cmp byte [edi], 9
jne 0x4812d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4812d7
lea edi, [esi + 0x7f000]
mov eax, dword [edi]
or eax, eax
je 0x48134f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe63f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe64a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x481304
mov ecx, edi
jns 0x481333
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe64a8]
or eax, eax
je 0x481349
mov dword [ebx], eax
add ebx, 4
jmp 0x481321
call dword [esi + 0xe64b8]
mov ebp, dword [esi + 0xe64ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x481383
sub esp, 0xffffff80
jmp 0x4123df
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x48c720], 1
mov dword [0x48c724], 1
mov dword [0x48c728], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret
Function at 0x44bdd0
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
push eax
mov eax, 0x10060
call fcn.00465230
xor ecx, ecx
sub esp, eax
mov eax, dword [esp + eax]
lea ebx, [esp + 0x10]
lea esi, [esp + 0x60]
mov word [esp + 0x10], cx
mov ecx, 0x28
mov edx, eax
xor eax, eax
mov word [esp + 0x60], ax
mov eax, ebx
call fcn.0044a490
mov dword [esp + 8], 0x10000
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
sub esp, 0xc
cmp eax, 0xffff
ja 0x44be39
mov dword [esp], esi
call sub.msvcrt.dll__wcsdup
add esp, 0x10064
pop ebx
pop esi
ret
xor eax, eax
jmp 0x44be30

Function at 0x44be40
Capabilities:
Set environment variable

Disassembly:
push esi
mov ecx, 0x28
push ebx
mov ebx, edx
xor edx, edx
sub esp, 0x64
lea esi, [esp + 0x10]
mov word [esp + 0x10], dx
mov edx, eax
mov eax, esi
call fcn.0044a490
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
add esp, 0x64
pop ebx
pop esi
ret

Function at 0x44be80
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, edx
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x7c
mov dword [esp + 0x1c], eax
mov eax, dword [0x48b044]
test eax, eax
je 0x44bf6c
mov dword [esp + 4], str.environ
mov dword [esp], eax
call dword [sym.imp.python38.dll_PyObject_GetAttrString]
mov dword [esp], ebp
mov ebx, eax
call dword [sym.imp.python38.dll_PyUnicode_FromString]
mov esi, eax
test edi, edi
je 0x44bf26
mov edx, edi
mov eax, ebp
call fcn.0044be40
mov dword [esp], edi
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov edi, eax
mov dword [esp], ebx
call dword [sym.imp.python38.dll_PyObject_SetItem]
test eax, eax
jne 0x44bf8b
sub dword [edi], 1
jne 0x44beff
mov eax, edi
call fcn.0042fb90
sub dword [esi], 1
jne 0x44bf0b
mov eax, esi
call fcn.0042fb90
sub dword [ebx], 1
jne 0x44bf1e
add esp, 0x7c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0042fb90
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x20]
mov edx, ebp
mov ecx, 0x28
mov word [esp + 0x20], 0
mov eax, edi
call fcn.0044a490
xor eax, eax
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edx
push edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.python38.dll_PyObject_DelItem]
test eax, eax
je 0x44beff
mov eax, dword [esp + 0x1c]
call fcn.00401a40
jmp 0x44beff
mov dword [esp], 0x47c518
call dword [sym.imp.python38.dll_PyImport_ImportModule]
mov dword [0x48b044], eax
test eax, eax
jne 0x44be9c
jmp 0x47489e
mov dword [esp], 1
call dword [sym.imp.python38.dll_PyErr_PrintEx]
mov dword [esp], 1
call dword [sym.imp.python38.dll_Py_Exit]
lea esi, [esi]
lea esi, [esi]
Function at 0x464280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00473bf0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00473bf0
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x464e54
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x464e73
mov eax, 0
jmp 0x464eb7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x464e96
mov eax, 0
jmp 0x464eb7
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x464eb2
mov eax, 0
jmp 0x464eb7
mov eax, 1
leave
ret

Function at 0x464eb9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x464f18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x464f10
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x464f10
mov eax, dword [ebp - 4]
jmp 0x464f2c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x464eed
mov eax, 0
leave
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x2f165f72
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x73387da5
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402040
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, str.Unknown_error
je 0x402050
mov eax, esi
push 0
push str.SQLAnywhere_Fatal_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x40206d
push esi
call fcn.00406106
add esp, 4
push 1
call fcn.00406750
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x404190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xd0
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
mov ebx, 0x415098
jmp 0x4041b0
mov ecx, 0xa
mov esi, str.SoftwareSybaseAdaptive_Server_Anywhere
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4041c6
mov ax, word [0x411db0]
mov word [edi], ax
mov eax, dword [esp + 0xe4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4041e0
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4041f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push eax
call ebp
test eax, eax
jne 0x40426a
mov edx, dword [esp + 0xec]
lea ecx, [esp + 0xf0]
push ecx
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40426a
mov ecx, dword [esp + 0xf4]
cmp dword [esp + 0x14], ecx
je 0x404286
add ebx, 4
cmp ebx, 0x4150a0
jl 0x4041b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd0
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd0
ret

Function at 0x40667d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0040828f
xor esi, esi
inc esi
cmp dword [0x416874], esi
pop ecx
jne 0x4066a5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x416870], esi
mov byte [0x41686c], al
jne 0x40670b
mov ecx, dword [0x41704c]
test ecx, ecx
je 0x4066ec
mov eax, dword [0x417048]
sub eax, 4
cmp eax, ecx
jmp 0x4066e5
mov eax, dword [eax]
test eax, eax
je 0x4066d7
call eax
mov eax, dword [0x417048]
sub eax, 4
cmp eax, dword [0x41704c]
mov dword [0x417048], eax
jae 0x4066cf
mov eax, 0x414028
mov esi, 0x414030
cmp eax, esi
mov edi, eax
jae 0x40670b
mov eax, dword [edi]
test eax, eax
je 0x406704
call eax
add edi, 4
cmp edi, esi
jb 0x4066fc
mov eax, 0x414034
mov esi, 0x414038
cmp eax, esi
mov edi, eax
jae 0x40672a
mov eax, dword [edi]
test eax, eax
je 0x406723
call eax
add edi, 4
cmp edi, esi
jb 0x40671b
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x40673b
push 8
call fcn.004081fb
jmp 0x40674d
push dword [ebp + 8]
mov dword [0x416874], 1
call fcn.004065d6
pop ecx
pop ebp
ret
Function at 0x407045
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407065
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00406c77
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x407088
test byte [esp + 8], 2
je 0x407088
call fcn.00406c65
mov dword [eax], 0xd
call fcn.00406c6e
mov dword [eax], 5
jmp 0x407061
xor eax, eax
ret
Function at 0x407999
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x407b5f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x416f20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x407b5f
test cl, 0x48
je 0x4079ff
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4079ff
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407a51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x407a39
call fcn.00406c65
mov dword [eax], 9
call fcn.00406c6e
mov dword [eax], esi
jmp 0x407a49
cmp eax, 0x6d
je 0x407b5f
push eax
call fcn.00406c77
pop ecx
or eax, 0xffffffff
jmp 0x407b61
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x407b5a
test edx, edx
je 0x407a74
cmp byte [ebx], 0xa
jne 0x407a74
or al, 4
jmp 0x407a76
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x407b54
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x407b44
cmp al, 0xd
je 0x407aaa
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x407b36
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x407ac4
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x407abf
add dword [ebp + 0x10], 2
jmp 0x407b18
mov dword [ebp + 0x10], eax
jmp 0x407b32
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407aec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407b32
cmp dword [ebp - 0xc], 0
je 0x407b32
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x407b0d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x407b18
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x407b35
cmp ebx, dword [ebp + 0xc]
jne 0x407b1d
cmp byte [ebp - 1], 0xa
jne 0x407b1d
mov byte [ebx], 0xa
jmp 0x407b35
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040bcda
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x407b36
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x407a8e
jmp 0x407b54
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x407b54
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x407b61
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret