joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c296
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x41c2b6
cmp dword [edi + 0x54], 0
jne 0x41c2b6
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00424d15
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041c25d
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x41fc6f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41fca8
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00403f73
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00403f4e
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4212bf
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x4513b4
mov ecx, edi
call fcn.00401648
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x421312
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x421325
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00403f73
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00403f4e
jmp 0x421325
mov ecx, esi
call fcn.0041c361
test eax, eax
je 0x421325
push edi
mov ecx, eax
call fcn.0041fc6f
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x421803
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x421846
call fcn.00424d15
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x421846
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x421861
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004213bd
test ebx, ebx
mov esi, eax
je 0x42185f
test edi, edi
je 0x42185f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x42604c
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x45fd70]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x4260ea
push 0x44c964
push 4
push eax
call fcn.0042f4ce
push eax
call fcn.00401621
add esp, 0x10
push ebx
push edi
call fcn.00432b3c
mov edi, dword [eax]
call fcn.00432b3c
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00432ae2
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00432b3c
cmp dword [eax], ebx
je 0x426101
call fcn.00432b3c
push dword [eax]
call fcn.0041c639
pop ecx
jmp 0x426108
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x42609b
jmp 0x42617a
call fcn.00432b3c
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x426176
cmp dword [ebp - 0x40], esi
jae 0x426176
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0042e320
add esp, 0xc
push 0x44c520
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x426168
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x426168
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x426168
push ebx
push ebx
push esi
jmp 0x42616e
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x426178
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0042d810
add ebp, 0x1f4
leave
ret
Function at 0x428e5b
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x428e64
xor eax, eax
jmp 0x428ecd
cmp dword [esp + 8], 0
jne 0x428e70
call fcn.0041b76f
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00432316
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x428eab
push dword [esi + 0x10]
call fcn.00431850
test eax, eax
pop ecx
jne 0x428eab
mov esi, dword [esi + 0xc]
call fcn.00432b4f
push esi
push dword [eax]
push 1
call fcn.00428cc5
push dword [esi + 0x10]
call fcn.0043187f
test eax, eax
pop ecx
je 0x428eca
push dword [esi + 0x10]
call fcn.004334c2
push eax
call fcn.00401621
pop ecx
pop ecx
jmp 0x428e99
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x428ed6
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x428ee0
call fcn.0041b76f
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00431a0d
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x428f0d
mov esi, dword [esi + 0xc]
call fcn.00432b4f
push esi
push dword [eax]
push 1
call fcn.00428cc5
pop esi
ret 8

Function at 0x429eb4
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x429edd
call fcn.00424d15
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x429f00
push eax
push dword [esi + 4]
call fcn.00429e3f
push esi
push eax
mov ecx, 0x4634f4
call fcn.00429aee
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x42a8c4
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x446080
call fcn.004327c0
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.0042a886
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401ae0
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x42a92b
push eax
push dword [esi + 8]
call fcn.00429e3f
push dword [esi + 0xc]
mov ecx, 0x4634f4
push eax
call fcn.00429aee
mov eax, esi
call fcn.00432898
ret 0x1c

