joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4108d1
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
push edi
push 0x20
pop edi
movzx eax, word [esi + 0x454]
mov cl, al
shl dword [esi + 0x450], cl
cmp ax, di
jae 0x41093a
mov ecx, dword [esi + 0x448]
mov edx, dword [esi + 0x444]
mov al, byte [esi + 0x453]
mov byte [edx + ecx], al
inc dword [esi + 0x448]
mov edx, dword [esi + 0x448]
mov ecx, dword [esi + 0x444]
mov al, byte [esi + 0x452]
mov byte [edx + ecx], al
inc dword [esi + 0x448]
shl dword [esi + 0x450], 0x10
add word [esi + 0x454], 0x10
cmp word [esi + 0x454], di
jb 0x4108ec
mov word [esi + 0x454], di
mov ecx, esi
pop edi
pop esi
jmp fcn.004107f5

Function at 0x410d5a
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 8
push 0
lea eax, [esi + 0x44]
push eax
call fcn.004158c0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
pop esi
ret

Function at 0x4118f4
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x411913
push esi
mov esi, dword [eax + 0x208]
push eax
call main
mov eax, esi
pop ecx
test esi, esi
jne 0x4118ff
pop esi
push dword [edi + 4]
push 4
push 1
push str.AU3_
call fcn.0041375f
push dword [edi + 4]
push 4
push 1
push 0x43c314
call fcn.0041375f
push dword [edi + 4]
call fcn.00412faf
add esp, 0x24
pop edi
ret

Function at 0x413ffb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x41400a
pop dword [ebp - 0x10]
mov eax, 0xe646c7ed
sub eax, 0xe60587e3
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x64d15981
add dword [ebp - 0x20], 0xe980ebca
mov dword [ebp - 0x1c], 0x7a3461f7
add dword [ebp - 0x1c], 0xb7feea4e
mov dword [ebp - 0x18], 0xd8cfbacf
sub dword [ebp - 0x18], 0x8c8376a1
mov dword [ebp - 0x14], 0xc81bfffa
add dword [ebp - 0x14], 0x37e40006
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x94aeb4f3
add dword [ebp - 0x20], 0xdfc3b463
mov dword [ebp - 0x1c], 0x46512c1c
add dword [ebp - 0x1c], 0xfb1b3559
mov dword [ebp - 0x18], 0x414e5ae2
add dword [ebp - 0x18], 0x2221118a
mov dword [ebp - 0x14], 0xd9db1b0
sub dword [ebp - 0x14], 0xd9db1b0
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3f6b1
push 0
call eax
mov ecx, 0x40f6
mov esi, eax
mov edx, 0x61035cce
sub edx, 0x60aeb0ce
add edx, dword [ebp - 0x10]
mov edi, 0x81a2c242
add edi, 0x1b119863
sub dword [ebp - 4], 0x84c1a3bb
mov ebx, dword [edx]
xor dword [ebp - 4], edi
add ebx, edi
xor dword [ebp - 4], 0x8a8b4056
mov dword [esi], ebx
xor dword [ebp - 0xc], 0xf59112cd
add esi, 0x824ac15e
sub esi, 0x824ac15a
add edx, 4
loop 0x41411c
add eax, 0xf6ab
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0xa10058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa101a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa1007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa1006a
add dl, dl
jne 0xa10089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa100dc
xor eax, eax
add dl, dl
jne 0xa10096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa1017d
add dl, dl
jne 0xa100a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa100b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa100bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa100c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa100d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa10075
mov eax, 1
add dl, dl
jne 0xa100ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa100f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa100e1
sub eax, ebx
mov ebx, 1
jne 0xa10128
mov ecx, 1
add dl, dl
jne 0xa1010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa10119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa10105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa10075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa1013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa1014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa10136
cmp eax, 0x7d00
jae 0xa1016d
cmp eax, 0x500
jb 0xa10168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa10075
cmp eax, 0x7f
ja 0xa10170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa10075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa1019e
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 0xa10075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1002aaee
pop dword [ebp - 0xc]
mov eax, 0xa4640ef1
add eax, 0x6b9e9bfd
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x41f6a6a6
sub dword [ebp - 0x1c], 0xf3a4615b
mov dword [ebp - 0x18], 0xe60d4ea0
add dword [ebp - 0x18], 0x4c25fda5
mov dword [ebp - 0x14], 0x64c127ca
add dword [ebp - 0x14], 0xe78b1c64
mov dword [ebp - 0x10], 0x4fc6c843
add dword [ebp - 0x10], 0xb03937bd
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x86da9a99
sub dword [ebp - 0x1c], 0x12683143
mov dword [ebp - 0x18], 0xef2a5b90
sub dword [ebp - 0x18], 0xadbdfa1b
mov dword [ebp - 0x14], 0xb66b01a7
sub dword [ebp - 0x14], 0x52fb953b
mov dword [ebp - 0x10], 0xeefeddab
sub dword [ebp - 0x10], 0xeefeddab
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xbd7a3d09
sub eax, 0xad777ce1
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x343c0
push 0
call eax
mov ecx, 0x3f11
mov ebx, eax
mov edx, 0x6ea0d956
sub edx, 0x5e9d4356
add edx, dword [ebp - 0xc]
mov edi, 0xd39d002d
sub edi, 0xc800e629
mov dword [ebp - 8], 0xf0b41fbf
mov esi, dword [edx]
add dword [ebp - 4], 0x6b938ae0
add esi, edi
sub dword [ebp - 4], 0x37639e90
mov dword [ebx], esi
xor dword [ebp - 4], ebx
add ebx, 0x9141bec7
add ebx, 0x6ebe413d
add edx, 0x1f4135d0
sub edx, 0x1f4135cc
loop 0x1002ac05
add eax, 0xef17
xor ebx, ebx
add ebx, eax
add eax, 0x65def72d
sub eax, 0x65def728
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x402520
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov dword [ebp - 4], 0xffffffff
call sub.Weapp.dll_Ordinal_9
push eax
call sub.Weapp.dll_Ordinal_14
push eax
push str.Software_s_s
lea eax, [ebp - 0x230]
push eax
call fcn.0040443b
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x230]
push edx
push reloc.Constr.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402656
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x105
mov dword [ebp - 0xc], 0
jmp 0x402595
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40264c
mov edx, dword [str.Project]
lea ecx, [ebp - 0x230]
call sub.Wetools.dll_Ordinal_492
test eax, eax
je 0x402640
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x234]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402640
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [str.IfcClientSink]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402633
xor edx, edx
cmp dword [ebp - 0x20], 0
setne dl
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0x105
jmp 0x40258c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402660
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
push edi
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x402682
call fcn.00402520
mov dword [ebp - 8], eax
jmp 0x402688
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.Constr.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], 0
je 0x40275a
cmp dword [ebp - 8], 0
jle 0x40273a
push 0x209
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
add eax, 0xfffffffe
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x424]
mov dx, word [ecx + 2]
mov word [ebp - 0x426], dx
add dword [ebp - 0x424], 2
cmp word [ebp - 0x426], 0
jne 0x4026da
mov edi, dword [ebp - 0x424]
mov ecx, 6
mov esi, str.__Automation
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [ebp - 0x420]
call fcn.00403a20
push eax
lea eax, [ebp - 0x420]
push eax
push 1
push 0
mov ecx, dword [str.WRPProxy]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x402750
cmp dword [ebp - 8], 0
jne 0x402750
mov eax, dword [str.WRPProxy]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402770
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
mov dword [ebp - 8], 0x40
mov eax, dword [ebp + 8]
push eax
call sub.Weapp.dll_Ordinal_9
push eax
call sub.Wetools.dll_Ordinal_379
test eax, eax
jne 0x4027f3
push 0x105
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0xc], 0x410644
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.00403a80
add esp, 8
add eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx]
mov word [ebp - 0x16], dx
mov eax, dword [ebp - 0x10]
mov cx, word [ebp - 0x16]
mov word [eax], cx
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
cmp word [ebp - 0x16], 0
jne 0x4027c4
jmp 0x40284d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffffe
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov ax, word [edx + 2]
mov word [ebp - 0x1e], ax
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x1e], 0
jne 0x4027fc
mov edi, dword [ebp - 0x1c]
mov ecx, dword [0x410640]
mov dword [edi], ecx
mov edx, dword [ebp + 8]
add edx, 0xfffffffe
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov cx, word [eax + 2]
mov word [ebp - 0x26], cx
add dword [ebp - 0x24], 2
cmp word [ebp - 0x26], 0
jne 0x402826
mov edi, dword [ebp - 0x24]
mov ecx, 6
mov esi, 0x410644
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x2e
mov edx, dword [ebp + 8]
push edx
call fcn.00403a80
add esp, 8
mov dword [ebp - 4], eax
mov eax, 0x40
mov ecx, dword [ebp - 4]
mov word [ecx], ax
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffffe
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov ax, word [edx + 2]
mov word [ebp - 0x2e], ax
add dword [ebp - 0x2c], 2
cmp word [ebp - 0x2e], 0
jne 0x402883
mov edi, dword [ebp - 0x2c]
mov ecx, dword [str..log]
mov dword [edi], ecx
mov edx, dword [0x410638]
mov dword [edi + 4], edx
mov ax, word [0x41063c]
mov word [edi + 8], ax
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4028c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push str.WRPProxyDDEArea
push 0x400
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x41519c], eax
cmp dword [0x41519c], 0
jne 0x4028ff
push 0x3f4
call fcn.004022d0
add esp, 4
xor eax, eax
jmp 0x402977
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402928
mov eax, dword [0x41519c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41519c], 0
xor eax, eax
jmp 0x402977
push 0
push 0
push 0
push 6
mov ecx, dword [0x41519c]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x4151a0], eax
cmp dword [0x4151a0], 0
jne 0x40295c
push 0x3f5
call fcn.004022d0
add esp, 4
xor eax, eax
jmp 0x402977
push 0x400
push 0
mov edx, dword [0x4151a0]
push edx
call fcn.00404510
add esp, 0xc
mov eax, 1
pop ebp
ret
Function at 0x4029d0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov eax, dword [0x4104ec]
push eax
push 0
mov ecx, dword [str.IfcSinkPort]
push ecx
mov edx, dword [str.Interface]
push edx
call sub.Wetools.dll_Ordinal_7
mov word [0x415184], ax
movzx eax, word [0x415184]
test eax, eax
je 0x402b0d
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [section..data], eax
cmp dword [section..data], 0xffffffff
je 0x402afe
mov dword [ebp - 8], 1
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0xffff
mov edx, dword [section..data]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
push eax
push 0x20
push 0xffff
mov ecx, dword [section..data]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 2
mov word [ebp - 0x18], dx
movzx eax, word [0x415184]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
mov dword [ebp - 0x14], 0
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [section..data]
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x402aef
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov ecx, dword [section..data]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x21
mov edx, dword [0x415198]
push edx
mov eax, dword [section..data]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x402ae0
mov dword [ebp - 4], 1
jmp 0x402aed
push 0x3f9
call fcn.004022d0
add esp, 4
jmp 0x402afc
push 0x3f8
call fcn.004022d0
add esp, 4
jmp 0x402b0b
push 0x3f7
call fcn.004022d0
add esp, 4
jmp 0x402b1a
push 0x3f6
call fcn.004022d0
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403500
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x415190]
mov dword [ebp - 0x460], eax
mov ecx, dword [0x415198]
mov dword [ebp - 0x45c], ecx
mov edx, dword [0x415194]
mov dword [ebp - 0x458], edx
mov dword [ebp - 0x468], 0
push 0xff
push 0x3e8
push 0
lea eax, [ebp - 0x460]
push eax
push 3
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x480], ecx
cmp dword [ebp - 0x480], 3
ja 0x403594
cmp dword [ebp - 0x480], 3
je 0x40371e
cmp dword [ebp - 0x480], 1
je 0x4035ae
cmp dword [ebp - 0x480], 2
je 0x4036da
jmp 0x40377f
cmp dword [ebp - 0x480], 0x102
je 0x403755
jmp 0x40377f
mov byte [ebp - 0x451], 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [0x415198]
push eax
mov ecx, dword [section..data]
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x4035dd
mov byte [ebp - 0x451], 1
jmp 0x4036d5
mov edx, dword [ebp - 0x2c]
and edx, 1
je 0x403697
mov dword [ebp - 0x47c], 0x10
mov eax, 2
mov word [ebp - 0x478], ax
movzx ecx, word [0x415184]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x476], ax
mov dword [ebp - 0x474], 0
lea edx, [ebp - 0x47c]
push edx
lea eax, [ebp - 0x478]
push eax
push 0
push 0x400
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [section..data]
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jl 0x40368b
cmp dword [ebp - 0x434], 8
jb 0x40367e
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.00403460
add esp, 8
jmp 0x40368b
push 0x3e9
call fcn.004022d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x468], eax
mov edx, dword [ebp - 0x2c]
and edx, 0x20
je 0x4036d5
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0x2742
je 0x4036ce
cmp dword [ebp - 0x484], 0x2745
je 0x4036ce
cmp dword [ebp - 0x484], 0x274d
je 0x4036ce
jmp 0x4036d5
mov byte [ebp - 0x451], 1
jmp 0x40377f
cmp dword [0x4151a0], 0
je 0x40371c
mov ecx, dword [0x4151a0]
movsx edx, word [ecx]
cmp edx, 8
jb 0x403703
push 0
mov eax, dword [0x4151a0]
push eax
call fcn.00403460
add esp, 8
jmp 0x403710
push 0x3e9
call fcn.004022d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x468], eax
jmp 0x40377f
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x450]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x403753
lea edx, [ebp - 0x450]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40371e
jmp 0x40377f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x468]
cmp eax, 0x4e20
jbe 0x40377f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x468], eax
mov ecx, 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___thiscall_LogFile::Close_void_]
cmp dword [ebp - 0x464], 0
jne 0x403536
mov esp, ebp
pop ebp
ret
Function at 0x404932
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414074]
jne 0x40493c
repz ret
jmp fcn.00407fdc

