joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035d0
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x49d4dc]
mov ecx, dword [0x49a3e4]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x4036bf
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x49d4dc], 0x959
jne 0x4036a5
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
lea eax, [esp + 0x1c]
push eax
push 0
call esi
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea edx, [esp + 0x43c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call esi
push 0
push 0x402cb0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov eax, dword [esp + 0x14]
push eax
call fcn.00403420
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x403610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x40729c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430238]
jne 0x4072a6
repz ret
jmp fcn.0040c5a5

Function at 0x40d09f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a7b8
and dword [ebp - 4], 0
cmp dword [0x433278], 0
mov ebx, eax
jne 0x40d150
push 0x4024b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d201
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024a8
push edi
call esi
test eax, eax
je 0x40d201
push eax
call fcn.0040a746
mov dword [esp], 0x402498
push edi
mov dword [0x433278], eax
call esi
push eax
call fcn.0040a746
mov dword [esp], 0x402484
push edi
mov dword [0x43327c], eax
call esi
push eax
call fcn.0040a746
mov dword [esp], 0x402468
push edi
mov dword [0x433280], eax
call esi
push eax
call fcn.0040a746
pop ecx
mov dword [0x433288], eax
test eax, eax
je 0x40d150
push 0x402450
push edi
call esi
push eax
call fcn.0040a746
pop ecx
mov dword [0x433284], eax
mov eax, dword [0x433284]
cmp eax, ebx
je 0x40d1a8
cmp dword [0x433288], ebx
je 0x40d1a8
push eax
call fcn.0040a7c1
push dword [0x433288]
mov esi, eax
call fcn.0040a7c1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d1a8
test edi, edi
je 0x40d1a8
call esi
test eax, eax
je 0x40d19f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d19f
test byte [ebp - 0xc], 1
jne 0x40d1a8
or dword [ebp + 0x10], 0x200000
jmp 0x40d1e1
mov eax, dword [0x43327c]
cmp eax, ebx
je 0x40d1e1
push eax
call fcn.0040a7c1
pop ecx
test eax, eax
je 0x40d1e1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d1e1
mov eax, dword [0x433280]
cmp eax, ebx
je 0x40d1e1
push eax
call fcn.0040a7c1
pop ecx
test eax, eax
je 0x40d1e1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433278]
call fcn.0040a7c1
pop ecx
test eax, eax
je 0x40d201
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d203
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401800
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4033d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x408c9c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x408c98], ecx
shl ecx, 8
add ecx, edx
mov dword [0x408c94], ecx
shr eax, 0x10
mov dword [0x408c90], eax
call fcn.004032a0
test eax, eax
jne 0x40186a
push 0x1c
call fcn.00401920
add esp, 4
mov dword [ebp - 4], 0
call fcn.004030a0
call fcn.00403090
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40a084], eax
call fcn.00402c60
mov dword [0x408c68], eax
test eax, eax
je 0x40189d
mov eax, dword [0x40a084]
test eax, eax
jne 0x4018a7
push 0xffffffffffffffff
call fcn.00402620
add esp, 4
call fcn.004029b0
call fcn.004028c0
call fcn.004025f0
mov eax, dword [0x408cac]
mov dword [0x408cb0], eax
push eax
mov eax, dword [0x408ca4]
push eax
mov ecx, dword [0x408ca0]
push ecx
call section..text
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.00402620
jmp 0x401902
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402660
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x408ccc]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40267f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x408cc8], 1
mov byte [0x408cc4], bl
jne 0x4026d9
mov ecx, dword [0x409068]
test ecx, ecx
je 0x4026c7
mov esi, dword [0x409064]
sub esi, 4
cmp esi, ecx
jb 0x4026c7
mov eax, dword [esi]
test eax, eax
je 0x4026c0
call eax
mov ecx, dword [0x409068]
sub esi, 4
cmp esi, ecx
jae 0x4026b2
push 0x40601c
push 0x406014
call fcn.00402710
add esp, 8
push 0x406024
push 0x406020
call fcn.00402710
add esp, 8
test ebx, ebx
jne 0x402700
push ebp
mov dword [0x408ccc], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x402c60
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x408de0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402ca2
call edi
mov esi, eax
test esi, esi
je 0x402c8c
mov eax, 1
jmp 0x402c9d
call ebp
mov ebx, eax
test ebx, ebx
je 0x402daf
mov eax, 2
mov dword [0x408de0], eax
cmp eax, 1
jne 0x402d42
test esi, esi
jne 0x402cbb
call edi
mov esi, eax
test esi, esi
je 0x402daf
cmp word [esi], 0
mov eax, esi
je 0x402cd5
add eax, 2
cmp word [eax], 0
jne 0x402cc3
add eax, 2
cmp word [eax], 0
jne 0x402cc3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402d34
push edi
call fcn.004036d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402d34
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402d26
push ebx
call fcn.00403cb0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x402daf
test ebx, ebx
jne 0x402d53
call ebp
mov ebx, eax
test ebx, ebx
je 0x402daf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x402d6b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402d5b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402d5b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004036d0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x402d8d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4034f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x406808
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x403514
add eax, 8
inc ebp
cmp eax, 0x406898
jb 0x403505
cmp ecx, dword [ebp*8 + 0x406808]
jne 0x4036bb
mov eax, dword [0x408c70]
cmp eax, 1
je 0x40367d
test eax, eax
jne 0x403540
cmp dword [0x4063d8], 1
je 0x40367d
cmp ecx, 0xfc
je 0x4036bb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40357b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4035c4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x405358
add ebx, ecx
push ebx
call fcn.004044b0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405338
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40680c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404420
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x408f60]
test eax, eax
je 0x40368e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403698
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40680c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x404630
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x409060]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4047dd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x408f60]
lea edi, [ecx*4 + 0x408f60]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4047dd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40469e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x4046af
push 2
push ebp
push eax
call fcn.00404860
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40480e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x404759
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40470a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4046f7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4046da
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4047ff
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x404755
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4046d6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4047ce
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4047a2
cmp eax, 5
jne 0x40478b
mov dword [0x408c88], eax
mov dword [0x408c84], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00404af0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4047c2
cmp byte [ebp], 0x1a
jne 0x4047c2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x408c84], 0x1c
jmp 0x4047e7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x408c84], 9
pop edi
pop esi
pop ebp
mov dword [0x408c88], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404755
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40483f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x404759
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404759
Function at 0x1012390c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101809c0]
jne 0x10123916
repz ret
jmp fcn.10123bbd
Function at 0x10124099
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
mov dword [0x10180998], 0x132a
mov dword [0x10180994], 0x3614
mov dword [ebp - 0x130], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jmp 0x101241df
lea eax, [0x10126623]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], ecx
call fcn.101246c0
mov eax, dword [ebp - 0x13c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x148]
mov dword [esp + 0xc], edx
call fcn.10124c93
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0x23aa6
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x137400
mov ecx, dword [ebp - 0x144]
add ecx, 0xaa69
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f50
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x12c]
mov dword [0x10180998], 0x156a
mov dword [ebp - 0x14c], eax
call fcn.10124934
mov dword [esp], eax
mov eax, dword [ebp - 0x14c]
mov dword [esp + 4], eax
call fcn.10125239
mov ecx, eax
mov dword [0x101809b4], eax
mov eax, esp
mov edx, dword [ebp - 0x148]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x154], ecx
jmp 0x1012427f
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x178
mov edi, edx
add edi, esi
add edi, 0xc0
mov esi, dword [edi]
imul edi, eax, 0x178
add edx, edi
add edx, 0xbc
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x3d0
mov ecx, edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x101241df
xor eax, eax
mov dword [0x10180994], 0x1177
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov cl, byte [eax + 0x10126644]
mov dl, byte [eax + 0x10126615]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x158], eax
je 0x1012416c
jmp 0x1012424a
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
lea edx, section..data
imul esi, ecx, 0x178
mov edi, edx
add edi, esi
add edi, 0x2c
mov esi, dword [ebp - 0x144]
add esi, eax
mov ebx, ecx
add ebx, 1
mov dword [ebp - 0x15c], eax
imul eax, ecx, 0x178
mov dword [ebp - 0x160], eax
mov eax, edx
mov dword [ebp - 0x164], ecx
mov ecx, dword [ebp - 0x160]
add eax, ecx
add eax, 0xc0
mov ecx, dword [ebp - 0x164]
imul ecx, ecx, 0x178
add edx, ecx
add edx, 0xbc
mov eax, dword [eax]
mov ecx, dword [edi]
movzx edx, word [edx]
xor edx, eax
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], ebx
call fcn.10124c07
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x15c]
add eax, ecx
mov edx, dword [ebp - 0x16c]
cmp edx, 0x3d0
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x154], eax
je 0x101240d7
jmp 0x1012427f
Function at 0x10124342
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
call fcn.1000108e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x101243a4
jmp 0x101244d3
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
jne 0x1012444b
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x18], ecx
je 0x10124462
jmp 0x1012444b
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x101244d3
lea eax, [esp + 0x38]
mov ecx, dword [0x10180994]
add ecx, 0xffffefd3
mov dword [0x10180994], ecx
mov dword [esp + 0x10], eax
call fcn.10124828
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
jne 0x10124397
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.10124099
lea ecx, [0x10125458]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], 0x137400
mov dword [0x10180994], 0x15a6
mov edx, dword [0x10180980]
mov dword [esp + 0x5c], edx
mov edx, dword [0x10180984]
mov dword [esp + 0x38], edx
mov edx, dword [0x10180988]
mov dword [esp + 0x74], edx
mov edx, dword [0x1018098c]
mov dword [esp + 0x7c], edx
mov edx, dword [0x10180990]
mov dword [esp + 0x64], edx
mov dword [0x10180998], 0x109b
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
jmp 0x10124367
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x20], eax
jmp 0x10124367
lea eax, [esp + 0x38]
add eax, 0x40
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x1c]
mov dword [ecx], edx
mov dword [0x10180994], 0xfffff682
mov esi, dword [esp + 0x18]
mov edi, dword [edx + esi + 0x50]
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.10124eeb
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x10180994]
add ecx, 0xffffe5c3
mov dword [0x10180998], ecx
mov dword [esp + 0x14], eax
jmp 0x10124397
mov eax, dword [esp + 0x24]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x10124553
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.10125020
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1012458f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x10180998], 0x370c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x10180994], 0x1fed
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x10124602
jmp 0x10124637
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x10124666
jmp 0x1012460d
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x42]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x38], eax
jne 0x101245d7
jmp 0x10124666
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
jmp 0x101245d7
mov al, byte [ebp - 0x42]
test al, 1
jne 0x10124698
jmp 0x1012466f
xor eax, eax
mov ecx, dword [ebp - 0x54]
add ecx, 2
mov edx, dword [ebp - 0x50]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edx
jb 0x10124647
jmp 0x10124602
mov eax, dword [ebp - 0x54]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x10180994], 0x1415
mov dword [ebp - 0x34], edi
jmp 0x10124602
Function at 0x101246c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x10180998]
add edi, 0x53c
mov dword [0x10180998], edi
mov dword [0x101809a0], 0
mov byte [0x101809a4], 0
mov dword [0x1018099c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101247e4
xor eax, eax
mov dword [0x10180994], 0x182
mov dword [0x1018099c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101809a8], 0
mov edx, dword [0x101809a0]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x101809a8], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x101809a0], edx
mov dword [0x10180994], 0x918
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x101809a4], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov dword [0x10180994], 0x16c8
mov cl, byte [0x101809a4]
mov edx, dword [0x101809a0]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x1018099c]
add edx, 1
mov dword [0x1018099c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1012472b
mov dword [0x10180994], 0x26c
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [0x10180998], 0x1e35
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10180998]
add eax, 0x325
mov dword [0x10180998], eax
mov eax, dword [0x1018099c]
add eax, 1
mov dword [0x1018099c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101247e4
jmp 0x10124712