joyce8/EMBER2024-capa huggingface dataset:
Function at 0x557010
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x288
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0x288
call fcn.0057d9c7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x557218
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x8080808
call sub.IPHLPAPI.DLL_GetBestInterface
mov edi, eax
lea eax, [ebp - 0x30]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x557087
push ebx
call fcn.0057d798
push dword [ebp - 0x30]
call fcn.0057d9c7
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x557218
push esi
lea eax, [ebp - 0x30]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x5571f8
mov esi, ebx
test ebx, ebx
je 0x557205
test edi, edi
jne 0x557130
mov eax, dword [ebp - 0x34]
nop
cmp dword [esi + 0x19c], eax
je 0x5570c3
mov esi, dword [esi]
test esi, esi
jne 0x5570b0
jmp 0x5571f8
mov dword [ebp - 8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x18]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.0041aef0
lea edx, [ebp - 0x18]
add esp, 0x20
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x557118
sub edx, esi
lea eax, [ebp - 0x18]
push edx
jmp 0x5571ef
lea edi, [esi + 0x10c]
push 0x5d8cdc
push edi
call fcn.00579c40
add esp, 8
test eax, eax
jne 0x557158
mov eax, dword [esi + 0x1a0]
cmp eax, 0x47
je 0x557158
cmp eax, 6
jne 0x557185
push str.Bluetooth
push edi
call fcn.00579c40
add esp, 8
test eax, eax
jne 0x557185
push str.Virtual
push edi
call fcn.00579c40
add esp, 8
test eax, eax
jne 0x557185
cmp dword [esi + 0x190], 6
je 0x55718d
mov esi, dword [esi]
test esi, esi
jne 0x557130
jmp 0x5571f8
movzx eax, byte [esi + 0x199]
xorps xmm0, xmm0
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
push str._02X_02X_02X_02X_02X_02X
push eax
movups xmmword [ebp - 0x2c], xmm0
call fcn.0041aef0
lea ecx, [ebp - 0x2c]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5571e2
sub ecx, edx
lea eax, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x38]
push eax
call fcn.0055e870
test ebx, ebx
je 0x557205
push ebx
call fcn.0057d798
add esp, 4
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.004a6edb
mov esp, ebp
pop ebp
ret 4
Function at 0x55f290
Capabilities:
Get number of processors

Disassembly:
push 0x220
call fcn.004a6eec
add esp, 4
test eax, eax
je 0x55f2a8
mov ecx, eax
jmp fcn.00551870
xor eax, eax
ret

Function at 0x55f2e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x6456dc], eax
mov eax, dword [ebp + 0xc]
mov dword [0x6456e0], eax
mov eax, dword [ebp + 0x10]
mov dword [0x6456e4], eax
mov eax, dword [ebp + 0x14]
push 0x220
mov dword [0x6456e8], eax
call fcn.004a6eec
add esp, 4
test eax, eax
je 0x55f31d
mov ecx, eax
call fcn.00551870
jmp 0x55f31f
xor eax, eax
push 0
push 0
push 0
push 0x557fe0
push 0
push 0
mov dword [0x6456d8], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
xor eax, eax
pop ebp
ret
Function at 0x5612e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a74f9
add esp, 4
mov edi, eax
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
test eax, eax
je 0x561389
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x561370
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.0055e960
push edi
call fcn.004a729f
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
add esp, 4
lea eax, [eax + eax*2]
push 0x20
push eax
call fcn.0042a550
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x40]
push ecx
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
ja 0x5613f1
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
cmovae ecx, dword [ebp - 0x28]
mov byte [ecx + eax], 0
jmp 0x5613fe
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.0042f4a0
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x561418
cmp dword [ebp - 0x14], 0x10
mov ecx, ebx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0055e870
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x561448
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x56143e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5614af
push edx
push ecx
call fcn.004a726e
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 8
jb 0x561490
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x561486
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5614b4
push edx
push ecx
call fcn.004a726e
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret 4
call fcn.0057d977
call fcn.0057d977
int3
Function at 0x5614c0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 0x101
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x5bf614
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x56153c
mov eax, dword [eax + 0xc]
push ebx
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
lea ebx, [edx + 1]
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x561510
sub edx, ebx
mov ecx, esi
push edx
push eax
call fcn.0055e870
pop ebx
cmp edi, esi
je 0x56153c
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x561531
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.0055e870
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a6edb
mov esp, ebp
pop ebp
ret 4
Function at 0x5618e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7b00
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00561560
push str.GetNativeSystemInfo
push 0x5d9128
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x561968
lea ecx, [ebp - 0x64]
push ecx
call eax
jmp 0x561972
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ax, word [ebp - 0x64]
cmp ax, 9
je 0x56198b
cmp ax, 6
je 0x56198b
push 4
push str._x32
jmp 0x561992
push 4
push str._x64
lea ecx, [ebp - 0x28]
call fcn.0055e870
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00550b50
mov esi, eax
add esp, 0xc
cmp edi, esi
je 0x5619dc
mov ecx, edi
call fcn.00551f60
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x561a10
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x561a06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x561a8f
push edx
push ecx
call fcn.004a726e
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x561a40
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x561a36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x561a94
push edx
push ecx
call fcn.004a726e
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x561a70
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x561a66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x561a99
push edx
push ecx
call fcn.004a726e
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret 4
call fcn.0057d977
call fcn.0057d977
call fcn.0057d977
int3
Function at 0x561aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x114]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push 1
push 0
push str.SOFTWAREGuidGuidold
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x110], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x561bee
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], 0x104
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.guid
push dword [ebp - 0x114]
call esi
test eax, eax
jne 0x561bee
push str._n_CPU_INFO:
call fcn.00476460
lea eax, [ebp - 0x108]
push eax
push str._s_n
call fcn.00476460
lea edx, [ebp - 0x108]
add esp, 0xc
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x561b50
sub edx, ecx
lea eax, [ebp - 0x108]
push edx
push eax
mov ecx, edi
call fcn.0055e870
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.user_id
push dword [ebp - 0x114]
call esi
test eax, eax
jne 0x561bee
push str._n_CPU_INFO:
call fcn.00476460
lea eax, [ebp - 0x108]
push eax
push str._s_n
call fcn.00476460
lea edx, [ebp - 0x108]
add esp, 0xc
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x561bc1
sub edx, esi
lea eax, [ebp - 0x108]
push edx
push eax
mov ecx, ebx
call fcn.0055e870
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a6edb
mov esp, ebp
pop ebp
ret 8
Function at 0x561c10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREGuidGuidold
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x561c4c
or esi, 0xffffffff
jmp 0x561cb9
push dword [ebp + 0x18]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmovae eax, dword [ebp + 8]
push eax
push 1
push 0
push str.guid
push dword [ebp - 4]
call esi
test eax, eax
jne 0x561c80
push str._self_run_success_n
call fcn.00476460
add esp, 4
push dword [ebp + 0x30]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
push 1
push 0
push str.user_id
push dword [ebp - 4]
call esi
test eax, eax
jne 0x561cae
push str._self_run_success_n
call fcn.00476460
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x561ce9
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x561cdf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x561d34
push edx
push ecx
call fcn.004a726e
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x561d2b
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x561d21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x561d34
push edx
push ecx
call fcn.004a726e
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x30
call fcn.0057d977
int3
Function at 0x561df0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7b38
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x84]
push eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.005626b0
cmp byte [ebp - 0x84], 0
jne 0x561f3f
xor edx, edx
lea ecx, [ebp - 0x3f]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x18], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x17], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x16], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x15], al
add edx, 4
cmp edx, 8
jb 0x561e83
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x63f4c8
call fcn.005626b0
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.005626b0
xor edx, edx
lea ecx, [ebp - 0x37]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x28], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x27], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x26], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x25], al
add edx, 4
cmp edx, 0x10
jb 0x561ef2
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call fcn.0057a870
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.00561d40
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x561f7b
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x561f71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x561f97
push edx
push ecx
call fcn.004a726e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret
call fcn.0057d977
int3

Function at 0x5644cd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x599690
Capabilities:
Read file on windows

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

Function at 0x59969b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005994d4

