joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52c260
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x14
call fcn.00525ec0
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push 0x60
mov byte [esp + 0x2c], 0xd1
mov byte [esp + 0x2d], 0x26
call fcn.0050f3bc
push 0x60
mov esi, eax
push 0
push esi
call fcn.00516180
push ebx
mov ecx, edi
mov edx, esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.0046dcb0
push str.6666666666666666666666666666666666666666
mov ecx, 0x28
mov edx, esi
call fcn.0046dcb0
push ebp
mov ecx, edi
mov edx, esi
call fcn.0046dcb0
push esi
lea ecx, [esp + 0x2c]
call fcn.0046ddb0
push esi
call fcn.0050f521
push 0x5c
call fcn.0050f3bc
push 0x5c
mov esi, eax
push 0
push esi
call fcn.00516180
add esp, 0x34
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
test edi, edi
je 0x52c32b
push ebx
mov ecx, edi
mov edx, esi
call fcn.0045fc10
add esp, 4
push 0x58261c
mov ecx, 0x30
mov edx, esi
call fcn.0045fc10
lea eax, [esp + 0x10]
push eax
mov ecx, 0x14
mov edx, esi
call fcn.0045fc10
push esi
mov ecx, ebp
call fcn.0045fd10
push esi
call fcn.0050f521
push 0x408
call fcn.0050f3bc
push ebp
mov esi, eax
push edi
push esi
call fcn.004da560
push ebp
push ebp
push edi
push esi
call fcn.004da240
add esp, 0x30
test esi, esi
je 0x52c388
push esi
call fcn.0050f521
add esp, 4
cmp edi, 8
jne 0x52c39b
mov cx, word [esp + 0x28]
mov al, 0x9e
mov word [ebp], cx
mov byte [ebp + 2], al
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 8

Function at 0x52c3b0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x14
call fcn.00525ec0
push esi
push 0x60
call fcn.0050f3bc
push 0x60
mov esi, eax
push 0
push esi
call fcn.00516180
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push eax
mov edx, esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.0046dcb0
push edi
mov ecx, 0x30
mov edx, esi
call fcn.0046dcb0
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, 0x20
mov edx, esi
call fcn.0046dcb0
mov edx, dword [esp + 0x44]
push edx
mov ecx, 0x20
mov edx, esi
call fcn.0046dcb0
push esi
lea ecx, [esp + 0x28]
call fcn.0046ddb0
push esi
call fcn.0050f521
push 0x5c
call fcn.0050f3bc
push 0x5c
mov esi, eax
push 0
push esi
call fcn.00516180
push edi
mov ecx, 0x30
mov edx, esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.0045fc10
lea eax, [esp + 0x40]
push eax
mov ecx, 0x14
mov edx, esi
call fcn.0045fc10
mov ecx, dword [esp + 0x6c]
add esp, 0x40
push esi
call fcn.0045fd10
push esi
call fcn.0050f521
add esp, 8
pop esi
add esp, 0x14
ret 0x14
Function at 0x52d150
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi]
push edi
push 2
push 0
push eax
call fcn.0050e981
mov ecx, dword [esi]
push ecx
call fcn.00511438
mov edx, dword [esi]
push 0
push 0
push edx
mov edi, eax
call fcn.0050e981
add esp, 0x1c
cmp edi, 1
jl 0x52d1c3
lea eax, [edi + 2]
push eax
call fcn.0050f3bc
mov ecx, dword [esi]
push ecx
push 1
push edi
push eax
mov dword [esi + 8], eax
call fcn.00511746
add esp, 0x14
test eax, eax
jne 0x52d1ab
mov edx, dword [esi]
push edx
call fcn.00511797
add esp, 4
test eax, eax
jne 0x52d1b0
mov eax, edi
cmp eax, 1
jae 0x52d1c7
mov eax, dword [esi + 8]
push eax
call fcn.0050f521
add esp, 4
mov dword [esi + 8], 0
xor eax, eax
pop edi
ret
mov eax, dword [esi + 8]
push 0x582674
mov byte [eax + edi], 0xa
push eax
mov byte [eax + edi + 1], 0
call fcn.005117cb
add esp, 8
mov dword [esi + 4], eax
mov eax, 1
pop edi
ret

Function at 0x52d7c0
Capabilities:
Hash data with md5

Disassembly:
mov eax, 0x5c
call fcn.00525ec0
mov eax, dword [esp + 0x60]
push ebp
lea ebp, [eax + 0x8a4]
pxor xmm0, xmm0
movq qword [ebp], xmm0
push esi
movq qword [ebp + 8], xmm0
mov esi, dword [eax + 0x8b8]
test esi, esi
je 0x52d991
push ebx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [eax + 0x8b4]
push 0x5c
lea eax, [esp + 0x14]
push 0
push eax
sub edi, 0x20
add ebx, esi
call fcn.00516180
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
mov byte [esp + 0x7c], al
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0x7f], al
lea eax, [esp + 0x7c]
mov byte [esp + 0x7d], cl
mov byte [esp + 0x7e], dl
push eax
mov ecx, 4
lea edx, [esp + 0x20]
call fcn.0045fc10
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, eax
mov byte [esp + 0x80], al
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0x83], al
lea eax, [esp + 0x80]
mov byte [esp + 0x81], cl
mov byte [esp + 0x82], dl
push eax
mov ecx, 4
lea edx, [esp + 0x24]
call fcn.0045fc10
mov eax, dword [esi + 0xc]
mov ecx, eax
mov edx, eax
mov byte [esp + 0x84], al
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0x87], al
lea eax, [esp + 0x84]
mov byte [esp + 0x85], cl
mov byte [esp + 0x86], dl
push eax
mov ecx, 4
lea edx, [esp + 0x28]
call fcn.0045fc10
mov eax, dword [esi + 0x10]
mov ecx, eax
mov edx, eax
mov byte [esp + 0x88], al
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0x8b], al
lea eax, [esp + 0x88]
mov byte [esp + 0x89], cl
mov byte [esp + 0x8a], dl
push eax
mov ecx, 4
lea edx, [esp + 0x2c]
call fcn.0045fc10
mov eax, dword [esi + 0x18]
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x8c], al
mov byte [esp + 0x8d], cl
mov edx, eax
shr eax, 0x18
shr edx, 0x10
mov byte [esp + 0x8f], al
lea eax, [esp + 0x8c]
mov byte [esp + 0x8e], dl
push eax
mov ecx, 4
lea edx, [esp + 0x30]
call fcn.0045fc10
add esp, 0x20
test edi, edi
je 0x52d980
push ebx
mov ecx, edi
lea edx, [esp + 0x14]
call fcn.0045fc10
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.0045fd10
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x5c
ret 4
Function at 0x52d9a0
Capabilities:
Hash data with md5

Disassembly:
mov eax, 0x5c
call fcn.00525ec0
push esi
mov esi, ecx
test edi, edi
jne 0x52d9ba
xor eax, eax
pop esi
add esp, 0x5c
ret 4
test esi, esi
jne 0x52d9ca
push 0x10
call fcn.0050f3bc
add esp, 4
mov esi, eax
push 0x5c
lea eax, [esp + 8]
push 0
push eax
call fcn.00516180
mov ecx, dword [esp + 0x70]
push edi
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.0046df40
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0046e020
add esp, 0x14
mov eax, esi
pop esi
add esp, 0x5c
ret 4

Function at 0x52dfb0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x28
call fcn.00525ec0
mov eax, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
push edi
mov edi, dword [eax + 4]
mov ecx, ebx
mov edx, ebx
mov eax, ebx
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
cmp dword [esp + 0x48], 0
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], cl
mov byte [esp + 0x3e], dl
mov byte [esp + 0x3f], al
je 0x52dff7
mov eax, dword [edi + 0xd8]
jmp 0x52dffe
mov eax, dword [edi + 0xdc]
dec eax
mov ecx, eax
mov edx, eax
mov byte [esp + 0x44], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
push 0x60
mov byte [esp + 0x4b], al
mov byte [esp + 0x4a], dl
mov byte [esp + 0x49], cl
call fcn.0050f3bc
push 0x60
mov esi, eax
push 0
push esi
call fcn.00516180
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov ecx, dword [edi + 0xd4]
lea ebp, [edi + 0x1ba]
push ebp
mov edx, esi
call fcn.0046dcb0
push str.6666666666666666666666666666666666666666
mov ecx, 0x28
mov edx, esi
call fcn.0046dcb0
lea eax, [esp + 0x54]
push eax
mov ecx, 4
mov edx, esi
call fcn.0046dcb0
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, ebx
mov edx, esi
call fcn.0046dcb0
lea edx, [esp + 0x64]
push edx
mov ecx, 4
mov edx, esi
call fcn.0046dcb0
push esi
lea ecx, [esp + 0x4c]
call fcn.0046ddb0
push esi
call fcn.0050f521
push 0x5c
call fcn.0050f3bc
push 0x5c
mov esi, eax
push 0
push esi
call fcn.00516180
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov edi, dword [edi + 0xd4]
add esp, 0x3c
test edi, edi
je 0x52e0fd
push ebp
mov ecx, edi
mov edx, esi
call fcn.0045fc10
add esp, 4
push 0x58261c
mov ecx, 0x30
mov edx, esi
call fcn.0045fc10
lea eax, [esp + 0x28]
push eax
mov ecx, 0x14
mov edx, esi
call fcn.0045fc10
push esi
lea ecx, [esp + 0x20]
call fcn.0045fd10
push esi
call fcn.0050f521
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add esp, 0x10
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
add esp, 0x28
ret 0x14
Function at 0x52e150
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x14
call fcn.00525ec0
push ebx
mov ebx, dword [esp + 0x20]
mov eax, ebx
mov ecx, ebx
mov edx, ebx
push esi
shr eax, 8
shr ecx, 0x10
shr edx, 0x18
push 0x60
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2b], dl
call fcn.0050f3bc
push 0x60
mov esi, eax
push 0
push esi
call fcn.00516180
push edi
mov ecx, 0x10
mov edx, esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.0046dcb0
push str.6666666666666666666666666666666666666666
mov ecx, 0x28
mov edx, esi
call fcn.0046dcb0
lea eax, [esp + 0x3c]
push eax
mov ecx, 4
mov edx, esi
call fcn.0046dcb0
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, ebx
mov edx, esi
call fcn.0046dcb0
push esi
lea ecx, [esp + 0x2c]
call fcn.0046ddb0
push esi
call fcn.0050f521
push 0x5c
call fcn.0050f3bc
push 0x5c
mov esi, eax
push 0
push esi
call fcn.00516180
push edi
mov ecx, 0x10
mov edx, esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.0045fc10
push 0x58261c
mov ecx, 0x30
mov edx, esi
call fcn.0045fc10
lea edx, [esp + 0x48]
add esp, 0x40
push edx
mov ecx, 0x14
mov edx, esi
call fcn.0045fc10
mov ecx, dword [esp + 0x2c]
push esi
call fcn.0045fd10
push esi
call fcn.0050f521
add esp, 0xc
pop esi
pop ebx
add esp, 0x14
ret 0xc
Function at 0x52e280
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x2c
call fcn.00525ec0
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov edi, dword [eax + 4]
mov ecx, ebx
mov edx, ebx
mov eax, ebx
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
push 0x60
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], cl
mov byte [esp + 0x4e], dl
mov byte [esp + 0x4f], al
call fcn.0050f3bc
push 0x60
mov esi, eax
push 0
push esi
call fcn.00516180
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov ecx, dword [edi + 0xd4]
lea ebp, [edi + 0x1ba]
push ebp
mov edx, esi
call fcn.0046dcb0
push str.6666666666666666666666666666666666666666
mov ecx, 0x28
mov edx, esi
call fcn.0046dcb0
lea ecx, [esp + 0x60]
push ecx
mov ecx, 4
mov edx, esi
call fcn.0046dcb0
mov edx, dword [esp + 0x60]
push edx
mov ecx, ebx
mov edx, esi
call fcn.0046dcb0
push esi
lea ecx, [esp + 0x48]
call fcn.0046ddb0
push esi
call fcn.0050f521
push 0x5c
call fcn.0050f3bc
push 0x5c
mov esi, eax
push 0
push esi
call fcn.00516180
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov edi, dword [edi + 0xd4]
add esp, 0x38
test edi, edi
je 0x52e389
push ebp
mov ecx, edi
mov edx, esi
call fcn.0045fc10
add esp, 4
push 0x58261c
mov ecx, 0x30
mov edx, esi
call fcn.0045fc10
lea eax, [esp + 0x28]
push eax
mov ecx, 0x14
mov edx, esi
call fcn.0045fc10
push esi
lea ecx, [esp + 0x20]
call fcn.0045fd10
push esi
call fcn.0050f521
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add esp, 0x10
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x532700
Capabilities:
Hash data with md5

Disassembly:
mov eax, 0x98
call fcn.00525ec0
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
push edi
push 0x5c
mov edi, ecx
call fcn.0050f3bc
add esp, 4
push 0x5c
mov esi, eax
push 0
push esi
call fcn.00516180
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
test ebp, ebp
je 0x53276a
mov eax, dword [esp + 0xac]
push eax
mov ecx, ebp
mov edx, esi
call fcn.0045fc10
add esp, 4
push esi
lea ecx, [esp + 0x14]
call fcn.0045fd10
add esp, 4
push esi
call fcn.0050f521
mov esi, dword [ebx + 4]
add esp, 4
push edi
lea ecx, [esp + 0x64]
push esi
push ecx
call fcn.005165f0
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push 0x5837d0
push 0x583750
add esi, edi
push 0x40
add edi, 0xfffffff8
push edi
lea eax, [esp + 0x74]
push eax
mov dword [ebx + 4], esi
call fcn.0052cd40
mov eax, 0x10
xor ecx, ecx
lea ecx, [ecx]
mov edx, dword [esp + ecx + 0x10]
cmp edx, dword [esp + ecx + 0x20]
jne 0x5327d5
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x5327c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x98
ret 0xc
Function at 0x546d40
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54e6ae
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x546d71
lea esi, [edi + 0x1c]
push eax
call fcn.0052be80
mov eax, dword [edi + 0x38]
push eax
call fcn.0050f521
mov dword [edi + 0x38], ebx
mov dword [edi + 0x30], ebx
mov eax, dword [edi + 0x44]
push eax
call fcn.0050f521
mov dword [edi + 0x44], ebx
mov dword [edi + 0x3c], ebx
mov eax, dword [edi + 0x50]
push eax
call fcn.0050f521
mov dword [edi + 0x50], ebx
mov dword [edi + 0x48], ebx
mov eax, dword [edi + 0x5c]
push eax
call fcn.0050f521
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x54], ebx
mov eax, dword [edi + 0x68]
push eax
call fcn.0050f521
mov dword [edi + 0x68], ebx
mov dword [edi + 0x60], ebx
mov eax, dword [edi + 0x70]
push eax
call fcn.0050f521
mov eax, dword [edi + 0x80]
push eax
call fcn.0050f521
mov eax, dword [edi + 0x78]
push eax
call fcn.0050f521
mov eax, dword [edi + 0x28]
push eax
call fcn.0050f521
mov esi, dword [edi + 0xc]
add esp, 0x24
call fcn.0053e640
mov eax, dword [edi + 0x14]
push eax
call fcn.0050f521
mov eax, dword [edi + 0x24]
push eax
mov dword [edi + 0x20], ebx
mov dword [edi + 0x1c], ebx
call fcn.0050f521
mov dword [edi + 0x24], ebx
add esp, 8
mov dword [edi + 0x6c], ebx
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x4010a0
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
mov esi, dword [esp + 0x220]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x4010c4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
mov eax, dword [esp + 0x228]
sub eax, esi
jne 0x4010dc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x22c]
push 0x103
stosw word es:[edi], ax
lea edx, [esp + 0x1c]
push ecx
push edx
stosb byte es:[edi], al
call ebp
push 0x103
lea eax, [esp + 0x28]
push esi
push eax
mov byte [esp + 0x133], bl
call dword [sym.imp.MSVCRT.dll_strncat]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x135]
mov byte [esp + 0x134], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x30]
push 0x103
lea edx, [esp + 0x138]
push ecx
push edx
mov byte [esp + 0x13f], bl
stosb byte es:[edi], al
call ebp
lea eax, [esp + 0x140]
push 0x2e
push eax
mov byte [esp + 0x24b], bl
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x2c
cmp eax, ebx
je 0x401182
mov byte [eax], bl
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x11c]
push ecx
call ebp
mov edx, dword [esp + 0x14]
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [esp + 0x2c]
push 0x40000000
push eax
lea edi, [esi + edx + 1]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4011c8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
mov eax, dword [esp + 0x228]
lea ecx, [esp + 0x10]
push ebx
sub eax, edi
push ecx
push eax
push edi
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x18]
push 0x408010
push edx
call esi
add esp, 8
test eax, eax
jne 0x40123d
lea eax, [esp + 0x18]
push str.clientver.zip
push eax
call esi
add esp, 8
test eax, eax
jne 0x40123d
mov ecx, dword [esp + 0x22c]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004019b0
add esp, 8
test eax, eax
jge 0x40123d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
lea eax, [esp + 0x18]
push str.package.conf
push eax
call esi
add esp, 8
test eax, eax
jne 0x401257
lea ecx, [esp + 0x18]
push ecx
call ebp
lea edx, [esp + 0x11c]
push edx
call fcn.00403890
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x401400
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x30c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x218], bl
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x218]
push 0x103
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 0x113], bl
mov ebp, dword [sym.imp.MSVCRT.dll_strncat]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x5c
je 0x4014bf
push 0x103
lea eax, [esp + 0x14]
push 0x408090
push eax
call ebp
add esp, 0xc
mov byte [esp + 0x113], bl
push 0x103
lea ecx, [esp + 0x14]
push str.gwtemp_
push ecx
call ebp
lea edx, [esp + 0x1c]
push ebx
push edx
mov byte [esp + 0x127], bl
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4014f7
lea eax, [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x10]
push ecx
call fcn.00403890
lea edx, [esp + 0x14]
push edx
call fcn.00401280
mov eax, dword [esp + 0x330]
add esp, 8
mov edi, 0x4088c4
mov esi, eax
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40152b
xor esi, esi
jmp 0x401537
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push 0x103
lea ecx, [esp + 0x118]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
push 0x103
lea edx, [esp + 0x124]
push str.gwupdater.dll
push edx
mov byte [esp + 0x22f], bl
call ebp
add esp, 0x18
lea eax, [esp + 0x114]
mov byte [esp + 0x217], bl
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
je 0x4015ab
push str.GWClientInstall
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4015ab
push 1
lea ecx, [esp + 0x14]
push esi
push ecx
call eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30c
ret 0x10
Function at 0x403b90
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x403bb7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403bad
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x403bc0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
test esi, esi
jne 0x403bff
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403c2e
mov dword [ebp - 4], 0
push esi
call fcn.00403b90
push esi
call fcn.00403890
add esp, 8
jmp 0x403c27
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403cee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x403cda
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov byte [ebp - 0x128], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x16]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x18]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x1a]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1e]
and edx, 0xffff
push edx
push esi
push str._s._x_x_x_x_x
push 0x103
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x24
push 3
lea ecx, [ebp - 0x128]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
push 4
push 0
lea edx, [ebp - 0x128]
push edx
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d50
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x14], eax
jle 0x403dc7
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
push ebx
push ecx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403dba
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
push eax
push 0x408474
push ebx
mov dword [esp + 0x24], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x403dcf
test ebx, ebx
je 0x403dc7
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov esi, dword [esp + 8]
push edi
mov ecx, 0xd
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
pop edi
je 0x403dc7
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x18]
shr ecx, 0x10
mov dword [edx], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
push ebx
mov dword [ecx], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x24]
shr edx, 0x10
mov dword [eax], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x28]
and ecx, 0xffff
mov dword [edx], ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop esi
pop ebx
add esp, 8
ret