Function at 0x42d810
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45fd70]
jne 0x42d81a
repz ret
jmp fcn.00435089
Function at 0x43207a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4320b7
cmp dword [ebp + 0x14], edi
je 0x4320b7
cmp ecx, edi
jne 0x4320be
call fcn.00432b3c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004355fb
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4320d2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4320f3
cmp ebx, 0xffffffff
je 0x4320e2
push ebx
push edi
push ecx
call fcn.0042e320
add esp, 0xc
cmp esi, edi
je 0x43209f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43209f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43210f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x432116
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x432207
test word [esi + 0xc], 0x10c
je 0x43216a
mov eax, dword [esi + 4]
test eax, eax
je 0x43216a
jl 0x432268
cmp ebx, eax
mov edi, ebx
jb 0x43213b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43220f
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042de5a
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4321ff
cmp ebx, dword [ebp - 0xc]
jb 0x4321d7
cmp dword [ebp - 0xc], 0
je 0x432194
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x432189
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x432190
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43219f
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x43219f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43223b
push eax
push dword [ebp - 8]
push esi
call fcn.0043330f
pop ecx
push eax
call fcn.0043cd26
add esp, 0xc
test eax, eax
je 0x43227a
cmp eax, 0xffffffff
je 0x432268
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4321ff
push esi
call fcn.0043aeb2
cmp eax, 0xffffffff
pop ecx
je 0x43226c
cmp dword [ebp - 4], 0
je 0x43223b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43211e
mov eax, dword [ebp + 0x14]
jmp 0x4320b9
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x432226
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042e320
add esp, 0xc
call fcn.00432b3c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4320af
cmp dword [ebp + 0xc], 0xffffffff
je 0x432251
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042e320
add esp, 0xc
call fcn.00432b3c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4320af
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4320b9
or dword [esi + 0xc], 0x10
jmp 0x43226c
Function at 0x433dfd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x45ff00]
je 0x433e18
inc edi
cmp edi, 0x17
jb 0x433e09
cmp edi, 0x17
jae 0x433f98
push ebp
push 3
call fcn.0043fc9f
cmp eax, 1
pop ecx
je 0x433f64
push 3
call fcn.0043fc9f
test eax, eax
pop ecx
jne 0x433e4c
cmp dword [0x45fab8], 1
je 0x433f64
cmp ebx, 0xfc
je 0x433f97
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x463850
push ebp
call fcn.0043fc3a
add esp, 0xc
test eax, eax
je 0x433e82
push esi
push esi
push esi
push esi
push esi
call fcn.004354ff
add esp, 0x14
push 0x104
mov esi, 0x463869
push esi
push 0
mov byte [0x46396d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x433ec6
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043fc3a
add esp, 0xc
test eax, eax
je 0x433ec6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004354ff
add esp, 0x14
push esi
call fcn.0042e960
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x433f0b
push esi
call fcn.0042e960
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x463b64
push 0x44df14
sub ecx, eax
push ecx
push eax
call fcn.0043fb87
add esp, 0x14
test eax, eax
je 0x433f0b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004354ff
add esp, 0x14
jmp 0x433f0d
xor esi, esi
push 0x44df10
push ebx
push ebp
call fcn.0043fb16
add esp, 0xc
test eax, eax
je 0x433f2d
push esi
push esi
push esi
push esi
push esi
call fcn.004354ff
add esp, 0x14
push dword [edi*8 + 0x45ff04]
push ebx
push ebp
call fcn.0043fb16
add esp, 0xc
test eax, eax
je 0x433f4f
push esi
push esi
push esi
push esi
push esi
call fcn.004354ff
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043f959
add esp, 0xc
jmp 0x433f97
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x433f97
cmp ebp, 0xffffffff
je 0x433f97
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45ff04]
push dword [esi]
call fcn.0042e960
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43f959
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004349c1
xor ebx, ebx
cmp dword [0x464354], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43fa2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43fb0f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43fb0f
push eax
call fcn.00434953
mov dword [esp], 0x44e338
push edi
mov dword [0x464354], eax
call esi
push eax
call fcn.00434953
mov dword [esp], 0x44e324
push edi
mov dword [0x464358], eax
call esi
push eax
call fcn.00434953
mov dword [0x46435c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042e6ce
test eax, eax
pop ecx
pop ecx
je 0x43f9fd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004354ff
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43fa2f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00434953
cmp eax, ebx
pop ecx
mov dword [0x464364], eax
je 0x43fa2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00434953
pop ecx
mov dword [0x464360], eax
mov eax, dword [0x464360]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43fab4
cmp dword [0x464364], ecx
je 0x43fab4
push eax
call fcn.004349ca
push dword [0x464364]
mov esi, eax
call fcn.004349ca
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43fab4
cmp edi, ebx
je 0x43fab4
call esi
cmp eax, ebx
je 0x43fa81
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43fa81
test byte [ebp - 0x18], 1
jne 0x43fab4
lea eax, [ebp - 0x10]
push eax
call fcn.0042e705
test eax, eax
pop ecx
je 0x43fa9c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004354ff
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43faab
or dword [ebp + 0x10], 0x200000
jmp 0x43faef
or dword [ebp + 0x10], 0x40000
jmp 0x43faef
mov eax, dword [0x464358]
cmp eax, dword [ebp - 8]
je 0x43faef
push eax
call fcn.004349ca
cmp eax, ebx
pop ecx
je 0x43faef
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43faef
mov eax, dword [0x46435c]
cmp eax, dword [ebp - 8]
je 0x43faef
push eax
call fcn.004349ca
cmp eax, ebx
pop ecx
je 0x43faef
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x464354]
call fcn.004349ca
cmp eax, ebx
pop ecx
je 0x43fb0f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43fb11
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x445216
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45fd70]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004451ab
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042e320
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x445265
cmp dword [ebp - 0x1c], 5
jb 0x44527d
jmp 0x445279
cmp dword [ebp - 0x10], 1
jne 0x44527d
cmp dword [ebp - 0x1c], 4
ja 0x445279
jne 0x44527d
cmp dword [ebp - 0x18], 0
jbe 0x44527d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44f380
call fcn.0044509c
test eax, eax
jge 0x44529e
mov byte [0x464678], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042d810
add ebp, 0x78
leave
ret
Function at 0x683460
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x195000]
push edi
or ebp, 0xffffffff
jmp 0x683482
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x683489
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x683478
mov eax, 1
add ebx, ebx
jne 0x68349b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6834ac
jne 0x6834cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6834cb
dec eax
add ebx, ebx
jne 0x6834b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x683490
add ebx, ebx
jne 0x6834c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x68351d
xor ecx, ecx
sub eax, 3
jb 0x6834e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x683552
sar eax, 1
mov ebp, eax
jmp 0x6834ee
add ebx, ebx
jne 0x6834ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6834bc
inc ecx
add ebx, ebx
jne 0x6834fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6834bc
add ebx, ebx
jne 0x683509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6834fe
jne 0x68351a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6834fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x68353c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x68352e
jmp 0x68347e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x68353c
add edi, ecx
jmp 0x68347e
pop esi
mov edi, esi
mov ecx, 0x63c0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x68355a
cmp byte [edi], 0xa
jne 0x68355a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x68355f
lea edi, [esi + 0x27a000]
mov eax, dword [edi]
or eax, eax
je 0x6835d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x287b64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x287ca4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x68358c
mov ecx, edi
jns 0x6835bb
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 + 0x287ca8]
or eax, eax
je 0x6835d1
mov dword [ebx], eax
add ebx, 4
jmp 0x6835a9
call dword [esi + 0x287cb8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x683608
cmp al, 0xef
ja 0x6835fb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6835dd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6835ea
mov ebp, dword [esi + 0x287cac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x68363c
sub esp, 0xffffff80
jmp 0x4ac3f3
Function at 0x401460
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x64040]
cmp eax, 4
ja case.default.0x401471
jmp dword [eax*4 + 0x4015e8]
mov eax, dword [esi + 0x64068]
test eax, eax
jbe 0x40148a
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [esi + 0x64074]
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esi + 0x64068], eax
ja 0x4014d5
push 0x41209c
mov ecx, dword [esi + 0x64044]
call fcn.0040be10
xor edi, edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
pop edi
pop esi
ret
push 0xc
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, esi
call fcn.004018a0
mov ecx, esi
call fcn.004016d0
mov edi, eax
test edi, edi
jle 0x40155f
mov eax, dword [esi + 0x6403c]
test eax, eax
jne 0x40150c
push 0x41208c
mov ecx, dword [esi + 0x64044]
call fcn.0040be10
cmp edi, 1
jne case.default.0x401471
mov eax, dword [esi + 4]
test eax, eax
jne case.default.0x401471
push 0
push 4
push 0
push 2
push esi
push 0x401e70
mov dword [esi + 0x64078], 1
mov dword [esi + 4], 1
mov dword [esi + 8], 0
call sub.MFC42.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 8], eax
jne 0x4015c6
mov ecx, dword [esi + 0x64044]
push 0x412078
call fcn.0040be10
pop edi
xor eax, eax
pop esi
ret
push 0x412064
jmp 0x401501
mov ecx, esi
call fcn.00401b20
test eax, eax
jle 0x4015bc
jmp 0x401598
mov ecx, esi
call fcn.00401c10
test eax, eax
jle 0x4015bc
jmp 0x401598
mov ecx, esi
call fcn.00401d30
test eax, eax
jle 0x4015bc
jmp 0x401598
mov ecx, esi
call fcn.00401dc0
test eax, eax
jle 0x4015bc
mov eax, dword [esi + 0x6403c]
test eax, eax
jne 0x4015b2
mov ecx, dword [esi + 0x64044]
push 0x412058
call fcn.0040be10
mov edi, 1
jmp 0x401511
push 0x41204c
jmp 0x4014b8
mov ecx, dword [esi + 0x64044]
push 0x412040
call fcn.0040be10
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4017d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov dword [esp + 4], 0
mov eax, dword [esi + 4]
test eax, eax
jne 0x4017ee
xor eax, eax
pop esi
add esp, 0x14
ret 8
mov edx, dword [esi + 0x64068]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jb 0x401813
mov eax, ecx
test eax, eax
mov dword [esp + 4], eax
push edi
jbe 0x401893
mov edx, dword [esp + 0x20]
lea edi, [esi + 0x20]
lea ecx, [esp + 8]
push edi
push ecx
push eax
mov eax, dword [esi + 0x64068]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40188f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40185c
mov ecx, dword [esi + 0x30]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401866
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 8
mov eax, dword [esi + 0x64068]
lea edx, [esp + 8]
push 0
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0x28]
add ecx, eax
pop edi
mov dword [esi + 0x28], ecx
pop esi
add esp, 0x14
ret 8
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x14
ret 8