Function at 0x59dde4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059daa4
Function at 0x1013cfa
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x204
mov dword [ebp - 0x670], eax
lea eax, [ebp - 0x460]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x674], edi
mov dword [ebp - 0x464], ebx
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 0xc
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x3f6
push ebx
call esi
lea eax, [edi + 0x2964]
push eax
mov dword [ebp - 0x678], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x464]
push eax
call fcn.01013368
push 0xc8
lea eax, [ebp - 0x25c]
push eax
push 0x3f5
push ebx
call esi
lea eax, [ebp - 0x25c]
cmp word [ebp - 0x25c], bx
je 0x1013dab
cmp word [eax], 0x23
jne 0x1013da4
xor ecx, ecx
mov word [eax], cx
inc eax
inc eax
cmp word [eax], bx
jne 0x1013d99
push edi
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1013dc4
mov word [ebp - 0x66c], ax
push 0x54
lea eax, [ebp - 0x6cc]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x670]
mov dword [ebp - 0x6cc], eax
mov eax, dword [ebp - 0x674]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x6c8], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x6c4], eax
lea eax, [ebp - 0x464]
mov dword [ebp - 0x6b4], eax
add esp, 0xc
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x6d0], 0x58
mov dword [ebp - 0x6b8], 1
mov dword [ebp - 0x6b0], edi
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x69c], 0x801000
mov dword [ebp - 0x694], 0x1001730
cmp word [ebp - 0x464], bx
jne 0x1013e58
lea eax, [ebp - 0x66c]
mov dword [ebp - 0x6a4], eax
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x1013e7b
push dword [ebp - 0x6b4]
push edi
push dword [ebp - 0x678]
call fcn.01013368
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01015299
leave
ret 4
Function at 0x1013e91
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push 0x204
lea eax, [ebp - 0x460]
push edi
push eax
mov dword [ebp - 0x670], ecx
mov dword [ebp - 0x464], edi
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 0xc
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x3f7
push edi
call esi
push 0xc8
lea eax, [ebp - 0x25c]
push eax
push 0x3f5
push edi
call esi
lea eax, [ebp - 0x25c]
cmp word [ebp - 0x25c], di
je 0x1013f1b
cmp word [eax], 0x23
jne 0x1013f14
xor ecx, ecx
mov word [eax], cx
inc eax
inc eax
cmp word [eax], di
jne 0x1013f09
mov esi, 0x104
push esi
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1013f39
mov word [ebp - 0x66c], ax
push 0x54
lea eax, [ebp - 0x6c4]
push edi
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x6c4], ebx
mov ebx, dword [ebp - 0x670]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x6c0], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x6bc], eax
lea eax, [ebp - 0x464]
mov dword [ebp - 0x6ac], eax
add esp, 0xc
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x6c8], 0x58
mov dword [ebp - 0x6b0], 1
mov dword [ebp - 0x6a8], esi
mov dword [ebp - 0x698], eax
mov dword [ebp - 0x694], 0x801000
mov dword [ebp - 0x68c], 0x1001730
cmp word [ebp - 0x464], di
jne 0x1013fc7
lea eax, [ebp - 0x66c]
mov dword [ebp - 0x69c], eax
lea eax, [ebp - 0x6c8]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x1013feb
push dword [ebp - 0x6ac]
add ebx, 0x2b6c
push esi
push ebx
call fcn.01013368
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01015299
leave
ret 4
Function at 0x101525b
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x102ed68
call fcn.01015484
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x103ef08
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1015012
cmp eax, esi
jne 0x1015005
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1015015
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1014fec
xor esi, esi
inc esi
mov eax, dword [0x103ef04]
cmp eax, esi
jne 0x1015028
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1015057
mov eax, dword [0x103ef04]
test eax, eax
jne 0x1015051
mov dword [0x103ef04], esi
push 0x1001334
push 0x1001328
call fcn.01014f51
pop ecx
pop ecx
test eax, eax
je 0x1015057
jmp 0x101517f
mov dword [0x103a004], esi
mov eax, dword [0x103ef04]
cmp eax, esi
jne 0x101507b
push 0x1001324
push 0x1001318
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x103ef04], 2
test ebx, ebx
jne 0x1015087
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x103ef0c], 0
je 0x10150ab
push 0x103ef0c
call fcn.010153f9
pop ecx
test eax, eax
je 0x10150ab
push 0
push 2
push 0
call dword [0x103ef0c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1015107
test al, al
je 0x10150c5
cmp dword [ebp - 0x1c], 0
jne 0x1015107
mov al, byte [esi]
test al, al
je 0x10150d5
cmp al, 0x20
ja 0x10150d5
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10150c5
test byte [ebp - 0x3c], 1
je 0x10150e1
movzx eax, word [ebp - 0x38]
jmp 0x10150e4
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x103a000], eax
cmp dword [0x1039ff4], 0
jne 0x101515b
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1015116
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1015129
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10150b2
cmp dword [0x103a004], 0
jne 0x101516a
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x103a000]
jmp 0x101518b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010154c9
ret
call fcn.0101566f
jmp 0x1014fb2