joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53fc1d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x53fc55
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0053dc98
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0053dc70
jmp 0x53fc61
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x541419
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x54145b
call fcn.00547d3b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x54145b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x541452
xor eax, eax
jmp 0x541463
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00541469
pop edi
pop esi
pop ebx
ret 4

Function at 0x54826b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x548299
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5482b7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005481d1
jmp 0x5482b7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5482b7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005481d1
test edi, edi
mov eax, edi
jne 0x5482a1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401880
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x214
mov eax, dword [0x4f4890]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
mov ebp, dword [esp + 0x21c]
push esi
lea eax, [esp + 8]
push eax
push 0x4e0de8
push 1
push 0
push 0x4e0df8
mov esi, ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401951
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push edi
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebx
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x4e0e38
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
jl 0x401943
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0xffffffffffffffff
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 1
lea ecx, [esp + 0x14]
push ecx
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebp
call fcn.0040d550
add esp, 4
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x218]
pop esi
pop ebp
xor ecx, esp
call fcn.00485a37
add esp, 0x214
ret

Function at 0x404090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4040a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4040e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4040e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4040e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4040d0
cmp esi, eax
jb 0x4040ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4066d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4f4890]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov esi, dword [esp + 0x114]
lea eax, [esp + 4]
push eax
push 0x2e
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40673f
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp eax, 1
jne 0x40673f
lea eax, [esp + 8]
push eax
push 0x104
push esi
call fcn.0041e110
add esp, 0xc
mov al, 1
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00485a37
add esp, 0x10c
ret
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
xor al, al
call fcn.00485a37
add esp, 0x10c
ret
Function at 0x406cc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49ca6b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4f4890]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
mov eax, dword [0x4f4890]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x444]
push ebx
call fcn.0041c8b0
add esp, 4
test eax, eax
jne 0x406d15
xor al, al
jmp 0x406e05
lea ecx, [esp + 0x10]
call fcn.004364e0
xor edi, edi
push 0x3ff
lea eax, [esp + 0x35]
push edi
push eax
mov dword [esp + 0x448], edi
mov byte [esp + 0x3c], 0
call fcn.00485c80
add esp, 0xc
lea esi, [edi + 1]
mov ecx, dword [esp + 0x14]
cmp ecx, edi
mov edx, dword [esp + 0x18]
jne 0x406d52
xor eax, eax
jmp 0x406d59
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x406dba
cmp esi, 1
jle 0x406d81
push 0x400
lea ecx, [esp + 0x34]
push 0x4a33a8
push ecx
call fcn.0041dea0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp ecx, edi
je 0x406d8e
sub edx, ecx
mov eax, edx
sar eax, 2
jne 0x406d92
xor ecx, ecx
jmp 0x406d9f
cmp eax, edi
ja 0x406d9f
call fcn.00486310
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + esi*4]
push 0x400
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0041dea0
add esp, 0xc
add esi, 1
jmp 0x406d42
push 1
push edi
lea ecx, [esp + 0x38]
push ecx
push ebx
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov eax, dword [esp + 0x24]
seta bl
cmp eax, edi
je 0x406de6
push eax
call fcn.004655fe
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
je 0x406e03
push eax
call fcn.004655fe
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00485a37
add esp, 0x430
ret

Function at 0x40d7e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4f4890]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x94]
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.00485a37
add esp, 0x98
ret
Function at 0x40d830
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4f4890]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp byte [0x4f6ed8], 0
push edi
mov edi, dword [esp + 0x218]
jne 0x40d945
lea eax, [esp + 4]
push eax
push 0x2e
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40d945
mov edx, dword [esp + 4]
lea ecx, [esp + 0x10c]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp eax, 1
sete al
test al, al
je 0x40d945
push esi
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.00485c80
add esp, 0xc
mov esi, 1
cmp esi, 1
je 0x40d8cd
push esi
push 0x4c93b4
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.004278c0
add esp, 0x10
push 0x4c939c
lea edx, [esp + 0x114]
push edx
push 0x104
push 0x4f6ed8
call fcn.00427860
push 0x104
push edi
push 0x4f6ed8
call fcn.0041dea0
push 0x104
lea eax, [esp + 0x2c]
push eax
push 0x4f6ed8
call fcn.0041dea0
push 0x4f6ed8
call fcn.0041c8b0
add esp, 0x2c
test eax, eax
je 0x40d929
add esi, 1
cmp esi, 0x3e7
jle 0x40d8b0
pop esi
mov eax, 0x4f6ed8
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00485a37
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop edi
xor ecx, esp
mov eax, 0x4f6ed8
call fcn.00485a37
add esp, 0x210
ret

