joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5bc060
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xba000]
push edi
or ebp, 0xffffffff
jmp 0x5bc082
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5bc089
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bc078
mov eax, 1
add ebx, ebx
jne 0x5bc09b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5bc0ac
jne 0x5bc0bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bc0bc
dec eax
add ebx, ebx
jne 0x5bc0b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5bc090
xor ecx, ecx
sub eax, 3
jb 0x5bc0d4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5bc146
sar eax, 1
mov ebp, eax
jmp 0x5bc0df
add ebx, ebx
jne 0x5bc0df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5bc0ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5bc110
inc ecx
add ebx, ebx
jne 0x5bc0fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5bc0f1
jne 0x5bc10d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5bc0f1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5bc130
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5bc121
jmp 0x5bc07e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5bc130
add edi, ecx
jmp 0x5bc07e
pop esi
mov edi, esi
mov ecx, 0xbc2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5bc14e
cmp byte [edi], 9
jne 0x5bc14e
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 eax, ebx
loop 0x5bc153
lea edi, [esi + 0x1ba000]
mov eax, dword [edi]
or eax, eax
je 0x5bc1cb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ce3cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ce444]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5bc180
mov ecx, edi
jns 0x5bc1af
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 + 0x1ce448]
or eax, eax
je 0x5bc1c5
mov dword [ebx], eax
add ebx, 4
jmp 0x5bc19d
call dword [esi + 0x1ce44c]
popal
jmp 0x414b4d
Function at 0x6830a570
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6831ab80
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6831ab80
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6830a5d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6842e054]
test esi, esi
jle 0x6830a6f0
mov eax, dword [0x6842e058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6830a604
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6830a687
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6830a5f0
mov dword [esp], ebx
call fcn.6830ad30
mov edi, eax
test eax, eax
je 0x6830a717
mov eax, dword [0x6842e058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6830ae70
mov edx, dword [0x6842e058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6830a6f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6830a680
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6830a690
add dword [0x6842e054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6842e058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6830a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6830a570
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6830a60e
mov eax, dword [0x6842e058]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6830a570
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6830a570
lea esi, [esi]
nop
Function at 0x6830a9b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6842e064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6842e05c]
sub esp, 4
test ebx, ebx
je 0x6830aa05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6830a9fe
test esi, esi
je 0x6830a9fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6830a9e0
mov dword [esp], 0x6842e064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6830ad30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x68300000], 0x5a4d
jne 0x6830ad55
mov ecx, dword [0x6830003c]
cmp dword [ecx + 0x68300000], 0x4550
lea edx, [ecx + 0x68300000]
je 0x6830ad60
ret
cmp word [ecx + 0x68300018], 0x10b
jne 0x6830ad55
push esi
movzx eax, word [ecx + 0x68300014]
push ebx
movzx esi, word [ecx + 0x68300006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x68300000
test esi, esi
je 0x6830ada8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6830ad9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6830adaa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6830ad90
xor eax, eax
pop ebx
pop esi
ret

Function at 0x6830b320
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x6842e060]
test eax, eax
jne 0x6830aa30
ret
push ebx
sub esp, 0x18
mov dword [esp + 4], 0xc
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov ebx, eax
test eax, eax
je 0x6830aa90
mov eax, dword [esp + 0x20]
mov dword [esp], 0x6842e064
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6842e05c]
mov dword [0x6842e05c], ebx
sub esp, 4
mov dword [ebx + 8], eax
mov dword [esp], 0x6842e064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
or eax, 0xffffffff
jmp 0x6830aa8b
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x6830b350
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp 0x6831ad80
add esp, 4
pop ebx
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 8]
test eax, eax
jne 0x6831ad90
xor eax, eax
ret
jmp 0x6830aa20

