joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1028daa
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x20
pop edi
push edi
push edi
push 0x32cf
mov ebx, ecx
push 0x3300
push dword [ebx + 0x1c]
call esi
push eax
push dword [ebx + 4]
call fcn.0101d52e
push edi
push edi
push 0x32cd
push 0x3301
push dword [ebx + 0x1c]
call esi
push eax
push dword [ebx + 4]
call fcn.0101d52e
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
xor edi, edi
push edi
sub edx, eax
push edx
mov edx, dword [ebx + 0x14]
sub edx, ecx
push edx
push eax
push ecx
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x79d0]
cmp dword [eax + 0x8008], edi
mov dword [ebp - 0x10], ecx
mov eax, 0x1007b50
jne 0x1028e32
mov eax, 0x1007ac0
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 8], eax
lea eax, [eax + ecx*4 + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 5
mov eax, dword [ebp - 4]
push dword [eax]
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebx + 0x1c]
call esi
push eax
call edi
add dword [ebp - 4], 0x1c
add dword [ebp - 8], 0x1c
dec dword [ebp - 0xc]
jne 0x1028e49
cmp dword [ebp - 0x10], 5
jne 0x1028e72
push 0
jmp 0x1028e74
push 1
push 1
push dword [ebx + 0x20]
call esi
push eax
call edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x1028f69
cmp dword [ebx + 0x22c], edi
jne 0x1028ebd
push 0x834
call fcn.0104b5f8
cmp eax, edi
je 0x1028eb5
mov edx, dword [ebx]
push edi
add edx, 0x8020
push edx
push dword [ebx + 4]
mov ecx, eax
call fcn.0104a394
jmp 0x1028eb7
xor eax, eax
mov dword [ebx + 0x22c], eax
push 0x32ff
push dword [ebx + 0x1c]
call esi
cmp dword [ebx + 0x22c], edi
mov dword [ebp + 8], eax
je 0x1028f5e
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x1c]
call fcn.0103fc0f
mov edi, dword [ebx + 0x22c]
add edi, 0x1c
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x32e9
movsd dword es:[edi], dword [esi]
push dword [ebx + 4]
call fcn.0104bd76
test eax, eax
je 0x1028f58
push dword [ebx + 0x22c]
push 0x104b12f
push dword [ebx + 0x1c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push 5
push eax
mov dword [ebx + 0x230], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x32fa
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 3
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
push dword [ebx + 0x230]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, 0x32fa
push edi
push dword [ebx + 0x1c]
call esi
push eax
push dword [ebx]
call fcn.0101d600
mov eax, dword [ebx]
lea ecx, [eax + 0x50]
call fcn.0103f913
push eax
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x102ce3e
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x3a0], 0
jne 0x102ce80
push 0x834
call fcn.0104b5f8
test eax, eax
je 0x102ce78
mov edx, dword [ebx + 0x24]
push 1
add edx, 0x8020
push edx
push dword [ebx + 0xc]
mov ecx, eax
call fcn.0104a394
jmp 0x102ce7a
xor eax, eax
mov dword [ebx + 0x3a0], eax
push 0x32ff
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebx + 0x3a0], 0
mov dword [ebp - 4], eax
je 0x102cf2b
push esi
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call fcn.0103fc0f
mov edi, dword [ebx + 0x3a0]
add edi, 0x1c
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3a9a
movsd dword es:[edi], dword [esi]
push dword [ebx + 0xc]
call fcn.0104bd76
test eax, eax
pop edi
pop esi
je 0x102cf2b
push dword [ebx + 0x3a0]
push 0x104b12f
push dword [ebx + 4]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push 5
push eax
mov dword [ebx + 0x3a4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1394
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 3
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
push dword [ebx + 0x3a4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.0102c270
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
leave
ret
Function at 0x1031546
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x20
push 0x20
push 0x32d3
mov ebx, ecx
push 0x3364
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, ebx
call fcn.01041b6c
mov eax, dword [ebx + 0x2c]
mov esi, 0x1364
add eax, esi
push eax
mov ecx, ebx
call fcn.01031399
mov edi, eax
test edi, edi
jne 0x10315bb
mov eax, dword [section..data]
cmp eax, section..data
je 0x1031713
test byte [eax + 0x1c], 2
je 0x1031713
push 0x100883c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
jmp 0x1031713
push 0x65
mov ecx, ebx
call fcn.010414f4
mov eax, dword [ebx + 0x2c]
add eax, esi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + 0x50]
call fcn.0103f913
push eax
mov esi, 0x335e
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 1
push esi
mov ecx, ebx
call fcn.01041a0f
xor esi, esi
cmp dword [ebx + 0x34], esi
jne 0x1031629
push 0x834
call fcn.0104b5f8
cmp eax, esi
je 0x1031624
mov edx, dword [ebx + 0x2c]
push esi
add edx, 0x8020
push edx
push dword [ebx + 0xc]
mov ecx, eax
call fcn.0104a394
jmp 0x1031626
xor eax, eax
mov dword [ebx + 0x34], eax
push 0x3366
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebx + 0x34], esi
mov dword [ebp - 4], eax
je 0x10316cd
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call fcn.0103fc0f
mov edi, dword [ebx + 0x34]
add edi, 0x1c
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x32e9
movsd dword es:[edi], dword [esi]
push dword [ebx + 0xc]
call fcn.0104bd76
test eax, eax
je 0x10316cd
push dword [ebx + 0x34]
push 0x104b12f
push dword [ebx + 4]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push 5
push eax
mov dword [ebx + 0x38], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x335e
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 3
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + 0x50]
call fcn.0103f913
mov ecx, dword [ebx + 0x34]
push eax
call fcn.0104b0d2
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x79d0]
push dword [eax*4 + 0x1008850]
xor edi, edi
inc edi
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp - 4]
call esi
push 2
push 2
push dword [ebx + 8]
mov ecx, ebx
call fcn.01041556
push 9
push dword [ebx + 4]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10329f0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x438], 0
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
push 8
mov ebx, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x434]
rep stosd dword es:[edi], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edx
mov ecx, ebx
call fcn.01031e29
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x1032be5
cmp word [eax], 0
je 0x1032be5
push 0xffffffffffffffff
push 0x1007bdc
push 0xffffffffffffffff
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x1032be5
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1032aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1032c09
test byte [ecx + 0x1c], 2
je 0x1032c09
push eax
push 0x1008aec
push 0x1008a0c
push 0x17
jmp 0x1032b44
push 1
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.01032624
test eax, eax
jne 0x1032afb
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032c09
test byte [eax + 0x1c], 2
je 0x1032c09
push 0x1008a0c
push 0x18
jmp 0x1032bfe
lea eax, [ebp - 0x438]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x1032b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1032c09
test byte [ecx + 0x1c], 2
je 0x1032c09
push eax
push 0x1008ab4
push 0x1008a0c
push 0x19
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d61
jmp 0x1032c09
cmp dword [ebp - 0x41c], 0
jne 0x1032bb3
cmp dword [ebp - 0x418], 0x10000
ja 0x1032bb3
lea eax, [ebp - 0x20c]
push eax
push esi
add ebx, 0xc5c
push ebx
call fcn.01018462
test eax, eax
jge 0x1032c09
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1032c09
test byte [ecx + 0x1c], 2
je 0x1032c09
push eax
push 0x1004de8
push 0x1008a0c
push 0x1b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d61
jmp 0x1032c09
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032c09
test byte [eax + 0x1c], 2
je 0x1032c09
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push 0x1008a0c
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019979
jmp 0x1032c09
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032c09
test byte [eax + 0x1c], 2
je 0x1032c09
push 0x1008a0c
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01035675
leave
ret 4
Function at 0x1034066
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, ecx
push 0x1008e84
push dword [esi + 0x14]
call edi
test eax, eax
mov dword [esi + 0x1c], eax
mov ebx, section..data
jne 0x10340aa
mov eax, dword [section..data]
cmp eax, ebx
je 0x10340aa
test byte [eax + 0x1c], 2
je 0x10340aa
push 0x1008de8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
push 0x1008e74
push dword [esi + 0x14]
call edi
test eax, eax
mov dword [esi + 0x20], eax
jne 0x10340dc
mov eax, dword [section..data]
cmp eax, ebx
je 0x10340dc
test byte [eax + 0x1c], 2
je 0x10340dc
push 0x1008de8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
push 0x1008e64
push dword [esi + 0x14]
call edi
test eax, eax
mov dword [esi + 0x24], eax
jne 0x103410e
mov eax, dword [section..data]
cmp eax, ebx
je 0x103410e
test byte [eax + 0x1c], 2
je 0x103410e
push 0x1008de8
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
push 0x1008e50
push dword [esi + 0x14]
call edi
test eax, eax
mov dword [esi + 0x28], eax
jne 0x1034140
mov eax, dword [section..data]
cmp eax, ebx
je 0x1034140
test byte [eax + 0x1c], 2
je 0x1034140
push 0x1008de8
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
push 0x1008e38
push dword [esi + 0x14]
call edi
test eax, eax
mov dword [esi + 0x2c], eax
jne 0x1034172
mov eax, dword [section..data]
cmp eax, ebx
je 0x1034172
test byte [eax + 0x1c], 2
je 0x1034172
push 0x1008de8
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
push 0x1008e14
push dword [esi + 0x14]
call edi
test eax, eax
mov dword [esi + 0x30], eax
jne 0x10341a4
mov eax, dword [section..data]
cmp eax, ebx
je 0x10341a4
test byte [eax + 0x1c], 2
je 0x10341a4
push 0x1008de8
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
cmp dword [esi + 0x1c], 0
je 0x10341b5
cmp dword [esi + 0x24], 0
je 0x10341b5
xor eax, eax
inc eax
jmp 0x10341b7
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x10348f9
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x103494e
movzx eax, word [esi]
cmp ax, 0x22
push 2
pop ecx
jne 0x103492c
add esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x1034924
cmp ax, 0x22
jne 0x1034914
cmp word [esi], 0x22
jne 0x1034944
jmp 0x1034942
cmp ax, 0x20
jbe 0x1034944
add esi, ecx
cmp word [esi], 0x20
ja 0x1034932
jmp 0x1034944
cmp ax, 0x20
ja 0x1034972
add esi, ecx
movzx eax, word [esi]
test ax, ax
jne 0x103493c
jmp 0x1034972
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034972
test byte [eax + 0x1c], 2
je 0x1034972
push 0x1009028
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
mov eax, esi
pop esi
ret
Function at 0x103497b
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push 0x100909c
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x10349df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10349ac
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034b2c
test byte [eax + 0x1c], 2
je 0x1034b2c
push 0x1009028
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
jmp 0x1034b2c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x100907c
push eax
call esi
push 0x100905c
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
je 0x1034af8
cmp eax, ebx
je 0x1034af8
push 0x44
pop edi
push edi
lea eax, [ebp - 0x64]
push ebx
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x64], edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [ebp - 4]
test eax, eax
je 0x1034acd
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x10
push 1
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov esi, 0x1009028
jne 0x1034a9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1034a75
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034aac
test byte [eax + 0x1c], 2
je 0x1034aac
push dword [ebp + 8]
push esi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
jmp 0x1034aac
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0xc]
call dword [ebp - 0x10]
test eax, eax
jne 0x1034b21
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034af1
test byte [eax + 0x1c], 2
je 0x1034af1
push esi
push 0x10
jmp 0x1034ae6
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034af1
test byte [eax + 0x1c], 2
je 0x1034af1
push 0x1009028
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
mov ebx, 0x80004005
jmp 0x1034b21
mov ebx, 0x80004005
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034b21
test byte [eax + 0x1c], 2
je 0x1034b21
push 0x1009028
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1034b38
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
call fcn.010348b2
test eax, eax
je 0x1034bc1
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
cmp esi, edi
jne 0x1034b8c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034bc0
test byte [eax + 0x1c], 2
je 0x1034bc0
push 0x1009028
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
jmp 0x1034bc0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x10090b8
mov word [ebp - 0x20c], di
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0103497b
xor ecx, ecx
test eax, eax
setge cl
mov edi, ecx
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.01035675
leave
ret
Function at 0x103564e
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1050298
call fcn.01036094
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, 0x1055548
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10353fc
cmp eax, esi
jne 0x10353ef
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10353ff
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10353d6
xor esi, esi
inc esi
mov eax, dword [0x1055544]
cmp eax, esi
jne 0x1035412
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1035441
mov eax, dword [0x1055544]
test eax, eax
jne 0x103543b
mov dword [0x1055544], esi
push 0x100163c
push 0x1001630
call fcn.0103533b
pop ecx
pop ecx
test eax, eax
je 0x1035441
jmp 0x1035569
mov dword [0x1054604], esi
mov eax, dword [0x1055544]
cmp eax, esi
jne 0x1035465
push 0x100162c
push 0x1001618
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1055544], 2
test ebx, ebx
jne 0x1035471
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1055558], 0
je 0x1035495
push 0x1055558
call fcn.0103600b
pop ecx
test eax, eax
je 0x1035495
push 0
push 2
push 0
call dword [0x1055558]
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 0x10354f1
test al, al
je 0x10354af
cmp dword [ebp - 0x1c], 0
jne 0x10354f1
mov al, byte [esi]
test al, al
je 0x10354bf
cmp al, 0x20
ja 0x10354bf
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10354af
test byte [ebp - 0x3c], 1
je 0x10354cb
movzx eax, word [ebp - 0x38]
jmp 0x10354ce
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1054600], eax
cmp dword [0x10545f4], 0
jne 0x1035545
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1035500
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 0x1035513
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x103549c
cmp dword [0x1054604], 0
jne 0x1035554
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1054600]
jmp 0x1035575
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010360d9
ret
call fcn.010361d6
jmp 0x103539c