Function at 0x40d960
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4f4890]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [esp + 0x114]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0xc], 6
jb 0x40d9b5
push ebx
call fcn.0040d830
add esp, 4
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00485a37
add esp, 0x10c
ret
cmp byte [0x4f6fe0], 0
jne 0x40da92
lea ecx, [esp + 4]
push ecx
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x40d9ed
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00485a37
add esp, 0x10c
ret
push esi
push edi
push 0x103
lea edx, [esp + 0x15]
push 0
push edx
mov byte [esp + 0x1c], 0
call fcn.00485c80
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
add esp, 0xc
mov esi, 1
cmp esi, 1
je 0x40da30
push esi
push 0x4c93b4
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.004278c0
add esp, 0x10
mov ecx, dword [esp + 0xc]
push 0x4f6fe0
push ecx
call edi
push 0x104
push 0x4c93bc
push 0x4f6fe0
call fcn.0041dea0
push 0x104
push ebx
push 0x4f6fe0
call fcn.0041dea0
push 0x104
lea edx, [esp + 0x2c]
push edx
push 0x4f6fe0
call fcn.0041dea0
push 0x4f6fe0
call fcn.0041c8b0
add esp, 0x28
test eax, eax
je 0x40da90
add esi, 1
cmp esi, 0x3e7
jle 0x40da13
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebx
xor ecx, esp
mov eax, 0x4f6fe0
call fcn.00485a37
add esp, 0x10c
ret
Function at 0x40dab0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp byte [0x4f70e8], 0
jne 0x40db07
lea eax, [esp]
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x40dad0
xor eax, eax
pop ecx
ret
mov ecx, dword [esp]
push 0x4f70e8
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push 0
push 0x104
push 0x4f70e8
call fcn.00423940
push 0x104
push 0x4c93d8
push 0x4f70e8
call fcn.0041dea0
add esp, 0x18
mov eax, 0x4f70e8
pop ecx
ret

Function at 0x40db10
Capabilities:
Check os version

Disassembly:
sub esp, 0x108
mov eax, dword [0x4f4890]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
mov esi, dword [esp + 0x114]
lea eax, [esp + 8]
push eax
xor bl, bl
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0xc], 6
jb 0x40dbb6
push edi
push esi
call fcn.0041cbd0
push esi
mov edi, eax
call fcn.0041e130
add esp, 8
cmp edi, eax
ja 0x40db9c
add esi, edi
push esi
call fcn.0040dab0
push eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.00427860
lea edx, [esp + 0x1c]
push edx
call fcn.0041d900
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00485a37
add esp, 0x108
ret
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00485a37
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00485a37
add esp, 0x108
ret

Function at 0x414900
Capabilities:
Identify system language via api

Disassembly:
mov eax, dword [0x4efd50]
cmp eax, 0xffffffff
jne 0x414962
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
cmp eax, 0x809
jg 0x414949
je 0x41493e
sub eax, 0x407
je 0x414933
sub eax, 5
jne 0x414950
mov eax, 4
mov dword [0x4efd50], eax
ret
mov eax, 1
mov dword [0x4efd50], eax
ret
mov eax, 2
mov dword [0x4efd50], eax
ret
cmp eax, 0xc0a
je 0x414958
xor eax, eax
mov dword [0x4efd50], eax
ret
mov eax, 3
mov dword [0x4efd50], eax
ret
Function at 0x4153c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49d8d3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4890]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
lea edi, [esi + 0x10]
mov dword [esi], 0x4c9fe4
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x20], ebx
mov byte [edi + 4], bl
mov eax, dword [esp + 0x28]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov byte [esp + 0x20], 1
mov dword [esi + 0x2c], eax
jne 0x415457
mov ebp, dword [edi + 0x14]
mov eax, dword [esp + 0x2c]
cmp ebp, eax
ja 0x415450
cmp dword [edi + 0x18], eax
je 0x415450
push 1
push eax
mov ecx, edi
call fcn.00401360
test al, al
je 0x415450
cmp dword [edi + 0x18], 0x10
mov dword [edi + 0x14], ebp
jb 0x41544a
mov eax, dword [edi + 4]
jmp 0x41544d
lea eax, [edi + 4]
mov byte [eax + ebp], bl
mov ecx, edi
call fcn.00415320
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea eax, [esi + 0x3c]
push eax
mov dword [esi + 0x48], ecx
mov dword [esi + 8], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], 0x2710
mov dword [esi + 0x40], edx
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], bl
mov byte [esi + 0x46], bl
mov byte [esi + 0x47], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc], ebx
call fcn.0041d960
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x41c090
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
shr edi, 2
mov eax, 0xeeeeeeee
je 0x41c0ee
mov edx, dword [esp + 0x14]
push ebx
lea esp, [esp]
mov ecx, edx
and ecx, 0xff
add eax, dword [ecx*4 + 0x4f1330]
sub edi, 1
lea ecx, [eax + edx]
xor ecx, dword [esi]
mov ebx, eax
mov dword [esi], ecx
shl ebx, 5
add ebx, ecx
mov ecx, edx
not ecx
shl ecx, 0x15
add ecx, 0x11111111
shr edx, 0xb
add esi, 4
or edx, ecx
test edi, edi
lea eax, [eax + ebx + 3]
jne 0x41c0b0
pop ebx
pop edi
pop esi
ret

Function at 0x41c100
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov dl, byte [esi]
add esi, 1
test dl, dl
mov eax, 0x7fed7fed
mov ecx, 0xeeeeeeee
je 0x41c14f
push ebx
push edi
mov edi, dword [esp + 0x14]
shl edi, 8
movzx edx, dl
movzx edx, byte [edx + 0x4f1730]
lea ebx, [edi + edx]
add eax, ecx
xor eax, dword [ebx*4 + 0x4f0330]
mov ebx, ecx
shl ebx, 5
add ebx, edx
mov dl, byte [esi]
add ebx, ecx
add esi, 1
test dl, dl
lea ecx, [ebx + eax + 3]
jne 0x41c121
pop edi
pop ebx
pop esi
ret

Function at 0x41da10
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x60
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 8]
cmp eax, 0x80000000
jae 0x41da54
xor edx, edx
add esp, 0x60
ret
push esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GlobalMemoryStatusEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3c
lea ecx, [esp + 0x2c]
push 0
push ecx
mov esi, eax
mov dword [esp + 0x30], 0x40
call fcn.00485c80
add esp, 0xc
test esi, esi
je 0x41daa3
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
je 0x41daa3
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
pop esi
add esp, 0x60
ret
cmp dword [esp + 0xc], 0x80000000
jne 0x41dab9
mov eax, SHChangeNotifyRegister
xor edx, edx
pop esi
add esp, 0x60
ret
xor eax, eax
lea edx, [eax + 1]
pop esi
add esp, 0x60
ret

Function at 0x41e680
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [edx]
test cl, cl
mov eax, 0x1000193
je 0x41e6ae
nop
movzx ecx, cl
xor eax, ecx
mov cl, byte [edx + 1]
imul eax, eax, 0x1000193
add edx, 1
test cl, cl
jne 0x41e690
test eax, eax
jne 0x41e6ae
mov eax, 1
ret
Function at 0x41e6b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 8]
mov dl, byte [esi]
test dl, dl
mov eax, 0x1000193
je 0x41e6de
movzx edx, dl
xor eax, edx
mov dl, byte [esi + 1]
imul eax, eax, 0x1000193
add esi, 1
test dl, dl
jne 0x41e6c0
test eax, eax
jne 0x41e6de
mov eax, 1
mov edx, dword [esp + 0xc]
mov esi, eax
and esi, 0x3f
mov dword [edx], esi
cmp dword [ecx + esi*8], 0
je 0x41e705
nop
mov esi, dword [edx]
cmp dword [ecx + esi*8], eax
je 0x41e70b
add esi, 1
and esi, 0x3f
mov dword [edx], esi
cmp dword [ecx + esi*8], 0
jne 0x41e6f0
xor al, al
pop esi
ret 8
mov al, 1
pop esi
ret 8

Function at 0x4202c0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x58
mov ecx, dword [esp + 0x60]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
mov eax, dword [esp + 0x64]
push eax
push ecx
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.00420120
mov edx, dword [esp + 0x5c]
push edx
lea ecx, [esp + 4]
call fcn.00420210
add esp, 0x58
ret

Function at 0x420450
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x68]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
push eax
push ecx
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
mov dword [esp + 0x20], 0xc3d2e1f0
call fcn.0041bd00
mov edx, dword [esp + 0x64]
push edx
lea ecx, [esp + 4]
call fcn.00420390
add esp, 0x60
ret

Function at 0x4212f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49db48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.00421190
lea edi, [esi + 0xc]
push edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 8]
test ecx, ecx
mov dword [esp + 0x30], 0
jne 0x421360
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push 0
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00420f30
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2c]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x421510
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x84
push esi
mov esi, dword [esp + 0x94]
xor ecx, ecx
cmp esi, ecx
jne 0x421530
mov al, 1
pop esi
add esp, 0x84
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x98]
cmp ebp, ecx
push edi
mov dword [esp + 0x10], esi
je 0x421627
mov ebx, dword [esp + 0x98]
lea eax, [esi + 0x10]
xor edi, edi
mov dword [esp + 0x14], eax
jmp 0x421562
xor ecx, ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], eax
cmp eax, esi
lea eax, [esp + 0x28]
jb 0x421575
lea eax, [esp + 0x10]
mov esi, dword [eax]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
push esi
lea ecx, [edi + ebx]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], 0x67452301
mov dword [esp + 0x50], 0xefcdab89
mov dword [esp + 0x54], 0x98badcfe
mov dword [esp + 0x58], 0x10325476
call fcn.00420120
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x40]
call fcn.00420210
lea eax, [edi + esi]
add eax, ebx
lea ecx, [eax + 0x10]
lea edx, [esp + 0x18]
cmp edx, ecx
jae 0x4215e5
lea ecx, [esp + 0x28]
cmp ecx, eax
jbe 0x4215e5
push 0x10
push eax
push edx
call fcn.00488f80
add esp, 0xc
jmp 0x421600
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041e880
test al, al
jne 0x421636
add edi, dword [esp + 0x14]
mov ecx, 0xfffffff0
sub ecx, esi
add ebp, ecx
test ebp, ebp
jne 0x421560
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x84
ret 0xc
pop edi
pop ebp
pop ebx
xor al, al
pop esi
add esp, 0x84
ret 0xc

Function at 0x4219f0
Capabilities:
Connect to http server

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov edx, dword [edi]
push edi
push 0
push 3
push 0
push 0
push eax
push ecx
push edx
mov dword [edi + 0x1c], 0
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
test esi, esi
jne 0x421a3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x421a31
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [edi + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [esp + 0x10]
push ecx
push 2
push esi
mov dword [esp + 0x1c], eax
call edi
push 4
lea edx, [esp + 0x10]
push edx
push 6
push esi
call edi
pop edi
mov eax, esi
pop esi
ret
Function at 0x425510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49db68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esp + 0x48]
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], eax
mov byte [esi + 8], cl
mov dword [esi + 0xc], 1
mov dl, byte [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov al, byte [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov byte [esi + 0x2c], dl
mov dl, byte [esp + 0x40]
xor ebx, ebx
cmp ebp, 1
mov dword [esi], vtable.Blizzard::IOAlignUnitInternal.0
mov dword [esi + 0x28], edi
mov byte [esi + 0x2d], al
mov dword [esi + 0x30], ecx
mov byte [esi + 0x34], dl
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x38], ebp
ja 0x425585
lea eax, [esi + 0x40]
jmp 0x4255a0
xor ecx, ecx
mov eax, ebp
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004655f9
add esp, 4
cmp byte [esp + 0x38], bl
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
jne 0x4255ea
push ebx
lea edx, [edi - 1]
xor ebp, ebp
add edx, eax
push edi
adc ebp, ecx
push ebp
push edx
call fcn.00487640
push ebx
push edi
push edx
push eax
call fcn.00486db0
mov ebp, dword [esp + 0x30]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
xor ebx, ebx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp edx, ecx
jg 0x4255fe
jl 0x425607
cmp eax, edi
jb 0x425607
push ecx
push edi
push edx
push eax
call fcn.00488a70
cmp ebp, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
jbe 0x425640
xor eax, eax
mov edx, ebp
or edi, 0xffffffff
jmp 0x425620
mov ecx, dword [esi + 0x3c]
mov dword [eax + ecx], edi
mov dword [eax + ecx + 4], edi
mov ecx, dword [esi + 0x3c]
mov byte [eax + ecx + 8], bl
mov ecx, dword [esi + 0x3c]
mov dword [eax + ecx + 0xc], ebx
add eax, 0x10
sub edx, 1
jne 0x425620
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x30