Function at 0x6830b390
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x6830b3d0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x6830b3f8
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x6831b0d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [0x6842e02c]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp], 1
mov eax, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
je 0x6831b138
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.68369c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x683e8432
mov ecx, eax
call fcn.683a6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.68369c30
jmp 0x6831b2a8
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_OpenClipboard]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
je 0x6831b18a
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.68369c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x683e8432
mov ecx, eax
call fcn.683a6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.68369c30
jmp 0x6831b2a8
mov dword [esp], 1
mov eax, dword [sym.imp.USER32.dll_GetClipboardData]
call eax
sub esp, 4
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x2c], 0
jne 0x6831b1e5
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.68369c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x683e8432
mov ecx, eax
call fcn.683a6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.68369c30
jmp 0x6831b2a8
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalLock]
call eax
sub esp, 4
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
jne 0x6831b23d
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.68369c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x683e8432
mov ecx, eax
call fcn.683a6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.68369c30
jmp 0x6831b2a8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.68369c00
lea eax, [esp + 0x34]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp], edx
mov ecx, eax
call fcn.683a6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.68369c30
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call eax
sub esp, 4
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x34]
mov dword [esp], edx
mov ecx, eax
call fcn.683a6d50
sub esp, 4
lea eax, [esp + 0x34]
mov ecx, eax
call fcn.683a7940
mov eax, dword [esp + 0x4c]
sub eax, dword [0x6842e02c]
je 0x6831b2b9
call fcn.683015c0
mov eax, dword [esp + 0x1c]
add esp, 0x5c
ret
Function at 0x6831f890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x683e9e11
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x683e9e75]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.6830b010
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.683deaf0
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x683e726c], 0
jne 0x6831f9b6
mov byte [0x683e726c], 1
call fcn.683dced0
test eax, eax
je 0x6831f984
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.6830a220
mov dword [esp], 2
mov esi, dword [fcn.6831ab80]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x6831f974
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x683ea555
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x683df370
jmp 0x683df368
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6831f93a
mov dword [esp], 2
call dword [0x683e6178]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x683df363
mov dword [esp], 2
call dword [0x683e6178]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x683ea504
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov dword [esp], edi
call fcn.6831a428
call fcn.683dd2a0
call fcn.683dcdb0
call fcn.683dcf20
jmp 0x683df363
Function at 0x68330ed4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x68
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, edx
mov byte [esp + 0x10], al
mov eax, dword [0x6842e02c]
mov dword [esp + 0x5c], eax
xor eax, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.683d87f0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.683a71e0
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x68330f78
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
movsx edx, al
mov eax, dword [esp + 0x28]
mov dword [esp], edx
mov ecx, eax
call fcn.6832a40c
sub esp, 4
movsx edx, al
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, eax
call fcn.6832a2f0
sub esp, 8
movsx edx, al
lea eax, [esp + 0x44]
mov dword [esp], edx
mov ecx, eax
call fcn.683a7d60
sub esp, 4
add dword [esp + 0x18], 1
jmp 0x68330f1c
mov dword [esp + 0x2c], str.dwsmaklthrtter
mov dword [esp + 0x24], 0x683f2ec0
mov dword [esp + 0x30], 0x683f2f38
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x30]
je 0x68331080
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.683d9374
test al, al
je 0x68331076
cmp byte [esp + 0x10], 0
je 0x68331041
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, eax
call fcn.683ab830
sub esp, 8
lea eax, [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], 3
mov ecx, eax
call fcn.683ab830
sub esp, 8
mov eax, dword [esp + 0x34]
add eax, 4
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov ecx, eax
call fcn.68330d40
sub esp, 4
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp], edx
mov ecx, eax
call fcn.68330e18
sub esp, 4
test al, al
je 0x68331041
mov eax, 1
jmp 0x68331046
mov eax, 0
test al, al
je 0x6833106d
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 4
mov ecx, eax
call fcn.683ab830
sub esp, 8
mov ebx, dword [esp + 0x40]
jmp 0x683310a1
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + 4]
jmp 0x683310a1
add dword [esp + 0x24], 8
jmp 0x68330f90
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, eax
call fcn.683ab830
sub esp, 8
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.683a7940
mov eax, ebx
mov ebx, dword [esp + 0x5c]
sub ebx, dword [0x6842e02c]
je 0x683310bf
call fcn.683015c0
add esp, 0x68
pop ebx
ret 0xc
Function at 0x68331240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [0x6842e02c]
mov dword [esp + 0x5c], eax
xor eax, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.683d87f0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.683a71e0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
je 0x683312cd
mov eax, dword [esp + 0x14]
movzx eax, byte [eax]
movsx edx, al
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, eax
call fcn.6832a2f0
sub esp, 8
movsx edx, al
lea eax, [esp + 0x44]
mov dword [esp], edx
mov ecx, eax
call fcn.683a7d60
sub esp, 4
add dword [esp + 0x14], 1
jmp 0x68331285
mov dword [esp + 0x38], 0x683e7280
mov dword [esp + 0x30], 0x683e7280
mov dword [esp + 0x3c], 0x683e7480
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x3c]
je 0x6833137b
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.683d9374
test al, al
je 0x68331371
lea eax, [esp + 0x2f]
mov ecx, eax
call fcn.68369c00
mov eax, dword [esp + 0x40]
sub eax, 0x683e7280
sar eax, 2
movsx edx, al
mov eax, dword [esp + 0x34]
mov dword [esp], edx
mov ecx, eax
call fcn.6832a220
sub esp, 4
movsx edx, al
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2f]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], 1
mov ecx, eax
call fcn.683a7140
sub esp, 0xc
lea eax, [esp + 0x2f]
mov ecx, eax
call fcn.68369c30
jmp 0x68331386
add dword [esp + 0x30], 4
jmp 0x683312e5
mov eax, dword [esp + 0x1c]
mov ecx, eax
call fcn.683a71e0
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.683a7940
mov eax, dword [esp + 0x5c]
sub eax, dword [0x6842e02c]
je 0x683313a2
call fcn.683015c0
mov eax, dword [esp + 0x1c]
add esp, 0x6c
ret 0xc
Function at 0x4028f8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402935
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402955
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004048f0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b1c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404680
test esi, esi
jne 0x402b52
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404770
jmp 0x402b70
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029d0
mov edi, eax
test esi, esi
je 0x402b70
cmp dword [ebx], 0
je 0x402b70
dec esi
jmp 0x402b59
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403648
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x464020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036c0
xor eax, eax
push ebp
push 0x4036b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x464020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x464020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404460
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46604c], 0
je 0x4044c1
cmp word [0x466220], 0xd7b2
jne 0x404489
cmp dword [0x466228], 0
jbe 0x404489
mov eax, 0x46621c
call dword [0x466238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x464070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4044e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x464030], 0
jne 0x4044dd
push 0
push 0x464068
push 0x464070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret