joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430dd0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x444fe0]
xor eax, esp
mov dword [esp + 0x2b4], eax
push ebx
mov ebx, dword [esp + 0x2c0]
push ebp
mov bp, word [esp + 0x2cc]
push esi
mov esi, dword [esp + 0x2d4]
push edi
mov edi, dword [esp + 0x2d0]
test ebx, ebx
jne 0x430fab
cmp esi, 0x10
je 0x430fd3
push 0x2b4
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00419120
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ax, bp
add esp, 0xc
cmp ax, 0x10
ja 0x430ebf
cmp dword [0x44866c], 0
jne 0x430e59
push 0x10
call fcn.0042b830
add esp, 4
mov dword [0x44866c], eax
test eax, eax
je 0x430e9d
mov ecx, esi
or ecx, 0x4000
push ecx
push 0x2b4
lea edx, [esp + 0x18]
push edx
push 0
push edi
call ebx
test eax, eax
je 0x430e9d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x430e84
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x44866c]
push 0
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
jmp 0x430fe3
or esi, 1
or esi, 0x100
push esi
push 0x2b4
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
call ebx
mov eax, dword [esp + 0x10]
jmp 0x430fe3
cmp ax, 0x20
jbe 0x430ea0
cmp ax, 0x30
ja 0x430f2a
cmp dword [0x448668], 0
jne 0x430ee7
push 0x30
call fcn.0042b830
add esp, 4
mov dword [0x448668], eax
test eax, eax
je 0x430ea0
mov edx, esi
or edx, 0x4000
push edx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00427830
add esp, 0xc
test eax, eax
je 0x430ea0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x430f11
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x448668]
push 0
push ecx
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
jmp 0x430fe3
cmp dword [0x448664], 0
jne 0x430f4f
cmp dword [0x446b38], 0
je 0x430f91
push 0x40
call fcn.0042b830
add esp, 4
mov dword [0x448664], eax
test eax, eax
je 0x430f91
mov eax, esi
or eax, 0x4000
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.00427830
add esp, 0xc
test eax, eax
je 0x430ea0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x430f7c
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov edx, dword [esp + 0x14]
mov eax, dword [0x448664]
push 0
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
jmp 0x430fe3
push esi
push 0x30
push edi
push 0
mov dword [0x446b38], 0
call fcn.00430dd0
add esp, 0x10
jmp 0x430fe3
cmp bp, 0x20
jne 0x430fd3
mov eax, dword [0x448650]
test eax, eax
jne 0x430fc4
call fcn.0042a410
mov dword [0x448650], eax
cmp eax, 8
jg 0x430fd3
push edi
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
jmp 0x430fe3
push esi
movzx eax, bp
push eax
push eax
push 1
push edi
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, dword [esp + 0x2c4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041919a
add esp, 0x2b8
ret
Function at 0x433e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bf00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x444fe0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push ecx
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x433e5d
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x433e60
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov esi, eax
mov word [ecx], dx
cmp eax, edi
je 0x433e86
mov edx, dword [ebp + 0x10]
push edx
push ecx
push eax
call fcn.00433c80
add esp, 0xc
push esi
push edi
call fcn.0042c9c0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433ea0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bf20
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1804
call fcn.004196a0
mov eax, dword [0x444fe0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov ax, word [edi]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp ax, word [str._MY_PATH_]
jne 0x434082
lea ecx, [ebp - 0x814]
cmp edi, ecx
je 0x433f17
push 0x400
mov eax, ecx
push eax
xor edx, edx
push edi
mov word [ebp - 0x814], dx
call fcn.004287b0
add esp, 0xc
movzx ecx, word [str._MY_PATH_]
push ecx
lea edx, [ebp - 0x812]
push edx
call fcn.0041979e
add esp, 8
test eax, eax
je 0x434082
add eax, 2
xor ecx, ecx
mov word [eax], cx
push 0xffffffffffffffff
lea eax, [ebp - 0x814]
xor edx, edx
push str._MY_PATH_
push eax
mov word [ebp - 0x1814], dx
call fcn.00428a50
add esp, 0xc
test eax, eax
jne 0x43401f
push 0xffffffffffffffff
lea ecx, [ebp - 0x814]
push str._COMMANDER_PATH_
push ecx
call fcn.00428a50
add esp, 0xc
test eax, eax
jne 0x43401f
push 0xffffffffffffffff
lea edx, [ebp - 0x814]
push str._APPDATA_
push edx
call fcn.00428a50
add esp, 0xc
test eax, eax
je 0x434006
lea eax, [ebp - 0x814]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433fa6
sub eax, edx
sar eax, 1
push 0x800
lea ecx, [ebp - 0x1814]
mov esi, eax
push ecx
xor eax, eax
push 0x1a
mov word [ebp - 0x1814], ax
call fcn.00433e10
add esp, 0xc
cmp word [ebp - 0x1814], 0
jne 0x433ff4
lea edx, [ebp - 0x1814]
push 0x800
push edx
call fcn.0042f460
add esp, 8
push 0x800
lea eax, [ebp - 0x1814]
push eax
lea ecx, [edi + esi*2]
push ecx
jmp 0x434074
push 0x800
lea edx, [ebp - 0x1814]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x434082
jmp 0x43407c
lea eax, [ebp - 0x814]
lea edx, [eax + 2]
jmp 0x434030
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434030
sub eax, edx
sar eax, 1
mov esi, eax
push 0x800
lea eax, [ebp - 0x1814]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x1814]
push ecx
call fcn.00434550
add esp, 4
push 0x800
lea edx, [ebp - 0x1814]
push edx
lea eax, [edi + esi*2]
push eax
call fcn.004287b0
add esp, 0xc
lea edi, [ebp - 0x1814]
cmp edi, ebx
je 0x434099
mov edx, dword [ebp + 0x10]
push edx
xor ecx, ecx
push ebx
push edi
mov word [ebx], cx
call fcn.004287b0
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
push ebx
call fcn.00431690
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041919a
mov esp, ebp
pop ebp
ret
Function at 0x434830
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.004196a0
mov eax, dword [0x444fe0]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1010]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov ebx, ecx
push 0x400
lea ecx, [esp + 0x14]
push ecx
xor eax, eax
push str._U3_HOST_EXEC_PATH_
mov edi, 1
mov word [esp + 0x1c], ax
call esi
mov dx, word [esp + 0x10]
cmp dx, word [str._U3_HOST_EXEC_PATH_]
jne 0x43488f
xor eax, eax
mov word [esp + 0x10], ax
jmp 0x434907
push 0x400
lea ecx, [esp + 0x814]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x814]
xor edx, edx
push ecx
mov word [esp + 0x18], dx
call fcn.0042c390
add esp, 8
test eax, eax
je 0x4348ff
push 0x400
lea edx, [esp + 0x14]
push edx
push str._U3_APP_DATA_PATH_
call esi
mov ax, word [esp + 0x10]
cmp ax, word [str._U3_HOST_EXEC_PATH_]
jne 0x4348ec
xor ecx, ecx
mov word [esp + 0x10], cx
jmp 0x434907
lea edx, [esp + 0x10]
push edx
call fcn.0040c290
add esp, 4
test eax, eax
je 0x434886
xor edi, edi
cmp word [esp + 0x10], 0
jne 0x434923
push 0x400
lea ecx, [esp + 0x14]
push ecx
push 0
call fcn.00434190
add esp, 0xc
cmp word [esp + 0x10], 0
je 0x434972
test edi, edi
jne 0x434934
lea edx, [esp + 0x10]
push edx
call fcn.00434550
add esp, 4
push 0x400
lea eax, [esp + 0x814]
push eax
mov ecx, ebx
call fcn.0042cfb0
push 0x400
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x818]
push edx
call fcn.00428230
lea eax, [esp + eax*2 + 0x81c]
add esp, 4
push eax
call fcn.0042d8d0
add esp, 0xc
lea ecx, [esp + 0x10]
cmp ecx, ebp
je 0x434992
mov eax, dword [esp + 0x101c]
push eax
xor edx, edx
push ebp
push ecx
mov word [ebp], dx
call fcn.004287b0
add esp, 0xc
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041919a
add esp, 0x1004
ret 8

Function at 0x434b70
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
test eax, eax
je 0x434bb0
movzx ecx, word [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x434bb0
mov esi, dword [esp + 0x18]
push ebx
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
push esi
push esi
mov edi, eax
call fcn.004346b0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov esi, dword [esp + 0x18]
test esi, esi
je 0x434bbd
xor edx, edx
mov word [esi], dx
push ebx
push esi
push esi
xor edi, edi
call fcn.004346b0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x41583a
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x41585b
mov eax, 0x8876086c
jmp 0x41593d
cmp dword [ebp + 0x7c], esi
je 0x4158d5
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x4158b5
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.004ca150
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x4158d5
push esi
push 0x10000000
push 3
push esi
push 1
push bind
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4158ee
push esi
push 0x10000000
push 3
push esi
push 1
push bind
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x41592e
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x41592e
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
je 0x41592e
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
jne 0x41593b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x41593d
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8

Function at 0x415a9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx], esi
push edi
je 0x415aad
call fcn.00415a7b
cmp dword [ebp + 0x14], esi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
jne 0x415abe
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp dword [ebp + 0x10], esi
je 0x415ad3
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
jne 0x415ae3
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x415b12
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebx + 8], eax
je 0x415b12
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebx], eax
je 0x415b12
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebx + 4], eax
jne 0x415b1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x415b21
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x415b28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x415b80
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x415b80
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x415b80
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x415ba9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x415c17
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415c0e
cmp dword [ebp - 0xc], 4
jne 0x415c0e
cmp dword [ebp - 0x10], edi
je 0x415c0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5788f8], edi
xor eax, eax
jmp 0x415c3f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5788f8], edi
jge 0x415c3a
mov dword [0x5788f8], edi
call fcn.00415b84
test eax, eax
je 0x415c3a
emms
mov dword [0x5788f8], 1
mov eax, dword [0x5788f8]
pop edi
leave
ret

Function at 0x415d1f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x415d56
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x415d78
cmp dword [ebp - 0x20], 4
ja 0x415d82
jne 0x415d72
cmp dword [ebp - 0x1c], 0xa
jb 0x415d72
cmp word [ebp - 0x18], 0x55d
jae 0x415d82
mov byte [ebp + 0x73], 1
jmp 0x415d82
cmp dword [ebp - 0x14], 2
jne 0x415d98
test bl, bl
je 0x415db3
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x415da3
dec eax
je 0x415d9c
sub eax, 3
jne 0x415d98
cmp byte [ebp + 0x73], 0
je 0x415dc4
xor eax, eax
jmp 0x415dcc
call fcn.00415c42
jmp 0x415dcc
cmp byte [ebp + 0x73], 0
jne 0x415d98
call fcn.00415c7a
and eax, 4
jmp 0x415dcc
cmp dword [ebp + 0x7c], 0xa
je 0x415dc4
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x415dcc
call fcn.00415c7a
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x41bf93
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x41bfc0
push esi
call fcn.0042565f
cmp byte [esi + 0x40], 0
pop ecx
je 0x41bfb9
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x41c02f
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x41c024
mov eax, dword [esi + 8]
test eax, eax
je 0x41bfe1
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x41c020
cmp eax, 2
je 0x41c024
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41bfd6
cmp eax, 3
je 0x41c005
cmp eax, 1
jne 0x41bfd6
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x41bfd6
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x41bfd6
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x41c04d
cmp eax, 0xcc
je 0x41c04d
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.0041bcf2
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4270d9
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x4271ad
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x548f10]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x548f10]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x548f10]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x548f10]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x548f10]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x548f10]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x548f10]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x548f10]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x4270f6
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x4271cd
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x548f10]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x4271b3
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x43c980
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x57bc74]
xor eax, esp
mov dword [esp + 0x400], eax
lea eax, [esp + 0x40c]
push eax
push 0
push dword [esp + 0x410]
lea eax, [esp + 0xc]
push 0x400
push eax
call fcn.0043c920
add esp, 0x14
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004c922c
add esp, 0x404
ret

Function at 0x43ccd0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0xd0
mov eax, dword [0x57bc74]
xor eax, esp
mov dword [esp + 0xcc], eax
push esi
push edi
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov edi, edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x43cd2d
lea eax, [esp + 0xc]
push eax
push 0x20
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0xc]
test eax, eax
jne 0x43cd46
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.004c922c
add esp, 0xd0
ret
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x43cd2d
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x43cd55
movups xmm0, xmmword [0x55af5c]
push 0x20
lea eax, [esp + 0x30]
sub edx, ecx
push eax
push 0x400
push 0x20
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.0043da10
add esp, 0x24
test eax, eax
je 0x43cd2d
xor esi, esi
mov dl, byte [esp + esi + 0xc]
mov cl, dl
and dl, 0xf
shr cl, 4
cmp cl, 0xa
sbb al, al
and al, 0xf9
add al, 0x37
add al, cl
cmp dl, 0xa
mov byte [esp + esi*2 + 0x4c], al
sbb al, al
and al, 0xf9
add al, 0x37
add al, dl
mov byte [esp + esi*2 + 0x4d], al
inc esi
cmp esi, 0x20
jb 0x43cd90
lea edx, [esp + 0x90]
mov byte [esp + 0x8c], 0
lea ecx, [esp + 0x2c]
call fcn.0043cc10
mov eax, edx
mov byte [esp + 0xd0], 0
push eax
lea eax, [esp + 0x50]
push eax
push 0x400
push 0x55a9c0
push 0x87
push edi
call fcn.0043ca80
mov ecx, dword [esp + 0xec]
add esp, 0x18
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004c922c
add esp, 0xd0
ret
Function at 0x440f50
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [edi]
test eax, eax
je 0x44101e
cmp eax, 0xffffffff
je 0x44101e
mov esi, dword [0x592220]
push 0
push 0
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp dword [esi], eax
je 0x440fa9
push str.Startup__:_Associate_Device_failed_for_pre_created_socket.
call fcn.00442a10
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x59223c
call esi
mov eax, dword [edi]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push dword [esp + 0x10]
mov dword [esp + 0x18], ebx
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call fcn.00444bf0
push 0x59223c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
call fcn.004420f0
test al, al
jne 0x4410b8
push str.Startup__:_Register_Receive_failed.
call fcn.00442a10
add esp, 4
push 0x59223c
call esi
push edi
call fcn.00442c10
push 0x59223c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x441055
push str.Startup__:_Socket_Creation_Failure.
call fcn.00442a10
add esp, 4
mov dword [edi], 0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [0x592220]
push 0
push 0
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp dword [esi], eax
je 0x441084
push str.Startup__:_Associate_Device_failed.
call fcn.00442a10
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x59223c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push dword [esp + 0x10]
mov dword [esp + 0x18], ebx
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call fcn.00444bf0
push 0x59223c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
mov ecx, 5
test eax, eax
pop edi
cmove eax, ecx
mov dword [ebx + 0x10], eax
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8