Function at 0x1035f80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1035f93
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1035f8f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1035fc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1035fff
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1035ff5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1036001
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1035fe5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1037822
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x1037851
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01035882
add esp, 0x14
jmp 0x103792d
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x103792d
test al, 0x40
jne 0x103792d
test al, 2
je 0x1037873
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x103792d
or eax, 1
test ax, 0x10c
mov dword [esi + 0xc], eax
je 0x1037833
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, ebx
mov dword [esi + 4], eax
je 0x103791d
cmp eax, 0xffffffff
je 0x103791d
test byte [esi + 0xc], 0x82
jne 0x10378f3
push esi
call edi
cmp eax, 0xffffffff
pop ecx
je 0x10378de
push esi
call edi
cmp eax, 0xfffffffe
pop ecx
je 0x10378de
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x10378e3
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x10378f3
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x1037910
mov eax, dword [esi + 0xc]
test al, 8
je 0x1037910
test ax, 0x400
jne 0x1037910
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x1037930
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1038fc3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x1038ff2
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01035882
add esp, 0x14
jmp 0x10390da
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x10390da
test al, 0x40
jne 0x10390da
test al, 2
je 0x1039014
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x10390da
or eax, 1
test ax, 0x10c
mov dword [esi + 0xc], eax
je 0x1038fd4
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, ebx
mov dword [esi + 4], eax
je 0x10390ca
cmp eax, 1
je 0x10390ca
cmp eax, 0xffffffff
je 0x10390ca
test byte [esi + 0xc], 0x82
jne 0x103909d
push esi
call edi
cmp eax, 0xffffffff
pop ecx
je 0x1039088
push esi
call edi
cmp eax, 0xfffffffe
pop ecx
je 0x1039088
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x103908d
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x103909d
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x10390ba
mov eax, dword [esi + 0xc]
test al, 8
je 0x10390ba
test ax, 0x400
jne 0x10390ba
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x10390df
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret