joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402930
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
cmp byte [ebp + 0x10], 0
je 0x402970
mov dword [esp], esi
mov eax, 0x408400
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x402970
mov dword [esp], eax
call sub.msvcrt.dll_fclose
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebp - 0xe], 0
mov ecx, 0x408402
mov dword [esp + 4], ecx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.msvcrt.dll_fopen
test eax, eax
mov ebx, eax
je 0x402a1c
mov dword [esp], esi
mov edi, 0x408405
mov dword [esp + 4], edi
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x402a14
test byte [ebx + 0xc], 0x10
jne 0x402a08
lea esi, [ebp - 0xd]
mov dword [ebp - 0x14], esi
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 0xc], ebx
mov edx, 1
mov eax, 1
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
mov dword [esp + 0xc], edi
mov edx, 1
mov eax, 1
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x14], esi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test byte [ebx + 0xc], 0x10
je 0x4029c0
mov byte [ebp - 0xe], 1
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
movzx eax, byte [ebp - 0xe]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402a30
Capabilities:
Query environment variable
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov dword [esp], str.SYSTEMROOT
mov dword [ebp - 0xc], ebx
lea ebx, [ebp - 0x1b8]
mov dword [ebp - 8], esi
lea esi, [ebp - 0xa8]
mov dword [ebp - 4], edi
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov edx, str._s_notepad.exe
mov dword [esp], ebx
mov dword [esp + 4], edx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call sub.KERNEL32.dll_OpenFile
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x402aff
mov dword [esp], ebx
xor edi, edi
xor eax, eax
mov dword [esp + 8], edi
lea edi, [ebp - 0x1c0]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
call sub.KERNEL32.dll_GetFileTime
sub esp, 0x10
mov dword [esp], ebx
mov ebx, 2
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp + 8]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], ecx
call sub.KERNEL32.dll_OpenFile
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x402aff
mov dword [esp + 4], edi
xor edx, edx
xor esi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileTime
sub esp, 0x10
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402b50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov edx, 0x408402
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402c72
mov dword [esp], ebx
xor esi, esi
mov edi, 2
mov dword [esp + 8], edi
mov dword [esp + 4], esi
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov dword [esp], eax
mov edi, eax
call fcn.00402de0
mov dword [esp], ebx
xor ecx, ecx
mov esi, eax
mov dword [esp + 4], ecx
xor eax, eax
mov dword [esp + 8], eax
call sub.msvcrt.dll_fseek
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], edi
jge 0x402c00
test byte [ebx + 0xc], 0x10
jne 0x402c00
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0x10]
mov ecx, 1
mov dword [esp + 8], ecx
mov eax, 1
mov dword [esp + 4], eax
lea ecx, [esi + edx]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x402bc4
lea esi, [esi]
lea edi, [edi]
mov dword [esp], ebx
xor ebx, ebx
call sub.msvcrt.dll_fclose
xor ecx, ecx
jmp 0x402c2c
xor edx, edx
cmp ebx, dword [ebp + 0x14]
setl dl
neg edx
and edx, ebx
mov ebx, dword [ebp + 0x10]
movzx eax, byte [edx + ebx]
lea ebx, [edx + 1]
neg al
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x402c10
mov ecx, dword [ebp + 0xc]
mov edx, 0x408405
mov dword [esp + 4], edx
mov dword [esp], ecx
call sub.msvcrt.dll_fopen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402c72
mov dword [esp + 8], edi
mov edi, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x405000
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x405036
mov dword [0x40d030], eax
mov edx, 0x404fe0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004056d0
test eax, eax
sete al
movzx eax, al
mov dword [0x4070d0], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x4070d0], eax
leave
ret
Function at 0x405120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 0x4032d0
mov dword [ebp - 0x24], 0x406ebc
mov dword [ebp - 0x1c], 0x4051e0
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.00405c70
cmp dword [0x4070d0], 0
mov dword [ebp - 0x44], 0x40d040
je 0x4051c0
jl 0x405200
mov dword [ebp - 0x3c], 1
mov eax, dword [0x40d030]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x4052a3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.00405d50
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x40d070]
mov eax, 0xffffffff
test edx, edx
je 0x40521a
mov eax, dword [0x4070d4]
test eax, eax
je 0x40525a
xor eax, eax
test eax, eax
jne 0x405250
mov edi, dword [0x4070d0]
test edi, edi
js 0x405250
mov dword [ebp - 0x44], 0x40d040
mov ebx, dword [0x4070d0]
test ebx, ebx
je 0x4051c0
jmp 0x40516e
xor esi, esi
mov dword [0x4070d0], esi
jmp 0x405228
mov dword [esp], 0x4070d8
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x4052e1
mov eax, dword [0x4070d4]
test eax, eax
jne 0x405218
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x4070d4]
test eax, eax
je 0x40527d
jmp 0x405218
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4052d5
mov dword [esp + 4], eax
mov eax, dword [0x40d030]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40530a
test edx, edx
je 0x4052f5
mov dword [ebp - 0x3c], 1
call fcn.00404b80
call fcn.00405000
mov eax, 1
mov dword [0x4070d4], eax
jmp 0x405218
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4051b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4052d1
Function at 0x405570
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00405b30
call fcn.004057d0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x4055a8
jmp 0x405646
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x4055a7
cmp cl, 0x22
je 0x405600
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x405620
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x405620
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x4055e0
jmp 0x405620
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x405600
cmp cl, 0x22
je 0x405682
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x405640
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x405630
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x405664
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004020a0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x405620