Function at 0x40b47f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x414074]
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.004058fa
and dword [ebp - 0x14], 0
cmp dword [0x416248], 0
mov dword [ebp - 0x18], eax
jne 0x40b532
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b5da
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4116a4
push ebx
call edi
test eax, eax
je 0x40b5da
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x416248], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41624c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416250], eax
call edi
push eax
call esi
mov dword [0x416258], eax
test eax, eax
je 0x40b532
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416254], eax
mov eax, dword [0x416254]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b58b
cmp dword [0x416258], ecx
je 0x40b58b
push eax
call esi
push dword [0x416258]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b58b
test ebx, ebx
je 0x40b58b
call edi
test eax, eax
je 0x40b582
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b582
test byte [ebp - 8], 1
jne 0x40b58b
or dword [ebp + 0x10], 0x200000
jmp 0x40b5be
mov eax, dword [0x41624c]
cmp eax, dword [ebp - 0x18]
je 0x40b5be
push eax
call esi
test eax, eax
je 0x40b5be
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b5be
mov eax, dword [0x416250]
cmp eax, dword [ebp - 0x18]
je 0x40b5be
push eax
call esi
test eax, eax
je 0x40b5be
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416248]
call esi
test eax, eax
je 0x40b5da
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b5dc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404932
leave
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219