joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fda0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
call fcn.0041aff0
test eax, eax
je 0x42fded
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x24]
xor edx, edx
test eax, eax
setne dl
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov dword [eax], edx
mov eax, esi
pop esi
ret
push edi
push str.unicows.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x42fe0e
mov ecx, dword [esp + 0x24]
mov dword [ecx], 1
or edi, 0xffffffff
jmp 0x42fe4f
push 0x486da0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x42fe2d
mov edx, dword [esp + 0x24]
mov dword [edx], 2
or edi, 0xffffffff
jmp 0x42fe4f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push edx
call eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
je 0x42fe66
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
ret

Function at 0x42ff80
Capabilities:
Query or enumerate registry key

Disassembly:
push esi
call fcn.0041aff0
test eax, eax
je 0x42ffd7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], eax
mov edx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword [edx], ecx
ret
push edi
push str.unicows.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x42fff8
mov eax, dword [esp + 0x2c]
mov dword [eax], 1
or edi, 0xffffffff
jmp 0x430043
push 0x486dc8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x430017
mov ecx, dword [esp + 0x2c]
mov dword [ecx], 2
or edi, 0xffffffff
jmp 0x430043
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
call eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov edx, dword [esp + 0x30]
mov dword [edx], eax
je 0x43005a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
ret
Function at 0x430130
Capabilities:
Delete registry key

Disassembly:
push esi
call fcn.0041aff0
test eax, eax
je 0x430169
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], eax
mov edx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword [edx], ecx
ret
push edi
push str.unicows.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x43018a
mov eax, dword [esp + 0x14]
mov dword [eax], 1
or edi, 0xffffffff
jmp 0x4301b7
push 0x486de8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4301a9
mov ecx, dword [esp + 0x14]
mov dword [ecx], 2
or edi, 0xffffffff
jmp 0x4301b7
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
push ecx
call eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov edx, dword [esp + 0x18]
mov dword [edx], eax
je 0x4301ce
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
ret

Function at 0x430370
Capabilities:
Query environment variable

Disassembly:
push esi
call fcn.0041aff0
test eax, eax
je 0x4303ae
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
xor edx, edx
test eax, eax
setne dl
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov eax, esi
pop esi
ret
push edi
push str.unicows.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4303cf
mov ecx, dword [esp + 0x18]
mov dword [ecx], 1
or edi, 0xffffffff
jmp 0x430401
push 0x486e18
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4303ee
mov edx, dword [esp + 0x18]
mov dword [edx], 2
or edi, 0xffffffff
jmp 0x430401
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
call eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
je 0x430418
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
ret
Function at 0x434e70
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
mov edi, dword [esp + 0x18]
push 0
push 0x80
push 5
push 0
push 0
push 0x40000000
push edi
mov dword [esp + 0x2c], 0
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x434ec0
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x434eec
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea ecx, [esp + 0x18]
push ecx
push esi
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], 0xfe
call edi
test eax, eax
jne 0x434ef5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x20]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [eax + eax]
push ecx
push edx
push esi
call edi
test eax, eax
push esi
je 0x434ee6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x435cd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
mov eax, dword [0x498e04]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, 1
test byte [0x49a678], al
push edi
mov edi, dword [esp + 0x34]
jne 0x435d1d
or dword [0x49a678], eax
push 0x19000
mov dword [0x49a674], 0x19000
call fcn.0044c06b
push 0x480650
mov dword [0x49a670], eax
call fcn.0044d461
add esp, 8
mov ecx, dword [esp + 0x38]
mov eax, dword [0x49a674]
push ecx
lea edx, [esp + 0x10]
push 0x48e238
push edx
mov dword [esp + 0x14], eax
call fcn.0044e692
mov eax, dword [0x49a674]
mov ecx, dword [0x49a670]
push eax
push 0
push ecx
call fcn.00449d00
mov eax, dword [0x49a670]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x18
lea edx, [esp + 8]
push edx
push eax
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push reloc.WS2_32.dll_connect
call esi
cmp eax, 0xea
jne 0x435dde
lea esp, [esp]
mov eax, dword [esp + 8]
mov edx, dword [0x49a670]
add eax, 0x2800
push eax
push edx
mov dword [esp + 0x10], eax
mov dword [0x49a674], eax
call fcn.0044f109
add esp, 8
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push reloc.WS2_32.dll_connect
mov dword [0x49a670], eax
call esi
cmp eax, 0xea
je 0x435d80
mov eax, dword [0x49a670]
mov dword [edi], eax
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00449ce2
add esp, 0x28
ret 0xc
mov ecx, dword [0x49a670]
mov dword [edi], ecx
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.00449ce2
add esp, 0x28
ret 0xc
Function at 0x43ccf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
push esi
mov esi, ecx
je 0x43ce10
push ebx
push edi
mov edi, 0x10
sub edi, dword [esi + 0x54]
cmp edi, ebp
jb 0x43cd10
mov edi, ebp
mov eax, dword [esi + 0x54]
mov ebx, dword [esp + 0x14]
push edi
lea ecx, [eax + esi + 0x44]
push ebx
push ecx
call fcn.0044ec50
add dword [esi + 0x54], edi
mov eax, dword [esi + 0x54]
add ebx, edi
add esp, 0xc
sub ebp, edi
cmp eax, 0x10
mov dword [esp + 0x14], ebx
jne 0x43ce06
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x50]
mov dword [esi + 0x18], eax
xor ebx, ebx
mov dword [esi + 0x1c], ecx
mov cl, byte [esi + 0x43]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x20], edx
lea eax, [esi + 4]
lea edi, [ebx + 0x10]
movzx edx, byte [eax + 0x10]
xor dl, byte [eax]
movzx ecx, cl
mov byte [eax + 0x20], dl
movzx edx, byte [eax + 0x40]
xor edx, ecx
movzx edx, byte [edx + str._.C]
xor byte [eax + 0x30], dl
mov cl, byte [eax + 0x30]
add eax, 1
sub edi, 1
jne 0x43cd63
xor cl, cl
lea edi, [esi + 5]
nop
mov eax, edi
mov edx, 8
jmp 0x43cda0
movzx ecx, cl
movzx ecx, byte [ecx + str._.C]
xor byte [eax - 1], cl
movzx ecx, byte [eax - 1]
movzx ecx, byte [ecx + str._.C]
xor byte [eax], cl
movzx ecx, byte [eax]
movzx ecx, byte [ecx + str._.C]
xor byte [eax + 1], cl
movzx ecx, byte [eax + 1]
movzx ecx, byte [ecx + str._.C]
xor byte [eax + 2], cl
movzx ecx, byte [eax + 2]
movzx ecx, byte [ecx + str._.C]
xor byte [eax + 3], cl
movzx ecx, byte [eax + 3]
movzx ecx, byte [ecx + str._.C]
xor byte [eax + 4], cl
mov cl, byte [eax + 4]
add eax, 6
sub edx, 1
jne 0x43cda0
add cl, bl
add ebx, 1
cmp ebx, 0x12
jl 0x43cd90
test ebp, ebp
jne 0x43cd02
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x43cef0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x43df40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x498e04]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [esp + 0x80c]
push edi
mov edi, dword [esp + 0x818]
push 0x486954
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0044e27b
add esp, 0xc
test eax, eax
je 0x43df92
xor eax, eax
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00449ce2
add esp, 0x808
ret
mov ecx, dword [esp + 0x814]
push ebx
push esi
push ecx
push edi
call fcn.0043dcd0
add esp, 8
xor ebx, ebx
jmp 0x43dfb0
mov edx, dword [esp + 0xc]
push edx
push 0x800
lea eax, [esp + 0x18]
push 1
push eax
call fcn.00450343
mov esi, eax
push esi
lea ecx, [esp + 0x24]
push ecx
push edi
add ebx, esi
call fcn.0043dd20
add esp, 0x1c
cmp esi, 0x800
jge 0x43dfb0
mov edx, dword [esp + 0xc]
push edx
call fcn.0044dfdc
push edi
call fcn.0043de30
mov ecx, dword [esp + 0x818]
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop edi
xor ecx, esp
call fcn.00449ce2
add esp, 0x808
ret
Function at 0x43e5c0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x441f50
Capabilities:
Hash data using sha256
Hash data using sha384
Hash data using sha512

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x100
push esi
push edi
mov edx, eax
ja 0x441fa2
je 0x441f78
cmp eax, 0x20
je 0x441f7d
cmp eax, 0x30
je 0x441fc9
cmp eax, 0x40
je 0x441fbd
pop edi
mov eax, 1
pop esi
ret
mov edx, 0x20
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
lea edi, [eax + 8]
mov ecx, 8
mov esi, 0x488280
rep movsd dword es:[edi], dword [esi]
pop edi
mov dword [eax + 0xd0], edx
xor eax, eax
pop esi
ret
cmp eax, 0x180
je 0x441fc4
cmp eax, 0x200
je 0x441fb8
pop edi
mov eax, 1
pop esi
ret
mov edx, 0x40
mov esi, 0x4887a0
jmp 0x441fce
mov edx, 0x30
mov esi, 0x488520
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea edi, [eax + 0x10]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
pop edi
mov dword [eax + 0xd0], edx
xor eax, eax
pop esi
ret

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

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov dword [edx], 0xffffffff
mov cl, byte [esi]
test cl, cl
je 0x4421db
push edi
mov eax, dword [edx]
mov edi, eax
movzx ecx, cl
and edi, 0xff
xor edi, ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4985b0]
add esi, 1
mov dword [edx], eax
mov cl, byte [esi]
test cl, cl
jne 0x4421b6
pop edi
mov eax, dword [edx]
not eax
mov dword [edx], eax
xor eax, eax
pop esi
ret
Function at 0x447ee0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor esi, esi
push 0
push 0
push 0
mov eax, ebx
sub eax, esi
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x20], eax
lea ecx, [esi + ebp]
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
cmp edi, 0xffffffff
je 0x447f28
add esi, dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, ebx
jge 0x447f4e
cmp edi, 0xffffffff
jne 0x447ef1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x447f58
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret

Function at 0x4480c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
cmp edi, 1
mov dword [esp + 8], esi
jge 0x4480dd
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push 0
push 0
lea eax, [esi + ebx]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x24], eax
mov ecx, edi
sub ecx, esi
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x24], ecx
push 1
lea ecx, [esp + 0x28]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x44812e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x448140
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4480e7
add esi, dword [esp + 0x28]
cmp edi, esi
jg 0x4480e7
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
pop ebp
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
Function at 0x449ce2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x498e04]
jne 0x449cec
repz ret
jmp fcn.00454095
Function at 0x45008c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4500c9
cmp dword [ebp + 0x14], edi
je 0x4500c9
cmp ecx, edi
jne 0x4500d0
call fcn.004552d0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044ebea
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4500e4
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x450105
cmp ebx, 0xffffffff
je 0x4500f4
push ebx
push edi
push ecx
call fcn.00449d00
add esp, 0xc
cmp esi, edi
je 0x4500b1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4500b1
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x450121
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x450128
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x450219
test word [esi + 0xc], 0x10c
je 0x45017c
mov eax, dword [esi + 4]
test eax, eax
je 0x45017c
jl 0x45027a
cmp ebx, eax
mov edi, ebx
jb 0x45014d
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x450221
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044b954
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x450211
cmp ebx, dword [ebp - 0xc]
jb 0x4501e9
cmp dword [ebp - 0xc], 0
je 0x4501a6
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x45019b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4501a2
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4501b1
mov eax, closesocket
cmp ebx, eax
ja 0x4501b1
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x45024d
push eax
push dword [ebp - 8]
push esi
call fcn.00461a00
pop ecx
push eax
call fcn.0044c82b
add esp, 0xc
test eax, eax
je 0x45028c
cmp eax, 0xffffffff
je 0x45027a
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x450211
push esi
call fcn.0046642c
cmp eax, 0xffffffff
pop ecx
je 0x45027e
cmp dword [ebp - 4], 0
je 0x45024d
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x450130
mov eax, dword [ebp + 0x14]
jmp 0x4500cb
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x450238
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00449d00
add esp, 0xc
call fcn.004552d0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4500c1
cmp dword [ebp + 0xc], 0xffffffff
je 0x450263
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00449d00
add esp, 0xc
call fcn.004552d0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4500c1
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4500cb
or dword [esi + 0xc], 0x10
jmp 0x45027e
Function at 0x454edd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x499078]
je 0x454ef8
inc edi
cmp edi, 0x17
jb 0x454ee9
cmp edi, 0x17
jae 0x455078
push ebp
push 3
call fcn.0046d1f6
cmp eax, 1
pop ecx
je 0x455044
push 3
call fcn.0046d1f6
test eax, eax
pop ecx
jne 0x454f2c
cmp dword [0x498fb0], 1
je 0x455044
cmp ebx, 0xfc
je 0x455077
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x49bba8
push ebp
call fcn.0044a9b1
add esp, 0xc
test eax, eax
je 0x454f62
push esi
push esi
push esi
push esi
push esi
call fcn.0044eab6
add esp, 0x14
push 0x104
mov esi, 0x49bbc1
push esi
push 0
mov byte [0x49bcc5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x454fa6
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044a9b1
add esp, 0xc
test eax, eax
je 0x454fa6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044eab6
add esp, 0x14
push esi
call fcn.0044ab20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x454feb
push esi
call fcn.0044ab20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x49bebc
push 0x48a2cc
sub ecx, eax
push ecx
push eax
call fcn.0044ac36
add esp, 0x14
test eax, eax
je 0x454feb
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044eab6
add esp, 0x14
jmp 0x454fed
xor esi, esi
push 0x48a2c8
push ebx
push ebp
call fcn.0044b56d
add esp, 0xc
test eax, eax
je 0x45500d
push esi
push esi
push esi
push esi
push esi
call fcn.0044eab6
add esp, 0x14
push dword [edi*8 + 0x49907c]
push ebx
push ebp
call fcn.0044b56d
add esp, 0xc
test eax, eax
je 0x45502f
push esi
push esi
push esi
push esi
push esi
call fcn.0044eab6
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0046d039
add esp, 0xc
jmp 0x455077
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x455077
cmp ebp, 0xffffffff
je 0x455077
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x49907c]
push dword [esi]
call fcn.0044ab20
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46d039
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00454952
xor ebx, ebx
cmp dword [0x49c26c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x46d10f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46d1ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48ae74
push edi
call esi
cmp eax, ebx
je 0x46d1ef
push eax
call fcn.004548e4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x49c26c], eax
call esi
push eax
call fcn.004548e4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49c270], eax
call esi
push eax
call fcn.004548e4
mov dword [0x49c274], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00449f01
test eax, eax
pop ecx
pop ecx
je 0x46d0dd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044eab6
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x46d10f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004548e4
cmp eax, ebx
pop ecx
mov dword [0x49c27c], eax
je 0x46d10f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004548e4
pop ecx
mov dword [0x49c278], eax
mov eax, dword [0x49c278]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x46d194
cmp dword [0x49c27c], ecx
je 0x46d194
push eax
call fcn.0045495b
push dword [0x49c27c]
mov esi, eax
call fcn.0045495b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x46d194
cmp edi, ebx
je 0x46d194
call esi
cmp eax, ebx
je 0x46d161
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46d161
test byte [ebp - 0x18], 1
jne 0x46d194
lea eax, [ebp - 0x10]
push eax
call fcn.00449fb0
test eax, eax
pop ecx
je 0x46d17c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044eab6
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x46d18b
or dword [ebp + 0x10], 0x200000
jmp 0x46d1cf
or dword [ebp + 0x10], 0x40000
jmp 0x46d1cf
mov eax, dword [0x49c270]
cmp eax, dword [ebp - 8]
je 0x46d1cf
push eax
call fcn.0045495b
cmp eax, ebx
pop ecx
je 0x46d1cf
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46d1cf
mov eax, dword [0x49c274]
cmp eax, dword [ebp - 8]
je 0x46d1cf
push eax
call fcn.0045495b
cmp eax, ebx
pop ecx
je 0x46d1cf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49c26c]
call fcn.0045495b
cmp eax, ebx
pop ecx
je 0x46d1ef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46d1f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret