joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10051420
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x10051460
cmp ebp, ebx
jne 0x10051460
mov eax, dword [esp + 0x334]
call fcn.10051400
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x1005147b
mov esi, edi
call fcn.10051660
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x100514af
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x100514f6
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x100514de
cmp dword [esp + eax*4 + 0x24], ebp
je 0x100514de
add eax, 1
cmp eax, ecx
jb 0x100514d1
cmp eax, ecx
jne 0x100514f0
cmp ecx, 0x40
jae 0x100514f0
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x100514f6
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, eax
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x10051541
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x1005154b
jne 0x1005154b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x100515b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1005157e
cmp eax, 0x2714
jne 0x100515b9
test edi, edi
jle 0x10051510
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.10051660
push edx
push eax
call fcn.10051690
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x10051510
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x100515c7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x100515d6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x1005160d
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100515fb
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1005160d
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x10051640
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1005162e
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10051640
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x100520c0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x100520cf
jmp dword [ecx*4 + 0x10052124]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x100539d0
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x1005574a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008f3a0]
jne 0x10055754
repz ret
jmp fcn.10061098
Function at 0x10061498
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 + 0x1008fef8]
je 0x100614b3
inc edi
cmp edi, 0x17
jb 0x100614a4
cmp edi, 0x17
jae 0x10061633
push ebp
push 3
call fcn.10070968
cmp eax, 1
pop ecx
je 0x100615ff
push 3
call fcn.10070968
test eax, eax
pop ecx
jne 0x100614e7
cmp dword [0x100918ac], 1
je 0x100615ff
cmp ebx, 0xfc
je 0x10061632
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10091ea0
push ebp
call fcn.1005a3e8
add esp, 0xc
test eax, eax
je 0x1006151d
push esi
push esi
push esi
push esi
push esi
call fcn.10055e38
add esp, 0x14
push 0x104
mov esi, 0x10091eb9
push esi
push 0
mov byte [0x10091fbd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10061561
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1005a3e8
add esp, 0xc
test eax, eax
je 0x10061561
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10055e38
add esp, 0x14
push esi
call fcn.1005be30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100615a6
push esi
call fcn.1005be30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100921b4
push 0x1007f0fc
sub ecx, eax
push ecx
push eax
call fcn.10055a41
add esp, 0x14
test eax, eax
je 0x100615a6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10055e38
add esp, 0x14
jmp 0x100615a8
xor esi, esi
push 0x1007f0f8
push ebx
push ebp
call fcn.100647f0
add esp, 0xc
test eax, eax
je 0x100615c8
push esi
push esi
push esi
push esi
push esi
call fcn.10055e38
add esp, 0x14
push dword [edi*8 + 0x1008fefc]
push ebx
push ebp
call fcn.100647f0
add esp, 0xc
test eax, eax
je 0x100615ea
push esi
push esi
push esi
push esi
push esi
call fcn.10055e38
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.100707ab
add esp, 0xc
jmp 0x10061632
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10061632
cmp ebp, 0xffffffff
je 0x10061632
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008fefc]
push dword [esi]
call fcn.1005be30
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 0x100707ab
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1005e22d
xor ebx, ebx
cmp dword [0x10092338], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10070881
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10070961
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10070961
push eax
call fcn.1005e1bf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10092338], eax
call esi
push eax
call fcn.1005e1bf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1009233c], eax
call esi
push eax
call fcn.1005e1bf
mov dword [0x10092340], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10061245
test eax, eax
pop ecx
pop ecx
je 0x1007084f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10055e38
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10070881
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1005e1bf
cmp eax, ebx
pop ecx
mov dword [0x10092348], eax
je 0x10070881
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1005e1bf
pop ecx
mov dword [0x10092344], eax
mov eax, dword [0x10092344]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10070906
cmp dword [0x10092348], ecx
je 0x10070906
push eax
call fcn.1005e236
push dword [0x10092348]
mov esi, eax
call fcn.1005e236
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10070906
cmp edi, ebx
je 0x10070906
call esi
cmp eax, ebx
je 0x100708d3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100708d3
test byte [ebp - 0x18], 1
jne 0x10070906
lea eax, [ebp - 0x10]
push eax
call fcn.1006127c
test eax, eax
pop ecx
je 0x100708ee
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10055e38
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100708fd
or dword [ebp + 0x10], 0x200000
jmp 0x10070941
or dword [ebp + 0x10], 0x40000
jmp 0x10070941
mov eax, dword [0x1009233c]
cmp eax, dword [ebp - 8]
je 0x10070941
push eax
call fcn.1005e236
cmp eax, ebx
pop ecx
je 0x10070941
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10070941
mov eax, dword [0x10092340]
cmp eax, dword [ebp - 8]
je 0x10070941
push eax
call fcn.1005e236
cmp eax, ebx
pop ecx
je 0x10070941
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10092338]
call fcn.1005e236
cmp eax, ebx
pop ecx
je 0x10070961
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10070963
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, 0x418ca0
inc ebx
cmp byte [ebx], 0
je 0x40104d
call 0x401015
pop esi
add esi, 0x4a
mov ecx, 0xee1d
sub esp, ecx
sub esp, 3
mov al, byte [ebx + 1]
mov ah, byte [ebx + 2]
not al
add al, ah
sar al, 1
mov bl, byte [esi + ecx]
add bl, al
xor bl, ah
inc al
mov byte [esp + ecx - 1], bl
loop 0x40102f
mov edx, fcn.00401fe0
sub edx, esi
mov ebx, esp
add ebx, edx
dec ebx
push esp
call ebx
xor eax, eax
push eax
call fcn.00401fe0
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x411fa1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00410ec6
xor ebx, ebx
cmp dword [0x41ab54], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x412076
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x411fe1
xor eax, eax
jmp 0x41213a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x411fda
push eax
call fcn.00410e63
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41ab54], eax
call esi
push eax
call fcn.00410e63
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41ab58], eax
call esi
push eax
call fcn.00410e63
mov dword [0x41ab5c], eax
lea eax, [ebp - 8]
push eax
call fcn.00410175
test eax, eax
pop ecx
pop ecx
je 0x412044
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041188b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x412076
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00410e63
cmp eax, ebx
pop ecx
mov dword [0x41ab64], eax
je 0x412076
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410e63
pop ecx
mov dword [0x41ab60], eax
mov eax, dword [0x41ab60]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4120ef
cmp dword [0x41ab64], esi
je 0x4120ef
push eax
call fcn.00410ecf
pop ecx
call eax
cmp eax, ebx
je 0x4120bc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41ab64]
call fcn.00410ecf
pop ecx
call eax
test eax, eax
je 0x4120bc
test byte [ebp - 0x18], 1
jne 0x4120ef
lea eax, [ebp - 0xc]
push eax
call fcn.004101ac
test eax, eax
pop ecx
je 0x4120d7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041188b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4120e6
or dword [ebp + 0x10], 0x200000
jmp 0x412120
or dword [ebp + 0x10], 0x40000
jmp 0x412120
mov eax, dword [0x41ab58]
cmp eax, esi
je 0x412120
push eax
call fcn.00410ecf
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x412120
mov eax, dword [0x41ab5c]
cmp eax, esi
je 0x412120
push dword [ebp - 4]
push eax
call fcn.00410ecf
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41ab54]
call fcn.00410ecf
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413dea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418a58]
jne 0x413df4
repz ret
jmp fcn.00415425
Function at 0x100015f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
je 0x100015ff
xor eax, eax
pop ebp
ret 0xc
push 0
push 0
push 0
push 0x10001510
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10002150
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10006040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
xor ebx, ebx
push ebx
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100022cc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10002267
mov ebx, 1
cmp dword [ebp - 0x20], 0x10
jb 0x1000222a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1000222a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000222a
mov edx, dword [esi]
test edx, edx
jne 0x100021f6
push 0x200
push edx
push dword [0x100066a4]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1000224f
jmp 0x1000221e
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1000221e
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100066a4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1000224f
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100021b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10002267
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10002267
push eax
push ebx
push dword [0x100066a4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100022cc
cmp dword [esi], 0
je 0x100022b9
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100022b9
nop
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100022b3
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10001fe0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10002280
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002b55
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002b55
mov esp, ebp
pop ebp
ret
Function at 0x100022f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10006040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x100066b0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000234c
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002b55
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10002367
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002b55
mov esp, ebp
pop ebp
ret

Function at 0x100023a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x100066b8]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x100023cd
mov eax, dword [0x100066b0]
add eax, 0x14
nop dword [eax + eax]
test byte [eax], 2
je 0x100023d4
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x100023c0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x100023cd
push ebx
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10002150
mov ebx, eax
mov dword [ebp - 4], eax
add esp, 4
test ebx, ebx
jne 0x1000248f
mov ecx, dword [0x100066b8]
push edi
cmp esi, ecx
jae 0x1000243a
imul edi, esi, 0x2c
nop word [eax + eax]
mov eax, dword [0x100066b0]
test byte [edi + eax + 0x14], 2
jne 0x1000242f
mov ecx, esi
call fcn.100022f0
mov ebx, eax
test ebx, ebx
jne 0x10002437
mov ecx, dword [0x100066b8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10002410
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000248c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1000247d
mov ebx, eax
nop word [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10002471
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10002450
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x100066a4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
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 + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402c3d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 8]
call fcn.004027f4
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040283f
push eax
push esi
push dword [ebp + 8]
call fcn.004027f4
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040282f
invalid

Function at 0x402e7c
Capabilities:
Inspect section memory permissions

Disassembly:
sti
adc esi, edx
sbb eax, 0xa0878b
invalid
Function at 0x401290
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x24]
mov ax, word [ecx + 6]
mov ecx, dword [ecx + 0x54]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*8]
mov eax, dword [esp + 0x18]
push edx
push eax
push edi
call sub.MSVCRT.dll_memmove
mov ecx, dword [esi + 0x24]
xor ebp, ebp
add esp, 0xc
cmp word [ecx + 6], bp
jbe 0x401307
push ebx
xor ebx, ebx
mov edx, dword [esi + 0x28]
mov ecx, dword [edx + ebx + 0xc]
lea eax, [edx + ebx]
test ecx, ecx
je 0x4012f5
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4012f5
mov eax, dword [eax + 0x14]
push edx
mov edx, dword [esp + 0x20]
add ecx, edi
add eax, edx
push eax
push ecx
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov ecx, dword [esi + 0x24]
xor edx, edx
inc ebp
add ebx, 0x28
mov dx, word [ecx + 6]
cmp ebp, edx
jl 0x4012ca
pop ebx
mov dword [esi + 0x20], edi
mov eax, dword [edi + 0x3c]
add eax, edi
pop edi
mov dword [esi + 0x24], eax
add eax, 0xf8
mov dword [esi + 0x28], eax
pop esi
pop ebp
ret

Function at 0x401440
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 0x40
jae 0x401452
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edx + 0x20], eax
cmp word [eax], 0x5a4d
je 0x40146a
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [eax + 0x3c]
lea esi, [ecx + 0xf8]
cmp edi, esi
jae 0x40147d
pop edi
pop esi
xor eax, eax
pop ebx
ret
add eax, ecx
mov dword [edx + 0x24], eax
cmp dword [eax], 0x4550
je 0x401490
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov cx, word [eax + 0x16]
test ch, 0x20
jne 0x40149f
pop edi
pop esi
xor eax, eax
pop ebx
ret
test cl, 2
jne 0x4014aa
pop edi
pop esi
xor eax, eax
pop ebx
ret
cmp word [eax + 0x14], 0xe0
je 0x4014b8
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea esi, [eax + 0xf8]
xor eax, eax
mov dword [edx + 0x28], esi
mov edx, dword [edx + 0x24]
xor ecx, ecx
mov ax, word [edx + 6]
test eax, eax
jle 0x4014e6
lea edx, [esi + 0x10]
mov esi, dword [edx + 4]
mov ebx, dword [edx]
add esi, ebx
cmp esi, edi
ja 0x4014b2
inc ecx
add edx, 0x28
cmp ecx, eax
jl 0x4014d3
pop edi
pop esi
mov eax, 1
pop ebx
ret