Function at 0x405b60
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x40d0d0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x405ba0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.004056d0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x405f50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x40d0d0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40602c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x406041
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x406000
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x405f98
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x405fa8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x405ff3
test edx, edx
jne 0x405fe6
test ecx, ecx
je 0x405f90
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x406050
cmp eax, 8
je 0x405f90
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, 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
jmp 0x405f82
call fcn.004058f0
mov eax, dword [0x40d0d0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x405f74
call fcn.00405bc0
mov eax, dword [0x40d0d0]
jmp 0x405f74
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00405ec0
cmp eax, 7
jne 0x405feb
mov eax, dword [0x40d0d0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4060a3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x4060ce
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x4060af
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.004058f0
mov eax, dword [0x40d0d0]
jmp 0x406081
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x406092
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406092
call fcn.00405bc0
mov eax, dword [0x40d0d0]
jmp 0x406088
Function at 0x406330
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x40d0d0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4063c4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x4063e0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x406400
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x4063b8
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00405ec0
cmp eax, 7
jne 0x40647f
mov eax, dword [0x40d0d0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x406456
mov edx, dword [eax + 0x30]
test edx, edx
js 0x406470
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x406430
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.004060e0
jmp 0x406375
call fcn.004058f0
mov eax, dword [0x40d0d0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x406350
lea esi, [esi]
call fcn.00405bc0
mov eax, dword [0x40d0d0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40635b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, 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
jmp 0x40635e
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4063a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4063a7
call fcn.004058f0
mov eax, dword [0x40d0d0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x406399
nop
lea esi, [esi]
call fcn.00405bc0
mov eax, dword [0x40d0d0]
jmp 0x406399
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x406490
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x406522
mov eax, dword [0x40d0d0]
test eax, eax
je 0x406516
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x406591
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x406537
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.004060e0
cmp eax, 7
jne 0x4065af
mov eax, dword [0x40d0d0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x406582
mov edx, dword [eax + 0x30]
test edx, edx
js 0x4065a0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x406563
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.004058f0
mov eax, dword [0x40d0d0]
jmp 0x4064b2
mov dword [esp], edi
call fcn.00405f50
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, 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
jmp 0x4064c7
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x406505
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406505
call fcn.004058f0
mov eax, dword [0x40d0d0]
jmp 0x4064f0
call fcn.00405bc0
mov eax, dword [0x40d0d0]
jmp 0x4064bd
call fcn.00405bc0
mov eax, dword [0x40d0d0]
jmp 0x4064fb
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x43c27d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x461f88
cmp edx, dword [eax]
je 0x43c29f
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x43c290
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x461f88]
jne 0x43c3cd
mov eax, dword [0x4650f8]
cmp eax, 1
je 0x43c3a7
test eax, eax
jne 0x43c2d0
cmp dword [0x461dd4], 1
je 0x43c3a7
cmp edx, 0xfc
je 0x43c3cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43c307
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0043fa50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043b880
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43c34a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043b880
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x451cec
push edi
call fcn.00438a90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0043fa50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0043fa60
lea eax, [ebp - 0xa0]
push 0x449cb4
push eax
call fcn.0043fa60
push dword [esi + 0x461f8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0043fa60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004408db
add esp, 0x2c
pop edi
jmp 0x43c3cd
lea eax, [ebp + 8]
lea esi, [esi + 0x461f8c]
push 0
push eax
push dword [esi]
call fcn.0043b880
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x43fa09
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43fa29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043f38e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43fa4a
test byte [esp + 8], 2
je 0x43fa4a
mov dword [0x4650a4], 0xd
mov dword [0x4650a8], 5
jmp 0x43fa25
xor eax, eax
ret

Function at 0xed4b24
Capabilities:
Encode data using xor

Disassembly:
jmp 0xed4b2e
pushal
call 0xed4b34
pop ebp
sub ebp, 0x10
sub ebp, 0xad4b24
jmp 0xed4b4a
mov eax, 0xad4b24
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c0
mov edx, 0x6e5041b9
xor byte [eax], dl
inc eax
dec ecx
jne 0xed4b61
jmp 0xed4b74
xor dh, byte [edx + esi + 0x30]
test dword [ecx + 0x7838b9b9], edi
inc ecx
mov ecx, 0x74bab9b9
add dword [ecx + edi*4 - 0x6efc4647], edi
mov ecx, 0x5b4eb9b9
mov edx, 0xb5383271
mov ecx, 0x7cbab9b9
jmp 0x468b28d3
Function at 0x71b370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x71b38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x744074
push ecx
mov edi, eax
call fcn.0072f198
mov esi, eax
add esp, 8
test esi, esi
jne 0x71b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0072f02e
push esi
call fcn.0072efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x71e850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x71e8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x749720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x71e8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0072f1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x71e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x749720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x71e92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00730082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x71e957
mov word [eax], si
add eax, 2
push eax
call fcn.00730030
add esp, 4
jmp 0x71e959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x71e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x71e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x71eff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x71f080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x71f0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x744458
push ecx
call fcn.0072f1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0072f1e1
add esp, 0x10
jmp 0x71f0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0072f20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0072edff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0071f050
mov eax, dword [0x749728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x71f13b
push esi
call fcn.0071efb0
add esp, 4
mov dword [0x749728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x71f14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.0071eff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x722440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7224b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x72248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x722471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x72247e
add edx, ecx
cmp ebx, edx
jb 0x72248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x722467
xor ecx, ecx
jmp 0x7224a2
test eax, eax
jne 0x722492
xor ecx, ecx
jmp 0x7224a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.007223c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret