joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300f7dd0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3017630b
call fcn.30118c00
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x3001f1d0
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 4
call fcn.3005674a
lea ecx, [esi + 0x2c]
call fcn.300f649f
push dword [esi + 0x28]
mov byte [ebp - 4], 3
call fcn.30134ce8
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call fcn.300c1990
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.300c1990
lea ecx, [esi + 8]
mov byte [ebp - 4], 0
call fcn.300c1990
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call fcn.300c1990
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x300fe018
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x30176b30
call fcn.30118c00
sub esp, 0x40
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x6e], bl
je 0x300fe103
cmp byte [esi + 0x10e], bl
jne 0x300fe103
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0xd0]
push edi
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x94]
push eax
lea ecx, [ebp - 0x30]
call fcn.3006b7be
jmp 0x300fe0e0
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x7c], bl
jne 0x300fe0ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x10]
cmp eax, 0x1d4c
ja 0x300fe113
push ebx
mov eax, 0x100
push eax
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x300fe0a9
cmp dword [ebp - 0x44], 0x1b
je 0x300fe11c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x94]
cmp eax, dword [ebp + 8]
jg 0x300fe0ee
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x7c]
test al, al
jne 0x300fe0e0
lea ecx, [ebp - 0x1c]
call fcn.300fd10f
mov eax, dword [edi]
push ebx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [eax + 0x88]
lea ecx, [ebp - 0x30]
call fcn.3006b7d2
mov edi, eax
cmp edi, ebx
jne 0x300fe070
lea ecx, [ebp - 0x1c]
call fcn.300fd13d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.300fd13d
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
mov byte [esi + 0x10e], 1
jmp 0x300fe0ee
call fcn.3006ce16
int3
Function at 0x30106efc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
sar eax, 4
and esi, 0xf
inc eax
push 0
movzx eax, ax
push eax
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x30106f33
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x30106f37
xor eax, eax
jmp 0x30106f79
test esi, esi
jle 0x30106f45
dec esi
movzx ecx, word [eax]
lea eax, [eax + ecx*2 + 2]
jne 0x30106f3b
mov ecx, dword [ebp + 0x10]
push ebx
movzx ebx, word [eax]
dec ecx
cmp ecx, ebx
push edi
jge 0x30106f54
mov ebx, ecx
mov edi, dword [ebp + 0xc]
lea edx, [ebx + ebx]
lea esi, [eax + 2]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and word [edx + eax], 0
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x30109ee5
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [section..cdata]
push ebx
push esi
mov ebx, ecx
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
push dword [eax + 0x14]
lea ecx, [ebx + 4]
push dword [eax + 0x18]
push esi
push ecx
call fcn.30109b22
test eax, eax
je 0x30109f74
cmp dword [ebx + 0x24], esi
jne 0x30109f6b
push edi
push 0x10
call fcn.30134c8b
lea ecx, [ebp - 0x6c]
mov dword [ebx + 0x20], eax
call fcn.30139cc0
push 0x10
mov edx, 0x301d4d3c
lea ecx, [ebp - 0x6c]
call fcn.30139cf0
push 0x10
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x6c]
call fcn.30139cf0
lea ecx, [ebp - 0x6c]
call fcn.30139da0
mov edi, dword [ebx + 0x20]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
pop eax
movsd dword es:[edi], dword [esi]
push dword [ebx + 0x20]
mov dword [ebx + 0x24], eax
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
pop edi
push dword [ebp + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x14]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.30118d85
leave
ret 4
Function at 0x3010ae3a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x3017745c
call fcn.30118c00
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 4]
cdq
sub eax, edx
sar eax, 1
test eax, eax
push edi
jle 0x3010ae62
push ecx
call dword [0x30193270]
mov eax, dword [0x301913c0]
mov dword [ebp - 0x14], eax
push 1
mov edi, 0x104
xor ebx, ebx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.30135181
push dword [ebp - 0x14]
push edi
call dword [0x301932b4]
neg eax
sbb al, al
inc al
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], al
call fcn.3013520f
cmp byte [ebp - 0xd], bl
jne 0x3010afba
push 0x30020614
lea ecx, [ebp - 0x14]
call fcn.30136ba1
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x14]
call dword [0x30193268]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x3010afba
push dword [ebp - 0x14]
lea ecx, [esi + 8]
call fcn.3013622b
mov eax, dword [esi + 4]
mov eax, dword [eax - 4]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
push ebx
jae 0x3010af46
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push dword [esi]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x3010afba
cmp dword [ebp - 0x18], 2
jne 0x3010afba
mov eax, dword [esi + 4]
push ebx
lea ecx, [ebp - 0x18]
push ecx
add edi, edi
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x3010afba
cmp dword [ebp - 0x18], edi
je 0x3010afa4
jmp 0x3010afba
mov eax, dword [esi + 4]
push ebx
push ebx
push ebx
push edi
push eax
push ebx
push ebx
call fcn.30135389
mov dword [ebp - 0x18], eax
inc eax
push eax
call fcn.30134c8b
mov edi, eax
mov dword [ebp - 0x20], edi
mov eax, dword [esi + 4]
push ebx
push ebx
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
push edi
push 0xffffffffffffffff
push eax
push ebx
push ebx
call fcn.30135389
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x3010afb1
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], eax
jne 0x3010afb1
push edi
mov byte [ebp - 4], bl
call fcn.30134ce8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
jmp 0x3010afba
push edi
mov byte [ebp - 4], bl
call fcn.30134ce8
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, dword [0x301913c0]
je 0x3010afd2
add eax, 0xfffffff8
push eax
call fcn.30134ce8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x3010ba3a
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x30177540
call fcn.30118c00
sub esp, 0xd4
mov eax, dword [section..cdata]
push ebx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
call fcn.3010ab58
cmp al, bl
mov byte [ebp - 0xe0], al
jne 0x3010baba
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xdc]
call fcn.30136803
push 1
push ebx
push 0x30020650
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], ebx
call fcn.30136555
cmp eax, 0xffffffff
mov eax, dword [ebp - 0xdc]
sete byte [ebp - 0xd5]
or dword [ebp - 4], 0xffffffff
cmp eax, dword [0x301913c0]
je 0x3010bab2
add eax, 0xfffffff8
push eax
call fcn.30134ce8
cmp byte [ebp - 0xd5], bl
je 0x3010baf8
lea ecx, [ebp - 0xd4]
call fcn.3010b038
push dword [ebp - 0xe0]
lea ecx, [ebp - 0xd4]
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
push dword [ebp + 8]
call fcn.3010b78b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
mov bl, al
call fcn.3010b124
mov al, bl
jmp 0x3010bafa
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.30118d85
leave
ret 8
Function at 0x3010f06e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [section..cdata]
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, 0x400
cmp si, dx
mov dword [ebp - 4], eax
push edi
movzx ecx, si
jb 0x3010f0a1
mov eax, ecx
and ah, 3
or eax, edx
mov dword [ebp - 0x110], eax
jmp 0x3010f0a7
mov dword [ebp - 0x110], ecx
mov eax, dword [0x301d50ac]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10c], eax
mov eax, 0x100
cmp edx, eax
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x108], eax
ja 0x3010f0d0
mov dword [ebp - 0x108], edx
mov eax, dword [ebp + 0x10]
and word [eax], 0
cmp byte [0x30193c02], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, dword [0x30193290]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x104], 0
je 0x3010f0fe
push edx
push eax
push edi
push ecx
call esi
jmp 0x3010f10f
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push eax
push edi
push ecx
call ebx
test eax, eax
jne 0x3010f1c1
push dword [ebp + 8]
push edi
call fcn.3010e066
test eax, eax
mov dword [ebp + 0xc], eax
jle 0x3010f1c1
cmp byte [0x30193c02], 0
je 0x3010f147
push dword [ebp + 0x14]
movzx eax, word [ebp - 0x110]
push dword [ebp + 0x10]
push edi
push eax
call esi
jmp 0x3010f15f
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push eax
movzx eax, word [ebp - 0x110]
push edi
push eax
call ebx
test eax, eax
jne 0x3010f1c1
cmp dword [ebp + 0xc], 1
jle 0x3010f1c1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.3010ee4f
test eax, eax
jne 0x3010f1c1
cmp dword [ebp + 0xc], 2
jle 0x3010f1c1
cmp byte [0x30193c02], al
je 0x3010f19d
push dword [ebp + 0x14]
movzx eax, word [ebp - 0x10c]
push dword [ebp + 0x10]
push edi
push eax
call esi
jmp 0x3010f1b5
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push eax
movzx eax, word [ebp - 0x10c]
push edi
push eax
call ebx
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x114], eax
cmp byte [ebp - 0x104], 0
je 0x3010f226
cmp edi, 0x38
jb 0x3010f1d4
cmp edi, 0x43
jbe 0x3010f1f2
cmp edi, 0x44
jb 0x3010f1de
cmp edi, 0x4f
jbe 0x3010f1f2
cmp edi, 0x2a
jb 0x3010f1e8
cmp edi, 0x30
jbe 0x3010f1f2
cmp edi, 0x31
jb 0x3010f20c
cmp edi, 0x37
ja 0x3010f20c
push dword [ebp - 0x114]
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.3010ee1f
jmp 0x3010f21e
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push dword [ebp + 0x10]
push eax
call fcn.3010c080
push dword [ebp + 0x10]
call fcn.30134cfe
push dword [ebp + 0x10]
call fcn.30134cfe
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.30118d85
leave
ret 0x10
Function at 0x3011195d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x30193adc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, 0x25e
movzx eax, ax
push 0x104
push eax
push esi
call dword [0x30193280]
mov ebx, eax
test ebx, ebx
jne 0x301119ae
call edi
cmp eax, 0x715
je 0x301119a3
cmp eax, 0x716
jne 0x301119cb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x301119cb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x301119cb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x301119cf
xor al, al
jmp 0x301119e4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x301136e6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 8]
cmp si, 0xffff
push edi
je 0x30113766
test si, 0x3ff
je 0x30113766
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.30113666
test eax, eax
jne 0x30113772
xor ebx, ebx
push ebx
push ebx
movzx edi, si
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x58
push edi
call esi
test eax, eax
je 0x30113759
push 0x20
lea eax, [ebp - 0x20]
push eax
push 0x58
push edi
call esi
push 3
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], ebx
call fcn.301135e8
test eax, eax
je 0x30113759
mov al, byte [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x30113772
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x30113772
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 0x10]
and dword [eax], 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x30118d85
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [section..cdata]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.30118d85
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [section..cdata]
jne 0x30118d8e
ret
jmp 0x30118c5d
Function at 0x30134cfe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x30134d6d
mov eax, dword [ebp + 8]
test eax, 3
je 0x30134d2f
cmp word [eax], 0
je 0x30134d28
lea eax, [eax + 2]
test eax, 3
je 0x30134d2f
jmp 0x30134d16
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x30134d6a
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x30134d2f
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x30134d6a
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x30134d6a
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x30134d2f
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x301375a8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x30191408]
cmp eax, 0xfffffffe
jne 0x301375c7
mov eax, dword [0x301d5da8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
add eax, 0x14
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x301375fc
push 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x30137600
push edi
push 7
pop ecx
push esi
push dword [0x30191408]
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, esi
pop esi
ret
mov eax, 0x301d5dc8
pop esi
ret

Function at 0x30139b70
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor eax, eax
mov dword [esp + 4], edx
push ebx
push esi
push edi
push ebp
mov byte [eax + ecx], al
inc eax
cmp eax, 0x100
jl 0x30139b7d
xor edx, edx
xor esi, esi
mov edi, dword [esp + 0x1c]
mov byte [ecx + 0x101], dl
mov byte [ecx + 0x100], dl
mov byte [esp + 0x13], dl
xor ebx, ebx
xor eax, eax
mov bl, dl
mov al, byte [esp + 0x13]
xor edx, edx
inc esi
mov dl, byte [ebx + edi]
add edx, eax
xor eax, eax
mov al, byte [esi + ecx - 1]
add eax, edx
cdq
xor eax, edx
sub eax, edx
and eax, 0xff
xor eax, edx
sub eax, edx
mov dl, byte [esi + ecx - 1]
mov byte [esp + 0x13], al
xor eax, eax
mov al, byte [esp + 0x13]
lea ebp, [eax + ecx]
mov al, byte [ebp]
mov byte [esi + ecx - 1], al
lea eax, [ebx + 1]
mov byte [ebp], dl
cdq
idiv dword [esp + 0x14]
cmp esi, 0x100
jl 0x30139ba0
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x30139cc0
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx], 0
ret
Function at 0x30157df7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x30157e06
xor eax, eax
jmp 0x30157ed7
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x30157eb9
push edi
mov edi, eax
shr edi, 3
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x30033c88]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x30033c88]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x30033c88]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x30033c88]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x30033c88]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x30033c88]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x30033c88]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x30033c88]
inc edx
dec edi
jne 0x30157e26
pop edi
test eax, eax
je 0x30157ed1
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x30033c88]
inc edx
dec eax
jne 0x30157ebd
mov eax, esi
pop esi
not eax
pop ebx
ret 0xc
Function at 0x30164240
Capabilities:
Download url
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x3c8]
sub esp, 0x448
mov eax, dword [section..cdata]
push ebx
push esi
mov dword [ebp + 0x3c4], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x80], 0x106
mov dword [ebp - 0x7c], 0x105
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x74], 0x188
mov dword [ebp - 0x70], 0x187
mov dword [ebp - 0x6c], 0x186
mov dword [ebp - 0x68], 0x1c7
mov dword [ebp - 0x64], 0x1c6
mov dword [ebp - 0x60], 0x1c5
lea esi, [ebp - 0x7c]
mov dword [ebp - 0x58], 3
xor ebx, ebx
push dword [esi - 4]
mov ecx, dword [ebp - 0x54]
call fcn.301631d2
test al, 8
je 0x3016436d
push dword [esi]
mov ecx, dword [ebp - 0x54]
call fcn.301631d2
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x4c]
push eax
push 0x104
call dword [0x301932b4]
lea eax, [ebp + 0x1bc]
push eax
push ebx
push 0x300562fc
lea eax, [ebp - 0x4c]
push eax
call dword [0x301932b0]
call fcn.301641c5
test al, al
je 0x3016430c
push ebx
push ebx
lea eax, [ebp + 0x1bc]
push eax
push dword [ebp - 0x5c]
push ebx
call sub.urlmon.dll_URLDownloadToFileW
jmp 0x30164311
mov eax, 0x800c000d
cmp eax, 0x800c000d
mov dword [ebp - 0x50], ebx
jne 0x3016432a
push ebx
push dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
push eax
call fcn.3013dc64
jmp 0x30164351
cmp eax, ebx
jl 0x3016436d
push 1
lea eax, [ebp + 0x1bc]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.3013dc64
test al, al
jne 0x30164351
lea eax, [ebp + 0x1bc]
push eax
call dword [0x30193270]
cmp dword [ebp - 0x50], ebx
je 0x3016436d
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
push dword [esi + 4]
call fcn.3015c080
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esi, 0xc
dec dword [ebp - 0x58]
jne 0x301642a9
mov ecx, dword [ebp + 0x3c4]
pop esi
pop ebx
call fcn.30118d85
add ebp, 0x3c8
leave
ret
Function at 0x40150c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40151e
mov eax, dword [0x4dd08f]
shl eax, 2
mov dword [0x4dd093], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004b9e1c
pop edx
call fcn.004b9a38
call fcn.004ba308
push 0
call fcn.004bb3dc
pop ecx
push 0x4dd038
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4dd097], eax
push 0
jmp fcn.004c4ae8
Function at 0x411ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x7caa70
push 0xa
push 0x411d74
mov eax, dword [0x4ee274]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x411d04
call fcn.0042d610
push ebx
mov eax, dword [0x4ee274]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x411d1b
call fcn.0042d610
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x411d2d
call fcn.0042d610
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x7caa74], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x7caa78], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x7caa7c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x7caa80], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x7caa84], ecx
add edx, dword [eax + 0x14]
mov dword [0x7caa88], edx
pop esi
pop ebx
ret

Function at 0x4219f8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004216fc
dec esi
jne 0x421a1a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x422bc4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x7cad74
cmp dword [edi], 0
jne 0x422c40
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x7cad70]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e5d14
mov ecx, 2
call fcn.00435d34
mov edx, 0x422b9c
lea eax, [esi + 5]
call fcn.00422bbc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422bbc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x422c15
mov dword [0x7cad70], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4240ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00438054
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
je 0x424144
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4ee050]
mov dl, 1
mov eax, dword [0x423b74]
call fcn.0042b908
call fcn.00437090
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423cfc
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8